feat: rewrite NeoPattern example

This commit is contained in:
2025-09-19 21:02:26 +02:00
parent 93f09c3bb4
commit 4727405be1
14 changed files with 637 additions and 808 deletions

View File

@@ -1,31 +1,22 @@
#ifndef __DEVICE_CONFIG__
#define __DEVICE_CONFIG__
#ifndef __NPX_CONFIG__
#define __NPX_CONFIG__
// Scheduler config
#define _TASK_SLEEP_ON_IDLE_RUN
#define _TASK_STD_FUNCTION
#define _TASK_PRIORITY
// NeoPixel Configuration
#define NEOPIXEL_PIN 2
#define NEOPIXEL_LENGTH 4
#define NEOPIXEL_BRIGHTNESS 100
#define NEOPIXEL_UPDATE_INTERVAL 100
// Chip config
#define SPROCKET_TYPE "SPROCKET"
#define SERIAL_BAUD_RATE 115200
#define STARTUP_DELAY 1000
// Spore Framework Configuration
#define SPORE_APP_NAME "neopattern"
#define SPORE_DEVICE_TYPE "led_strip"
// network config
#define SPROCKET_MODE 1
#define WIFI_CHANNEL 11
#define AP_SSID "sprocket"
#define AP_PASSWORD "th3r31sn0sp00n"
#define STATION_SSID "MyAP"
#define STATION_PASSWORD "th3r31sn0sp00n"
#define HOSTNAME "sprocket"
#define CONNECT_TIMEOUT 10000
// Network Configuration (if needed)
#define WIFI_SSID "your_wifi_ssid"
#define WIFI_PASSWORD "your_wifi_password"
// NeoPixel conig
#define LED_STRIP_PIN D2
#define LED_STRIP_LENGTH 8
#define LED_STRIP_BRIGHTNESS 48
#define LED_STRIP_UPDATE_INTERVAL 200
#define LED_STRIP_DEFAULT_COLOR 100
// Debug Configuration
#define DEBUG_SERIAL_BAUD 115200
#define DEBUG_ENABLED true
#endif
#endif