![]() ![]() In pull-down mode, all the row pins will be connected to ground through a resistor. This one checks whether both bits are low. Will be the condition to check individual bits. While detecting the keypress, if !((PORTDbits.RD4)&(PORTDbits.RD0)) do // It is a bounce, **else** part is for understanding, not needed in real case ![]() Make all the row pins high, then keep scanning the rows till a keypress get detected.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |