Byron Bess
Published

Kids Starlight Blinker Lamp

Its a kids lamp that has a blinker starlight function for kids that like to play with at night.

BeginnerProtip5 hours13
Kids Starlight Blinker Lamp

Story

Read more

Custom parts and enclosures

Parts for the Project

Display of the parts for the project

Schematics

Schematics for project

The things used here is simple house objects such as a lamp, plastic cup, and a jewel. The Main things used was the Circuit express, 2 alligator clips, and a switch.

Code

Code for project.

JavaScript
This code was borrowed form the Adafruit Circuit playground tutorial for Knobs and switches.
pins.A1.setPull(PinPullMode.PullUp)
forever(function () {
    if (!(pins.A1.digitalRead())) {
        light.showAnimation(light.sparkleAnimation, 500)
        light.showAnimation(light.theaterChaseAnimation, 500)
        light.showAnimation(light.colorWipeAnimation, 500)
    } else {
        light.clear()
    }
})

Credits

Byron Bess
3 projects • 0 followers

Comments