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

13 lines
173 B
Markdown
Raw Permalink Normal View History

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