From the course: Learning Arduino: Interfacing with Hardware
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Optional review: Understanding arrays - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Hardware
Optional review: Understanding arrays
- 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Introduction to the liquid crystal display (LCD)1m 29s
-
(Locked)
Understanding HD4470 controller1m 58s
-
(Locked)
The LCD interface2m 44s
-
Wire up the LCD5m 6s
-
(Locked)
Coding the LCD interface4m 31s
-
(Locked)
Optional review: Understanding "for" loops3m 36s
-
(Locked)
Optional review: Understanding arrays2m 3s
-
(Locked)
Displaying random numbers and scrolling4m 5s
-
(Locked)
-
-
-
-