Potentiometer - read

How to send potentiometer values through Bluetooth

Example

This example shows how to read potentiometer values and send it through Bluetooth.

#include <NanoPlayBoard.h>

NanoPlayBoard board;

void setup() {

}

void loop() {
  int value = board.potentiometer.read();
  board.bluetooth.println(value);
  delay(100);
}

The source code of this example is available on GitHub.