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

13 lines
173 B
Markdown

# Plot Light level
Show the current light level as a bar graph.
```blocks
basic.forever(() => {
led.plotBarGraph(
input.lightLevel(),
255
)
})
```