ELECFREAKS Octopus Linear Slider Potentiometer Brick - EF04061
ELECFREAKS Octopus Linear Slider Potentiometer Brick is a 10k linear sliding potentiometer module designed for the micro:bit. Sliding the control adjusts the output voltage from 0V to VCC, while the onboard red LED switches on or off to indicate the change.
Perfect for microbit projects, it can be used as a variable resistor, an interactive input for control panels, or as part of an electronic building block kit.
FEATURES
Power supply 5V
30 mm long slide length
Linear resistance taper
Size: 13.95mm * 60.51mm
Example application with sensor:bit

Add Package
Program as the picture shows
- Show the value read by the sensor on the micro:bit.
- The LED controlled by the Potentiometer lights up with the digital writing pin P2 to 1.

Reference
Links:https://makecode.microbit.org/_19baPjHKcJMT