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

Help with codes to add 1 more shift register and add more to matrix LED

tcp client

Can't read sms using Thinker A7 communicate with Arduino