We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e744d35 commit d13f62cCopy full SHA for d13f62c
1 file changed
Make_It_Twist_Potentiometer/analog-read.ino
@@ -1,8 +1,7 @@
1
// Simple read analog potentiometer on Circuit Playground Express or other board with pin change
2
// Mike Barela for Adafruit Industries 9/2018
3
4
-// Which pin on the microcontroller board is connected to the NeoPixels?
5
-#define PIN A1 // For Circuit Playground Express
+#define ANALOGPIN A1 // For Circuit Playground Express
6
7
int delayval = 500; // delay for half a second
8
@@ -13,7 +12,7 @@ void setup() {
13
12
void loop() {
14
int value;
15
16
- value = analogRead(PIN); // analog read of potentiometer
+ value = analogRead(ANALOGPIN); // analog read of potentiometer
17
18
Serial.println(value); // print value
19
0 commit comments