1. Send data to the computer
Try firstWhat does the computer receive when the micro:bit runs serial write value light, light level?
Check your answer
A line of text: the name light, a colon and the reading, such as light:128.
Serial sends text down the USB cable, one line at a time.
- serial write value sends a named reading, such as
light:128. - Put it in forever with a pause to send a reading again and again.
- The computer turns the lines into a table or a graph.

Show as code
basic.forever(function () {
serial.writeValue("light", input.lightLevel())
basic.pause(500)
})











