Jody
Created September 22, 2022

Project 1 Fairy Lamp

A simple lamp that has a twinkling rainbow

Showcase (no instructions)7
Project 1 Fairy Lamp

Code

Project 1 Fairy Lamp

JavaScript
pins.A1.setPull(PinPullMode.PullUp)
forever(function () {
    if (!(pins.A1.digitalRead())) {
        light.showAnimation(light.rainbowAnimation, 500)
    } else {
        light.clear()
    }
})

Credits

Jody
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.