Join Zahraa Khalil for an in-depth discussion in this video Understanding two-dimensional arrays, part of Learning Arduino: Interfacing with Hardware.
- [Instructor] I'm going to use…the two-dimensional array concept…when declaring the keypad buttons.…So I'm going to go through explaining…what a two-dimensional array is.…Two-dimensional array that uses different columns…and different rows.…So this is how we write a two-dimensional array.…First, we specify the type.…That could be an integer, a double.…Then, we declare the name that we wanted to choose…for this two-dimensional array,…and then, the number of rows and the number of columns.…
The number of rows and columns need…to be an integer above zero.…So here's an example of an integer two-dimensional array.…I chose the name to be MyArray.…That has three rows and two columns.…So I initialize the array to have these values:…one and two, four and five, six and seven.…The way we write them within the array is…that the first value are for the first row,…the second set of values are for the second row, and so on.…
So each element within the array has a row…and a column reference.…The first row and column is row zero column zero,…
- 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.