Arduino Function: RobotControl.knobRead

Description

This method gets the analog value as a 10-bit value from the on-board potentiometer. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023.

Syntax

Robot.knobRead()

Returns

 int: 0 to 1023

Examples

#include 

void setup(){
 Robot.begin();
 Serial.begin(9600);
}
void loop(){
 Serial.println(Robot.knobRead());
 delay(100);
}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc