Merge remote-tracking branch 'origin/master'

This commit is contained in:
Matt McWilliams 2024-10-11 17:39:14 -04:00
commit 2823df7562
1 changed files with 5 additions and 17 deletions

View File

@ -4,28 +4,16 @@
#define PIN 15 #define PIN 15
#define NUM 1 #define NUM 1
int r = 255; Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUM, PIN, NEO_GRB + NEO_KHZ800);
int g = 255;
int b = 255;
//neopixel jewel 7 = NEO_GRBW + NEO_KHZ800
//neopixel strips = NEO_GRB + NEO_KHZ800
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUM, PIN, NEO_GRBW + NEO_KHZ800);
void setup() { void setup() {
Serial.begin(115200); Serial.begin(115200);
pixels.begin(); pixels.begin();
pixels.setBrightness(55); pixels.setBrightness(255);
for ( int i = 0; i < NUM; i++ ) { pixels.fill(0xFF0000);
pixels.setPixelColor(i, 0, 0, 0);
}
pixels.show(); pixels.show();
} }
void loop () { void loop () {
for ( int i = 0; i < NUM; i++ ) { pixels.show();
pixels.setPixelColor(i, r, g, b);
}
pixels.show();
delay(300);
} }