Hmm right now I just want to retreive a 4-number decimal value in my loop, and put it in the "ref" variable. I don't even need a letter, I just send raw numbers (in ASCII) , like "0586" from my computer.
The problem is that in my program I use very precise and quick timing interrupts so it's a bit annoying.
Maybe there is a way to send not an ASCII number but directly a hex number, so 0586 will be 24A... max value is 1200 (4B0, so I use 2 bytes)
I have no idea how to use the RX buffer...
Bookmarks