Example
This example shows how to read potentiometer values and scale it to another range.
#include <NanoPlayBoard.h>
NanoPlayBoard board;
void setup() {
}
void loop() {
int value = board.potentiometer.scaleTo(0, 99);
board.ledmatrix.printInLandscape(value);
delay(100);
}
The source code of this example is available on GitHub.