Skip to content

Commit 657b474

Browse files
authored
Merge pull request #326 from adafruit/TheKitty-patch-24
Update analog-read.ino
2 parents e744d35 + d13f62c commit 657b474

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Make_It_Twist_Potentiometer/analog-read.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Simple read analog potentiometer on Circuit Playground Express or other board with pin change
22
// Mike Barela for Adafruit Industries 9/2018
33

4-
// Which pin on the microcontroller board is connected to the NeoPixels?
5-
#define PIN A1 // For Circuit Playground Express
4+
#define ANALOGPIN A1 // For Circuit Playground Express
65

76
int delayval = 500; // delay for half a second
87

@@ -13,7 +12,7 @@ void setup() {
1312
void loop() {
1413
int value;
1514

16-
value = analogRead(PIN); // analog read of potentiometer
15+
value = analogRead(ANALOGPIN); // analog read of potentiometer
1716

1817
Serial.println(value); // print value
1918

0 commit comments

Comments
 (0)