planetx.trimpot
Appearance
Reads a PlanetX trimpot (such as EF05018) value as a number between 0 and 1, or nil if the reading is outside the valid range.
Function
Synopsis
planetx.trimpot(pin)
Arguments
- `pin` — A pin value returned by microbit.io.getPin.
Returns
A number, or nil if no value is available.