18 lines
233 B
C++
18 lines
233 B
C++
int potPin = A5;
|
|
int potValue = 0;
|
|
|
|
|
|
void setup() {
|
|
pinMode(LED_BUILTIN, OUTPUT);
|
|
Serial.begin(9600);
|
|
}
|
|
|
|
void loop() {
|
|
potValue = analogRead(potPin);
|
|
|
|
Serial.print("Pot is at: ");
|
|
Serial.println(potValue);
|
|
|
|
delay(100);
|
|
}
|