Level

Try to keep the Adafruit Circuit Playground Express level. If it tilts, it will let you know.

forever(() => {
    if (Math.abs(input.acceleration(Dimension.X)) + Math.abs(input.acceleration(Dimension.Y)) < 64) {
        light.showRing(
        `green green green green green green green green green green`
        )
        pause(100)
    } else {
        light.showRing(
        `black blue black blue black black blue black blue black`
        )
        music.playTone(262, music.beat(BeatFraction.Sixteenth))
    }
})