Rebekah Kissoon
Published

Shelter Counter

Theoretically, this object would be used to count pets as they enter an animal shelter.

BeginnerFull instructions provided406
Shelter Counter

Story

Read more

Code

Project 2: Protest Object

JavaScript
This code uses the accelerometer on the board. When someone shakes the board, it will light up. When the board is tilted up, the light turns off.
input.onGesture(Gesture.Shake, function () {
    light.showRing(
    `orange green orange green orange orange green orange green orange`
    )
})
input.onGesture(Gesture.TiltUp, function () {
    light.clear()
})
input.setAccelerometerRange(AcceleratorRange.OneG)
light.clear()

Credits

Rebekah Kissoon
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.