Current Objective: Select the Light Sculpture Modes
Requirements
- Ensure you understand each step before moving on.
- Write code for each step as you go.
- Cleanly format your code.
- Test your code at the end of each page.
Selecting the Modes
Single-line if statements are useful for writing clean code. Remember the Golden Rule:
if (codeAppearance == junk) code = junk;
Switches such as the switchPin need a default state, so we use INPUT_PULLUP to make the default HIGH with an internal pull-up resistor.