Skip to content

Instantly share code, notes, and snippets.

@SupinePandora43
Created November 27, 2020 14:07
Show Gist options
  • Save SupinePandora43/4dc8ad5a2251d51bc96a9f58a2c24a92 to your computer and use it in GitHub Desktop.
Save SupinePandora43/4dc8ad5a2251d51bc96a9f58a2c24a92 to your computer and use it in GitHub Desktop.
#include <Adafruit_NeoPixel.h>
#define p 11
#define count_led 8
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(count_led,p, NEO_GRB+NEO_KHZ800);
void setup(){
pixels.begin();
pixels.show();
}
void loop(){
pixels.setPixelColor(1,pixels.Color(0,255,255));
pixels.setPixelColor(2,pixels.Color(0,255,255));
pixels.setPixelColor(9,pixels.Color(255,0,255));
pixels.setPixelColor(11,pixels.Color(255,0,255));
pixels.setPixelColor(13,pixels.Color(255,0,255));
pixels.setPixelColor(14,pixels.Color(255,0,255));
pixels.show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment