arduino due ignore lines in the program


hello folks,
i have problem programing arduino due : code :
code: [select]

char *msg="cc";
   
    *msg=(char)(analogread(a0)/4);
    *(msg+1)='a';
    serial.println(*(msg+1));
    driver.send((uint8_t *)msg, strlen(msg));
    driver.waitpacketsent();


so want send potentiometer values on 433 module transmitter arduino due , reseiver arduino uno, problem arduino due not want execute
code: [select]
*msg=(char)(analogread(a0)/4); ,
code: [select]
*(msg+1)='a'; when added
code: [select]
serial.println(*(msg+1)); and 
code: [select]
serial.println(*(msg+1)); shows initial values : "cc", testet other circuitry seams work perfectly, on receiver cc ... going wrong ?
thanks trying help.
have nice day.

where declaration of msg[]? how big it?


Arduino Forum > Using Arduino > Programming Questions > arduino due ignore lines in the program


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts