Use the map_range function of the Simple math library to re-map numbers to a new range. Potentiometer giving you 0 – 65520 but you really need 64 – 127? Map_range has got you covered!
Learn more about CircuitPython
More from Adafruit Industries – Makers & hackers & artists & designers and engineers!
Adafruit Learning System Weekly Update: Arcade Button Edition
Source Node: 1883712
Time Stamp: Jan 27, 2022
Star Trek: Nemesis Tricorder Kit #3DThursday #3DPrinting
Source Node: 1294268
Time Stamp: Oct 28, 2021
New algorithm flies drones faster than human racing pilots #drone #droneday
Source Node: 988484
Time Stamp: Jul 26, 2021
John Park’s Workshop — LIVE! TODAY 1/20/22 @adafruit @johnedgarpark #adafruit
Source Node: 1883374
Time Stamp: Jan 20, 2022
NEW PRODUCT – Pimoroni PicoSystem – RP2040 Handheld Gaming System – PIM559
Source Node: 1386050
Time Stamp: Nov 4, 2021