hi all, I need help on receiving data from android to atmega16 through HC-05 bluetooth module... here is the code...
void takes()
{
lcd_putsf("start");
G =getchar();
delay_ms(50);
lcd_clear();
sprintf(buf,"%d",G);
lcd_puts(buf);
delay_ms(50);
takes();
}
it's a function that would be run continuous... both my android and atmega run in 9600 baud rate, no parity, 1 bit stop, 8 data
all data type brings no error so do the compiler
but when I send "a" (without quotation) from my android, i get 216 decimal in my LCD... I thought it should be 97 according to ASCII
how come is it?? why do i get 216 rather than 97??