Edit 'tools' projects (#1220)
* Edit 'tools' projects * Rename projects and fix linking
This commit is contained in:
18
docs/projects/light-level-meter.md
Normal file
18
docs/projects/light-level-meter.md
Normal file
@ -0,0 +1,18 @@
|
||||
# Light Level Meter
|
||||
|
||||
Use this program to graph the light level.
|
||||
Press ``A`` to scroll the value on the screen.
|
||||
|
||||
```blocks
|
||||
let reading = 0
|
||||
basic.forever(() => {
|
||||
reading = input.lightLevel()
|
||||
led.plotBarGraph(
|
||||
reading,
|
||||
255
|
||||
)
|
||||
if (input.buttonIsPressed(Button.A)) {
|
||||
basic.showNumber(reading)
|
||||
}
|
||||
})
|
||||
```
|
Reference in New Issue
Block a user