pxt-calliope/docs/examples/plot-acceleration.md

197 B

Plot Acceleration

Plot acceleration in the x dimension on the LEDs.

basic.forever(() => {
    led.plotBarGraph(
        input.acceleration(Dimension.X),
        1023
    )
})