Skip to content

Commit fa3687e

Browse files
committed
Update README.md
1 parent 69455c0 commit fa3687e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ FastLEDHub allows you to manage all of your [FastLED]([FastLED](https://github.c
1515
- Alarm: Be woken up to an animation slowly fading in
1616
- Sunset: Automatically fade in an animation when the sun sets at your location
1717
- Control animations and brightness using hardware inputs
18+
- Incorporate audio spectrum data into your animations
1819
- Control animations using HTTP requests for easy automation
1920

2021
## Demo
@@ -217,6 +218,17 @@ Setting up an alarm in the web interface will fade in a user defined animation o
217218

218219
Similarly the sunset feature will fade in an animation as soon as the sun sets at your location. Please configure latitude, longitude and time zone in the web interface beforehand.
219220

221+
### Audio spectrum data
222+
223+
[FastLEDHub-AudioViz](https://github.com/stnkl/FastLEDHub_AudioViz) allows you to send audio spectrum data from a Windows audio device to your ESP32/ESP8266. The transmitted data consists of 16 bins corresponding to different frequency ranges in the audio spectrum. Data is transmitted via a websocket connection and can be used by accessing the `FastLEDHub.spectrumData` array from within your animation:
224+
225+
```cpp
226+
uint8_t lowFrequencies = FastLEDHub.spectrumData[0];
227+
uint8_t highFrequencies = FastLEDHub.spectrumData[SPECTRUM_LENGTH - 1];
228+
```
229+
230+
`SPECTRUM_LENGTH` defines the number of bins (16). The `Spectrogram` example shows one way to use the spectrum data in your animations.
231+
220232
### Control via HTTP requests
221233

222234
Most functions can be triggered via HTTP requests:

0 commit comments

Comments
 (0)