Merge pull request #326 from adafruit/TheKitty-patch-24
Update analog-read.ino
This commit is contained in:
commit
657b474506
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue