Guide

3/7/2018 SparkFun Inventor's Kit for micro:bit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/sparkfun-inventors-kit-for-microbit-experiment-guide/all#introduction-to-microsoft-makecode 13/63
A potentiometer is a resistance-based
analog sensor that changes its
internal resistance based on the
rotation of its knob. The potentiometer
has an internal voltage divider
enabling you to read the change in
voltage on the center pin with a
microcontroller (i.e. micro:bit).