Then, how do you determine how many characters can fit in the partially empty buffer? How do you determine when to call flush()? How do you ENSURE that flush() is NOT interrupted?
Then, how do you determine how many characters can fit in the partially empty buffer?
I haven't used it yet for anything that has a lot of characters.
How do you determine when to call flush()?
I just set the counter to whatever I think is appropriate for that application. The only example I have is the attached sketch.
The serial monitor capture file is also attached so you can see the serial output for the keypad circuit.
How do you ENSURE that flush() is NOT interrupted?
I don't know how yet.
Matrix_4x4_16_key_keypad_to_74c922_ISR_I2C_LCD_flushcounter.ino (3.22 KB)
ClearTerminal_Capture__KEYPAD_FLUSH_TEST_05.03.2014_10.52.44.txt (227 Bytes)