Abigail Weber
Created February 16, 2020

Empty Water Bowl Alarm

This is an alarm that sounds when your pet's water bowl is empty and is disguised as a treat jar.

BeginnerShowcase (no instructions)1
Empty Water Bowl Alarm

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Alligator Clips
Alligator Clips
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Code

Empty Water Bowl Alarm

JavaScript
light.setBrightness(255)
music.setVolume(255)
forever(function () {
    if (input.touchA1.isPressed()) {
        light.clear()
    } else {
        light.showAnimation(light.theaterChaseAnimation, 2000)
        music.powerDown.play()
    }
})

Credits

Abigail Weber

Abigail Weber

1 project • 1 follower

Comments