top of page
  • Writer's picture

Keypad

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.



4x4 keypad


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.

other catagory


keypad

keypad block

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

Example


keypad blocks
keypad
.txt
Download TXT • 791B


Output on board





18 views0 comments

Recent Posts

See All
Post: Blog2_Post
bottom of page