Go Down

Topic: Re: Trying to read a serial data stream (Read 925 times) previous topic - next topic

Coding Badly

An ASCII character is an eight bit value is a byte is binary.  It's all in how you, the programmer, decide to interpret the data.


"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.


Sorry, me bad.

The problem turned out to be that I did not realize that the LCD print function trunkates leading zeros when it displays a  BIN number.  I had assumed that it printed all 8 digits, so I was not clearing the previously displayed value.  So when it displayed a small number, it just overwrote the first few bits of the previous entry and left the remaining bits displayed.   So the data read correctly.  Operator error!

Go Up