Tachyon hardware: 20x4 character LCD with big digits and keypad encoder
Peter Jakacki
Posts: 10,193
This is my initial post separate from the Tachyon thread of which I am aiming at either keeping just for posts relating to the kernel and extensions, or alternatively starting a fresh thread, we'll see.
I previously posted an updated character LCD driver with big digits and now I have updated that to include a keypad encoder as well which just hangs off the 8-bit LCD data bus. The LCD does have internal pullups but I have arranged the code so that it doesn't require any pullups although they can still be added if needed. The keypad can be a 3x4 or 4x4 matrix and the encoder table allows the keypad to return with an ASCII character when a key is first detected. This allows the keypad routine to be called as required but should be fast enough that it doesn't miss a keypress which it will detect immediately when called.
I may put in an extra option to allow this to be called from the soft timer task which is normally running so that it can scan in the background and buffer the keys.
Link to the CHARLCD.fth Google webpage document and source code
I previously posted an updated character LCD driver with big digits and now I have updated that to include a keypad encoder as well which just hangs off the 8-bit LCD data bus. The LCD does have internal pullups but I have arranged the code so that it doesn't require any pullups although they can still be added if needed. The keypad can be a 3x4 or 4x4 matrix and the encoder table allows the keypad to return with an ASCII character when a key is first detected. This allows the keypad routine to be called as required but should be fast enough that it doesn't miss a keypress which it will detect immediately when called.
I may put in an extra option to allow this to be called from the soft timer task which is normally running so that it can scan in the background and buffer the keys.
Link to the CHARLCD.fth Google webpage document and source code