Cameron Brito
Published © GPL3+

Anti-Smoking Box

A brief message to those who smoke, other than those who are already trying to quit, and those who are being tempted into it.

IntermediateProtip6 hours485
Anti-Smoking Box

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
I also used a Lithium Ion Battery to give this project a reliable battery.
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1

Software apps and online services

MakeCode
Microsoft MakeCode
I used this to set the triggers. I also used Adobe Photoshop and Adobe Illustrator to put the design together.

Hand tools and fabrication machines

Tape, Electrical
Tape, Electrical
Tape, Blue
Tape, Blue
Tape, Clear
Tape, Clear
Scissors, Free Fall
Scissors, Free Fall

Story

Read more

Code

circuitplayground-Untitled (17).uf2

JavaScript
This is the code I used for the Anti-Smoking Box. This allows the sounds to activate depending on what the user is doing with the device.
No preview (download only).

Credits

Cameron Brito

Cameron Brito

4 projects • 0 followers

Comments