micro:Bit reed switch + RGB Led

preview_player
Показать описание
A test with a magnetic Reed Switch, controlling an RGB led with a simple counter.
The Switch is connected to pin 0
The Blue leg of the LED is in pin 14
The Green leg is in pin 15
the Red leg is in pin 16.
The code can be found at:

we've got the micro:Bit plugged into a kitronik motor controller, just for ease of use with the pins, you can get "edge connectors" cheaper, if you aren't going to be working with motors.
Рекомендации по теме