From the course: Arduino: Prototyping
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Solution: Controlling the display - Arduino Tutorial
From the course: Arduino: Prototyping
Solution: Controlling the display
(upbeat music) - [Instructor] Here's a solution to the challenge. The challenge was to first, change the message on the display. For example, change from Hello World to Hey Universe. The second goal was to reverse the two lines on the display, putting the counter on the top line and the message on the second line. The necessary changes are straightforward. First, you need to change the text in the LCD print statement. Then you need to explicitly place the cursor before each line is written to the LCD using the set cursor method. Let's go to the Arduino IDE to see how this works. Here we are in the IDE. The first thing I'm going to do is save this and you can see I've loaded Hello World. I'm going to save this under a new name. So I'll just call it Hello World Challenge And if we scroll up here, you can see the bulk of the program. And there are two places where we need to make changes. First of all, we need to change…
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.