From d13f62ca6f38ae77fe275cba7e04e3f901c60b18 Mon Sep 17 00:00:00 2001 From: Mike Barela Date: Tue, 11 Sep 2018 15:29:19 -0400 Subject: [PATCH] Update analog-read.ino --- Make_It_Twist_Potentiometer/analog-read.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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