diff --git a/Make_It_Twist_Potentiometer/analog-read.ino b/Make_It_Twist_Potentiometer/analog-read.ino index e07a343f..970e97b2 100644 --- a/Make_It_Twist_Potentiometer/analog-read.ino +++ b/Make_It_Twist_Potentiometer/analog-read.ino @@ -1,8 +1,7 @@ // Simple read analog potentiometer on Circuit Playground Express or other board with pin change // Mike Barela for Adafruit Industries 9/2018 -// Which pin on the microcontroller board is connected to the NeoPixels? -#define PIN A1 // For Circuit Playground Express +#define ANALOGPIN A1 // For Circuit Playground Express int delayval = 500; // delay for half a second @@ -13,7 +12,7 @@ void setup() { void loop() { int value; - value = analogRead(PIN); // analog read of potentiometer + value = analogRead(ANALOGPIN); // analog read of potentiometer Serial.println(value); // print value