From the course: Arduino: Prototyping
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Understand display dynamics - Arduino Tutorial
From the course: Arduino: Prototyping
Understand display dynamics
- [Instructor] The design concept we're working from has two rows, one row with invaders and one row with a laser that moves back and forth. We already know how to show characters on the display using set cursor and print, so let's focus on animating the laser. Traditionally, animation consists of frames being presented one-by-one. Changes from frame to frame appear as motion. For animation controlled by a sketch, each frame's changes have to be calculated, then displayed. Our laser animation works the same way. For each frame, the laser moves to a new column. The question now is how would you sketch that? One way to start is to write what's called pseudocode. Pseudocode is an informal description of an algorithm or process. Pseudocode won't ever be used directly, but it can help you when it's time to write your sketch. For example, the pseudocode description of blinking an LED might be turn the LED on, delay half a…
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.