Skip to content

Commit d0cb33b

Browse files
authored
Merge pull request #3110 from FoamyGuy/neopot
update NeoPot arduino example for metro328
2 parents ec8fdd1 + 8a376de commit d0cb33b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Adafruit_NeoPot/Arduino_Rainbow_Pot/Arduino_Rainbow_Pot.ino

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44

55
#include <Adafruit_NeoPixel.h>
66
int sensorPin = A0; // select the input pin for the potentiometer
7-
int neoPixelPin = D4; // select the pin for the LED
7+
int neoPixelPin = 4; // select the pin for the LED
88
int sensorValue = 0; // variable to store the value coming from the sensor
99

1010
int readings[10];
1111
size_t count = 0;
1212

13-
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
14-
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
15-
// NEO_RGBW Pixels are wired for RGBW bitstream (NeoPixel RGBW products)
1613
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, neoPixelPin, NEO_GRB + NEO_KHZ800);
1714

1815
// Insert an int value at index 0 of an int array, shifting all other elements up.

0 commit comments

Comments
 (0)