I have a question regarding how the read function works in Software Serial.
recv reads the bits a receiver picks up into a serial buffer. than read returns a uint8_t. However, when i set read() equal to a variable and print it, it doesn't necessarily always print out a byte. For instance: int x = rx.read(); //if the read is supposed to read 60, x prints 111100 int x = rx.read(); //if the read is supposed to read 226, x prints 11100010
How come the first statement doesn't print 00111100?
Sorry, i realize this might be a very dumb question. I looked into the software serial library, and couldn't identify what I'm missing.