Lesson 8 – Ball Switch

Components used: Elego Uno R3, Tilt ball switch and 2 F-M Dupont wires.

The presets on the code allow the tilt ball switch to turn the led on when pointing the tilt ball switch upwards.

When switch is pointed down, the led is turned off.
The switch is pointed up, so the yellow light is turned on.

Leave a comment