Join Zahraa Khalil for an in-depth discussion in this video Optional review: Understanding arrays, part of Learning Arduino: Interfacing with Hardware.
- So for the next example using the LCD,…I'm going to use an Array in order to demonstrate…how to populate the data.…If you're familiar with arrays,…feel free to skip this video,…but if you want to refresh your memory about…what an array is, I'm going to go through the basics.…An array stores multiple data values…for the same data type in a block of memory,…allowing you to access the elements within the array…by referring to the variable name.…So you can think about it as a drawer…with a certain number of sections,…and inside each section is an array element.…
The drawer has a name, which is the array name.…So now let's go through how to declare an array.…The way to declare an array is…by specifying the type of the element,…which can be double, integer, whatever the type is,…and then specifying the array name,…and finally the array size.…The array size should be an integer above zero.…So this is an example that declares…an array variable called myArray…that stores up to 10 integer values.…
Initializing an array is by assigning the element…
- 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.