
9
Microbit graphic programming
Results: pin 0 was connected to the analog output of photoresistor, pin 8 was connected to
the LED lamp. When the analog output value was higher than 600, the LED was on; otherwise,
the LED light was not on.
Example 2
code