Andrew Jankowski
Published © GPL3+

The Party Cup

This cup is for all types of drinks ands a bit of glow to your sips. Party hard.

BeginnerFull instructions provided3 hours172
The Party Cup

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Toggle Switch, SPDT
Toggle Switch, SPDT
×1
Alligator Clips
Alligator Clips
×2
Li-Ion Battery 1000mAh
Li-Ion Battery 1000mAh
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Hand tools and fabrication machines

Tape, Electrical
Tape, Electrical

Story

Read more

Schematics

partycupSet

Code

PartyCup

JavaScript
It turns the lights on when you flip the switch. (Tutorial usage of MakeCode ClapLight Tutorial and switch Tutorial from adafruit)
input.onLoudSound(function () {
	
})
pins.A1.setPull(PinPullMode.PullUp)
forever(function () {
    if (!(pins.A1.digitalRead())) {
        if (true) {
            light.showAnimation(light.rainbowAnimation, 2000)
        } else {
            light.stopAllAnimations()
        }
    } else {
        light.clear()
    }
})

Credits

Andrew Jankowski
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.