Join Zahraa Khalil for an in-depth discussion in this video HelloKeypad, part of Learning Arduino: Interfacing with Hardware.
- [Instructor] So once you download the keypad library,…you will have an example that comes in within…the library itself.…So in order to access the examples,…you go to file,…examples,…and then scroll down all the way to the keypad.…I'll select Hello Keypad for our example here.…So we're using this example for our keypad.…I just need to make some changes along the way…according to the wiring that we did.…All right, so I'm going to explain the code…of this example…in order to understand how the keypad function works.…
So, in line 10, we see that we need to include…the library when we deal with the keypad.…It's included in here.…Line 12 and line 13 is initializing rows and columns…of timed bytes.…The rows and columns are for the keypad,…so we're using 4 by 3 Key pad,…so four rows and three columns.…So, both rows and columns are tad bytes.…The reason for selecting tad byte…is that byte is unassigned integer…that has a value of 0 to 255.…
The reason why we select the byte is that…we know that the rows and columns values…
- Interfacing with an LCD screen
- Wiring and coding the LCD interface
- Displaying random numbers on the LCD
- Interfacing with a seven-segment LED component
- Cycling through LEDs
- Using a shift register to interface with a seven-segment LED
- Interfacing with a keypad
- Combining the LCD, keypad, and LED
Skill Level Intermediate
The devices used38s
1. Interface with an LCD
2. Interface with a 7-Segment LED Directly
3. Interface with a 7-Segment LED Using a Shift Register
4. Interface with a Keypad
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.