Example
This example shows how to read potentiometer values and send it through the Arduino serial port, using the Serial
class.
#include <NanoPlayBoard.h>
NanoPlayBoard board;
void setup() {
Serial.begin(9600);
}
void loop() {
int value = board.ldr.read();
Serial.println(value);
delay(100);
}
The source code of this example is available on GitHub.