Updated: Feb 26, 2022
In this tutorial , we are going to learn how to use keypad. We are going to read which button is pressed on keypad and its value will be printed on the display.
In adjecent image 4x4 keypad is shown. It has 16 buttons , 0 to 9 , A,B,C,D,*,# .
Blocks We are going to use
keypad block is in the 'other' catagory.
This block gives which button is pressed on the keypad. In the following image, values are shown for corresponding buttons
Return value for corresponding buttons on keypad
Download TXT • 791B
Output on board