You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FastLEDManager allows you to manage all of your [FastLED]([FastLED](https://github.com/FastLED/FastLED)) sketches on the ESP8266 with minimal changes to your existing code. FastLEDManager is compatible with most of the demo sketches at [atuline/FastLED-Demos](https://github.com/atuline/FastLED-Demos). It requires little knowledge about the ESP8266 platform making in an ideal playground for beginners getting started with FastLED animations.
6
+
FastLEDHub allows you to manage all of your [FastLED]([FastLED](https://github.com/FastLED/FastLED)) sketches on the ESP8266 with minimal changes to your existing code. FastLEDHub is compatible with most of the demo sketches at [atuline/FastLED-Demos](https://github.com/atuline/FastLED-Demos). It requires little knowledge about the ESP8266 platform making in an ideal playground for beginners getting started with FastLED animations.
6
7
7
8
## Features
8
9
@@ -17,7 +18,7 @@ FastLEDManager allows you to manage all of your [FastLED]([FastLED](https://gith
17
18
18
19
## Web interface
19
20
20
-

21
+

21
22
22
23
## Installation
23
24
@@ -34,43 +35,43 @@ FastLEDManager allows you to manage all of your [FastLED]([FastLED](https://gith
34
35
### Official releases via the Arduino IDE v1.8+
35
36
1. Open the Arduino IDE
36
37
2. Navigate to _"Sketch"_ → _"Include Library"_ → _"Manage Libraries..."_
37
-
3. Search for `FastLEDManager` and install the desired version
38
+
3. Search for `FastLEDHub` and install the desired version
38
39
-->
39
40
40
41
### Manual Installation
41
42
42
43
1. Make sure you have installed the dependencies above
43
-
2. Download the desired version from the [releases](https://github.com/stnkl/FastLEDManager/releases) page
44
+
2. Download the desired version from the [releases](https://github.com/stnkl/FastLEDHub/releases) page
44
45
3. Extract the contents of the downloaded zip file
45
-
4. Rename the extracted folder to `FastLEDManager`
46
+
4. Rename the extracted folder to `FastLEDHub`
46
47
5. Move this folder to your libraries directory `~/Arduino/libraries`)
Change `NUM_LEDS`, `LED_TYPE` and `LIGHTSTRIP_PIN` according to your hardware configuration. You may notice that this is not different than setting up a regular FastLED sketch apart from using `FastLEDManager` instead of `FastLED`.
93
+
Change `NUM_LEDS`, `LED_TYPE` and `LIGHTSTRIP_PIN` according to your hardware configuration. You may notice that this is not different than setting up a regular FastLED sketch apart from using `FastLEDHub` instead of `FastLED`.
93
94
94
95
### Adding a new animation
95
96
@@ -98,7 +99,7 @@ Create a new animation file `Animations/ExampleAnimation.h`:
98
99
```cpp
99
100
#pragma once
100
101
101
-
#include<FastLEDManager.h>
102
+
#include<FastLEDHub.h>
102
103
103
104
classExampleAnimation : publicAnimation
104
105
{
@@ -114,7 +115,7 @@ public:
114
115
115
116
void loop()
116
117
{
117
-
// animate FastLEDManager.leds
118
+
// animate FastLEDHub.leds
118
119
}
119
120
};
120
121
```
@@ -123,11 +124,11 @@ While creating your animation proceed as you usually would with FastLED by defin
123
124
124
125
Keep in mind the following important differences to just using FastLED:
125
126
- The regular `setup` function is called `reset` to emphasize its purpose
126
-
- Instead of creating your own `leds` array use the existing `FastLEDManager.leds`
127
-
- Within your animation use `FastLEDManager.numLeds` instead of `NUM_LEDS`
128
-
- Every time you may want to use `FastLED` use `FastLEDManager` instead. Since `FastLEDManager` inherits from `FastLED` all member functions will be available just like before. FastLEDManager just adds some stuff on top of that.
127
+
- Instead of creating your own `leds` array use the existing `FastLEDHub.leds`
128
+
- Within your animation use `FastLEDHub.numLeds` instead of `NUM_LEDS`
129
+
- Every time you may want to use `FastLED` use `FastLEDHub` instead. Since `FastLEDHub` inherits from `FastLED` all member functions will be available just like before. FastLEDHub just adds some stuff on top of that.
129
130
130
-
If you want to convert an existing FastLED sketch (e.g. from [atuline/FastLED-Demos](https://github.com/atuline/FastLED-Demos)), so it can be handled by FastLEDManager, those are the necessary changes you have to perform.
131
+
If you want to convert an existing FastLED sketch (e.g. from [atuline/FastLED-Demos](https://github.com/atuline/FastLED-Demos)), so it can be handled by FastLEDHub, those are the necessary changes you have to perform.
131
132
132
133
### Registering animations
133
134
@@ -147,38 +148,38 @@ The animation name can be any unique string and will be used to identify animati
147
148
148
149
### Static color display
149
150
150
-
FastLEDManager allows you to display a static color in the web interface. It will be handled as a separate animation and will always have animation index `0`. This is important if you want to trigger animations using HTTP requests.
151
+
FastLEDHub allows you to display a static color in the web interface. It will be handled as a separate animation and will always have animation index `0`. This is important if you want to trigger animations using HTTP requests.
151
152
152
153
### Pre-defined and custom sliders
153
154
154
-
You can add custom numeric sliders of type `int16_t` to adjust variables of animations dynamically. FastLEDManager automatically adds two sliders for brightness (0-1023, default: 1023) and animation speed (0-255, default: 127). Both of these fixed sliders have been integrated tightly into FastLEDManager and don't require any further attention. Changing the brightness will apply gamma correction automatically. Adjusting the speed will affect the effective delay of `FastLEDManager.delay()` to speed up or slow down animations. To prevent this explicitly use `FastLED.delay()` or Arduino's standard `delay()`.
155
+
You can add custom numeric sliders of type `int16_t` to adjust variables of animations dynamically. FastLEDHub automatically adds two sliders for brightness (0-1023, default: 1023) and animation speed (0-255, default: 127). Both of these fixed sliders have been integrated tightly into FastLEDHub and don't require any further attention. Changing the brightness will apply gamma correction automatically. Adjusting the speed will affect the effective delay of `FastLEDHub.delay()` to speed up or slow down animations. To prevent this explicitly use `FastLED.delay()` or Arduino's standard `delay()`.
155
156
156
157
To add more custom sliders simply register them in the main sketch via
This example registers a slider with a range of `150-255` and step size `1` defaulting to the value `200`. Again the slider name `"Saturation"` can be any unique string identifying the slider in the web interface.
163
164
164
165
To access custom slider values inside of your animation use
FastLEDManager supports a potentiometer for brightness adjustments and a push button to cycle through animations. They have to be specifically enabled with
173
+
FastLEDHub supports a potentiometer for brightness adjustments and a push button to cycle through animations. They have to be specifically enabled with
0 commit comments