pxt-calliope/docs/examples/plot-light-level.md

13 lines
173 B
Markdown
Raw Normal View History

2017-02-09 23:57:38 +01:00
# Plot Light level
2017-02-09 23:44:56 +01:00
Show the current light level as a bar graph.
2017-02-09 23:44:56 +01:00
```blocks
basic.forever(() => {
led.plotBarGraph(
input.lightLevel(),
255
)
})
```