Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created February 16, 2024 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmarr58/f84f733d143dbd2905623ec5107e4cd8 to your computer and use it in GitHub Desktop.
Save esmarr58/f84f733d143dbd2905623ec5107e4cd8 to your computer and use it in GitHub Desktop.
#include <FastLED.h>
#define NUM_LEDS 1
#define DATA_PIN 15//8__15
#define CLOCK_PIN 13
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<P9813, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
}
int hue = 0;
void loop(){
for(int i = 0; i < NUM_LEDS; i++) {
leds[i] = CHSV(hue + i*255/NUM_LEDS , 255, 255);
}
FastLED.show();
delay(20);
hue += 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment