-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twinkle #6
Comments
Great idea @Mohoganogan! We can see if someone has a extra time but pull requests are always welcome! |
I ended up using this code for my tree: Modified to use only one of the patterns. `// This #include statement was automatically added by the Particle IDE. #include "FastLED/FastLED.h" #if FASTLED_VERSION < 3001000 #define DATA_PIN D2 #define BRIGHTNESS 5 #define ARRAY_SIZE(A) (sizeof(A) / sizeof((A)[0])) int lightsOn(String input); // list of patterns to cycle through. each is defined as a separate function uint8_t gCurrentPatternNumber = 0; // Index number of which pattern is current void setup() { // FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip); // set master brightness control bool mentioned = false; String onMessages[] = {"Lighting it up for Christmas!", String offMessages[] = {"No more xmas.. FOR NOW!?", void loop() { if (lightState == true) {
} // Particle functions. int setBright(String brightness) { int toggleLights(String args) { args.toCharArray(szArgs, MAX_ARGS); sscanf(szArgs, "%d=%d", &index, &value); if (value == 1) { int lightsOn(String input) { int size = sizeof(onMessages) / sizeof(onMessages[0]); return 0; int lightsOff(String input) { int size = sizeof(offMessages) / sizeof(offMessages[0]); return 0; int twitterMention(String args) { // Light and pattern functions void rainbow() { void addGlitter(NSFastLED::fract8 chanceOfGlitter) { void rainbowWithGlitter() { void confetti() { void sinelon() { void bpm() { void juggle() { ` |
How about one that is all green and then a single random led twinkles white then goes back to green to provide an old school simple look.
The text was updated successfully, but these errors were encountered: