feat: optimize neopattern example
This commit is contained in:
@@ -18,13 +18,14 @@ This example demonstrates how to integrate a NeoPixel pattern service with the S
|
||||
|
||||
## Configuration
|
||||
|
||||
Edit `config.h` to configure your setup:
|
||||
Edit `NeoPixelConfig.h` to configure your setup:
|
||||
|
||||
```cpp
|
||||
#define NEOPIXEL_PIN 4 // GPIO pin connected to LED strip
|
||||
#define NEOPIXEL_LENGTH 8 // Number of LEDs in your strip
|
||||
#define NEOPIXEL_BRIGHTNESS 100 // Initial brightness (0-255)
|
||||
#define NEOPIXEL_UPDATE_INTERVAL 100 // Update interval in milliseconds
|
||||
static constexpr int DEFAULT_PIN = 2;
|
||||
static constexpr int DEFAULT_LENGTH = 8;
|
||||
static constexpr int DEFAULT_BRIGHTNESS = 100;
|
||||
static constexpr int DEFAULT_UPDATE_INTERVAL = 100;
|
||||
static constexpr int DEFAULT_COLOR = 0xFF0000; // Red
|
||||
```
|
||||
|
||||
## API Endpoints
|
||||
|
||||
Reference in New Issue
Block a user