Update analog-read.ino
// 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
