1/9
These flashcards cover key concepts about loops in programming, particularly in the context of coding for electronics, as discussed in ECE 1004.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
For Loop
A control structure used to iterate a specific number of times, defined by initialization, condition, and update expressions.
While Loop
A control structure that continues to execute as long as a specified boolean condition is true.
Accumulation
The process of summing values over iterations in a loop, often using compound operators like +=.
BlinkAndWait Function
A function that turns an LED on and off with a specified delay, used in conjunction with loops for managing multiple outputs.
Off by One Error
A common coding mistake where a loop iterates one time too many or one time too few due to incorrect starting or ending conditions.
Compound Operators
Operators like += that simplify the accumulation of values in programming.
Sensor Readings
Data obtained from a sensor; in the context of accumulation, it can refer to the process of averaging multiple readings.
Analog Read
A function that reads the value of an analog pin, giving a value between 0 and 1023 based on voltage levels.
Threshold
A preset level which, when crossed by a variable, triggers a specified change, like turning an LED on or off.
Floating Pins
Pins that are not connected to any voltage source or ground, which may pick up noise and cause erratic behavior.