Merge pull request #326 from adafruit/TheKitty-patch-24

Update analog-read.ino
This commit is contained in:
Mike Barela 2018-09-11 15:49:09 -04:00 committed by GitHub
commit 657b474506
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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