Close

Adding a Button and Code

A project log for The DeathBoard

A sandboard built by a friend for a day of fun. Sand performance was iffy but it sure looks cool, so now it's art and needed some LEDs.

alpenglow-industriesAlpenglow Industries 10/26/2021 at 19:090 Comments

We wanted the deathboard to have a few different pattern options that we could cycle through with a button.

We  defined the button pins

Added an interrupt, set brightness to 50% and added a blink to the button LED to indicate when the code is finished uploading.

We added a switch case with 3 different light patterns and a 4th one that would turn all the lights off.

Discussions