??? 08/10/05 14:00 Read: times |
#99116 - read and debounce is that "cycled read" Responding to: ???'s previous message |
routine for a keybuffer and a cycled read of keyboard
Pseudo code assuming column out row in in a timer interrupt every 10-20 milliseconds enable all columns any rows if not and old_code = 0 exit if not and old_code !0 set new_code and old-code = 0 if rows enable column one by one and when a row is active create new_code if new_code = old_code exit if new_code != old_code set new_key set old_code = new_code in main if new_key process new_code and clear new_key above is the basics for reading keys and debouncing etc. Presumed to be complete. Erik |
Topic | Author | Date |
Key-Matrix | 01/01/70 00:00 | |
Re | 01/01/70 00:00 | |
more upper layer | 01/01/70 00:00 | |
read and debounce is that "cycled read" | 01/01/70 00:00 | |
Possibly useful.... | 01/01/70 00:00 | |
languge?![]() | 01/01/70 00:00 |