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

13 lines
197 B
Markdown
Raw Normal View History

2017-02-09 14:57:38 -08:00
# Plot Acceleration
2017-02-09 14:44:56 -08:00
Plot acceleration in the ``x`` dimension on the LEDs.
2017-02-09 14:44:56 -08:00
```blocks
basic.forever(() => {
led.plotBarGraph(
input.acceleration(Dimension.X),
1023
)
})
```