Rebekah Kissoon
Published

Shelter Counter

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

BeginnerFull instructions provided414
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

Comments