TaskScheduler
FastLED_examples
Our great sponsors
TaskScheduler | FastLED_examples | |
---|---|---|
5 | 178 | |
1,160 | 200 | |
- | - | |
0.0 | 6.0 | |
3 months ago | 4 days ago | |
C++ | C++ | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TaskScheduler
-
How do you make a code that does like 2 or 3 things simulatneously?
When you get a little more advanced it's not hard to extend the BWD code to hsndle any number of "time when something should happen". Or you can use something like the TaskScheduler library.
-
Understanding the rarely seen EVERY_N_MILLIS_I ?
Or just use TaskScheduler and never have to worry about this again. https://github.com/arkhipenko/TaskScheduler
-
Event-driven architecture
For reference, I'm a big fan of this scheduler in particular, due to it's simplicity, OO support and a neat extra of sleeping each unused millisecond (low power for free).
-
Current consumption between arduino and HAL?
One of my favourite low power techniques involves using a scheduller for your loop code, and sleep for 1 ms at a time when there are no tasks to run. As seen here.
-
Garden irrigation system based on ESP32
Have you looked at the task scheduler library? https://github.com/arkhipenko/TaskScheduler
FastLED_examples
-
Code format question
In the previously linked version comparing colorCurrent.h == colorTarget.h or colorCurrent == colorTarget without the .h worked the same since the colors were fully saturated and at full brightness. Comparing colorCurrent == colorTarget compares the H,S, and V numbers all at the same time.
-
what the work of EVERY_N_MILLISECONDS_I ?
Use the first one for regular unchanging intervals. Use the second one when you need the interval to change over time. Here's one of Marmilicious' examples.
- Blinking stars
- stretching and then compressing a rainbow on a strip
-
Controlling WLED-ESP with another Arduino
Depending on the complexity of the animations you want, you could power them through the Arduino directly with a library like FastLED. https://github.com/marmilicious/FastLED_examples/blob/master/MIDI_test_v1.ino is an example.
- changing brightness of the individual led's?
- hopefully, last time asking for help...
- help again
- Addressing multiple individual Leds at once
-
More Coding Help Needed!
Take note in my example: https://github.com/marmilicious/FastLED_examples/blob/master/custom_pixel_array.ino
What are some alternatives?
Arduino-Libs - Arduino Libs & Examples: ADS1147, ADS7846, DAC8760, DS1307, RV8523, MCP2515, WS2812, S65-Display, MI0283QT-2/-9/-11, HX8347D, ILI9341, SSD1331
FastLED - The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.
LoLa - Low Latency Radio System
FastLED-Demos - Here's my updated FastLED demos from January, 2017.
Adafruit_Sensor - Common sensor library
FastLED-SoundReactive - Sound Reactive displays for FastLED
Arduino-AppleMIDI-Library - Send and receive MIDI messages over Ethernet (rtpMIDI or AppleMIDI)
arduino_midi_library - MIDI for Arduino
lcdgfx - Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms
CD77_FastLED - Animations using the FastLED Library
Arduino-USBMIDI - Allows a microcontroller, with native USB capabilities, to appear as a MIDI device over USB to a connected computer
ESP32_FFT_VU - A spectrum analyzer VU meter for the ESP32 and a FastLED matrix