Micro:bit Tutorial 12 - Programming to play with light sensors

The Micro:bit actually has no light sensor, so how does it achieve this function?

Principle: "Micro:bit's LED dot matrix is also used to sense the surrounding light by repeatedly converting some LED drivers into inputs and sampling the voltage decay time, which is roughly proportional to the level of ambient light."

It's okay for programming enthusiasts who are just starting out to read, then learn from the simple time.

PI-SUPPLY is a professional component supplier, providing everything you need for your component project. We also stock a huge selection of Raspberry piArduinomicro:bitrock pi and nvidia manufacturer accessories from your favorite brands.