Upload files to 'LED-prototype'

This commit is contained in:
Luke Gilliam 2023-03-31 02:59:52 +00:00
parent e4aade7a65
commit 5ea30e1ad1

View File

@ -0,0 +1,21 @@
#include <FastLED.h>
#define LED_PIN 7
#define NUM_LEDS 64
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
for (int i = 0; i <= 64; i++) {
leds[i] = CRGB ( 0, 0, 255);
FastLED.show();
delay(40);
}
}