Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Adafruit_DotStar.h>
- #define NUMPIXELS 28 // Number of LEDs in strip
- #define DATAPIN 6
- #define CLOCKPIN 5
- Adafruit_DotStar strip = Adafruit_DotStar(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR);
- void setup() {
- strip.begin();
- strip.show();
- }
- void loop() {
- strip.setPixelColor(0, 32, 0, 0);
- strip.setPixelColor(1, 0, 32, 0);
- strip.setPixelColor(2, 0, 0, 32);
- strip.setPixelColor(27, 32, 0, 32);
- strip.show();
- delay(8);
- }
Advertisement
Add Comment
Please, Sign In to add comment