-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic Gemma_red to test pixels
- Loading branch information
1 parent
e29a1da
commit 9b62082
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <Adafruit_NeoPixel.h> | ||
#define PIN 0 | ||
Adafruit_NeoPixel strip = Adafruit_NeoPixel(4, PIN, NEO_GRB + NEO_KHZ800); | ||
|
||
void setup() { | ||
strip.begin(); | ||
strip.show(); // Initialize all pixels to 'off' | ||
} | ||
|
||
void loop() { | ||
for (int i=0; i<strip.numPixels(); i++) { | ||
strip.setPixelColor(i,255,0,0); | ||
strip.show(); | ||
} | ||
} | ||
|