feat: optimize neopattern example

This commit is contained in:
2025-09-20 22:05:52 +02:00
parent 51d4d4bc94
commit c11652c123
8 changed files with 737 additions and 487 deletions

View File

@@ -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