Classes/Arduino/test/test.ino
2024-08-20 09:30:53 -04:00

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);
}