feat: rewrite NeoPattern example
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user