Help; Serail.print returns ascii


hi im working on project type in number , led turns on , off depending on is.
i decided print number type using serial.print return ascii in stead of number.
example type in 1 , screen returns 49
i type in 1001
the screen returns
49
48
48
49
please returns number type

just subtract 48.

this might worth read.





Arduino Forum > Using Arduino > Project Guidance > Help; Serail.print returns ascii


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor