Closed tanakamasayuki closed 3 weeks ago
That's an interesting PR. Seems like you took a much simpler approach than my convoluted attempt to reintroduce the receive buffer to enable available() and peek(). Nice!
https://gist.github.com/tanakamasayuki/56251790ad3c06a9837895054fd2f15e
I actually want to use reception interrupts. It's currently being tested.
I actually want to use reception interrupts.
Excellent! I'm looking forward to do some testing of your code as soon as I can find the time.
For my I2C slave implementation I managed to enable interrupts. For enabling Serial.peek() that would be a welcome improvement, as my feeble attempt without interrupts certainly limits data reception.
-1 means if(Serial.available()) is always true. Returns reception status.