ATtiny85 and Arduino SoftwareSerial


hi,

how use softwareserial pass integer attiny arduino?

pulling hair out!

thanks

hi,

an integer 2 bytes long , can hold numbers in aproximate range -32,000 +32,000.

when send data on serial line (software or hardware), has sent 1 byte @ time. can't send integer such, large. must have attiny break down integer byte sized pieces before send it, , reassemble pieces integer after arduino has received it.

there several ways break down integer. 1 way use highbyte() , lowbyte() functions. use serial.print() or sprintf() convert integer several bytes in decimal format.

paul


Arduino Forum > Using Arduino > General Electronics > ATtiny85 and Arduino SoftwareSerial


arduino

Comments