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

13 lines
197 B
Markdown
Raw Normal View History

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