Programming exercises and sample answers.
Github Repository for this project:
rpi-led-strip
Logging in.
Logging In
Basic instructions about logging in to the Pi, navigating the Terminal, and editing and running files.
Lighting Lights
Lighting lights and changing colors.
Light up specific lights (individual and series) on the strip.
Introduces
for
loops.
Making light patterns with
for
loops
Using
for
loops to make patterns in the lights.
Using
range(start, stop, step)
Nesting Loops
(WIP) Logic with
if
statements
Light patterns with ifs.
Making life easier with functions
Functions: Creating reusable code
Creating and using functions
Rates of Change (WIP)
Speeding things up and slowing things down.
Using equations to control speed
Relationship between the delay (rate of change) and the time taken to light the lights.
Challenge Programs
Interesting programming assignments that use the LED strip.
Thermometer
Binary Timer/Clock
Work in Progress
(WIP) Classes: Arithmetic Sequences
Arithmetic Series
(WIP) Related Rates
Rates of Change
(WIP) Programming in Mathematics
Learning to program as part of a mathematics course.