FastLED 3.7.8
Loading...
Searching...
No Matches
Esp32Rmt51.ino
1
2
3#include <FastLED.h>
4#include "platforms/esp/32/led_strip/rmt_demo.h"
5
6// How many leds in your strip?
7#define NUM_LEDS 10
8
9// For led chips like WS2812, which have a data line, ground, and power, you just
10// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
11// ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
12// Clock pin only needed for SPI based chipsets when not using hardware SPI
13#define DATA_PIN 9
14
15// Define the array of leds
16CRGB leds[NUM_LEDS];
17
18// Time scaling factors for each component
19#define TIME_FACTOR_HUE 60
20#define TIME_FACTOR_SAT 100
21#define TIME_FACTOR_VAL 100
22
23
24void setup() {
25 Serial.begin(115200);
26}
27
28void loop() {
29 rmt_demo(DATA_PIN, NUM_LEDS);
30 delay(1000);
31}
central include file for FastLED, defines the CFastLED class/object
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:25