arduino’s spaceship interface

Zach Cusimano
loriscode
Published in
2 min readFeb 26, 2017

In this example project I created my first program to control the LEDs behavior.

The program makes use of arduino’s digital pins to check if the switch is active or not. The switch is marked as “INPUT” and when pressed changes the switchState from LOW(off) to HIGH(on). This change in state triggers a loop which makes the LEDs connected to the pins at position 4 and 5 flash on and off until the switch is released returning the switchState back to LOW.

Below is the board configuration making use of a switch, 3 LEDs, several resistors and some jump wires.

board configuration
result

The awesome spaceship interface output (some imagination required)!

After you’re done having your own dance party with your new awesome flashing lights, I would suggest testing out other variations of the switchState, delay and input position.

--

--