alana.brunson
Published © GPL3+

Vibe check

Distracted driving is a killer we don't pay attention to until its to late. This device helps bring to light how distracted we really are.

BeginnerFull instructions provided7 hours479
Vibe check

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Code

The Vibe Check

JavaScript
input.onLoudSound(function () {
    if (true) {
        music.ringTone(262)
        music.setVolume(255)
        light.showRing(
        "red red red red red red red red red red"
        )
    }
})
input.buttonA.onEvent(ButtonEvent.LongClick, function () {
    light.clear()
    music.setVolume(0)
})

Credits

alana.brunson

alana.brunson

4 projects • 1 follower

Comments