pxt-calliope/docs/projects/light-level-calibrator.md
Peli de Halleux d0a40d1ae1
tools lessons (#1218)
* tools lessons

* updated summary

* more images

* wire up images

* fixing radio send-value
2018-09-12 13:26:39 -07:00

345 B

Light level Calibrator

Use this program to graph the light level. Press A to scroll the value on the screen.

let reading = 0
basic.forever(() => {
    reading = input.lightLevel()
    led.plotBarGraph(
        reading,
        255
    )
    if (input.buttonIsPressed(Button.A)) {
        basic.showNumber(reading)
    }
})