Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Hackster is hosting Impact Spotlights: Edge AI. Watch the stream live on Thursday!Hackster is hosting Impact Spotlights: Edge AI. Stream on Thursday!
Lais Marques
Published © GPL3+

It's Called Fashion

Look it up.

BeginnerProtip5 hours500
It's Called Fashion

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Alligator Clips
Alligator Clips
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Toggle Switch
×1
Adafruit Lipo Battery
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Schematics

Image 2

Image 1

Image 3

Image 4

Code

Fashion Code

JavaScript
MakeCode File
No preview (download only).

Javascript

JavaScript
In case you need to see it
let value = 0
pins.A1.setPull(PinPullMode.PullUp)
light.setAll(0xffffff)
forever(function () {
    if (!(pins.A1.digitalRead())) {
        light.showAnimation(light.rainbowAnimation, 1000)
    } else {
        light.showRing(
        `pink purple red orange yellow yellow black red purple pink`
        )
    }
    value = pins.A7.analogRead()
    light.setBrightness(value)
})

Credits

Lais Marques
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.