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

173 B

Plot Light level

Show the current light level as a bar graph.

basic.forever(() => {
    led.plotBarGraph(
        input.lightLevel(),
        255
    )
})