All examples use a simple 10k potentiometer.
See the component article on this website about the LED.
Dim and LED based on the reading/rotation of the potentiometer.
Pot always pin 1
- 220Ω resistor
- 10kΩ potentiometer
This should work a lot better than it does.
The LED flickers each time
write_analog() is called. Hopefully someone has a solution.
Mix colours based on the reading from three potentiometers.
- RGB LED
- 3 × 220Ω resistors
- 3 × 10kΩ potentiometer
- microbit breakout board
Share On Facebook Google Plus
Published: December 23, 2016 Updated: December 23, 2016
Examples of using a Potentiometer with the microbit.