mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 13:25:03 +01:00
add neopixel example
This commit is contained in:
16
lib/NeoPattern/NeoPattern_api_json.h
Normal file
16
lib/NeoPattern/NeoPattern_api_json.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef __PIXEL_JSON_API__
|
||||
#define __PIXEL_JSON_API__
|
||||
/*
|
||||
modes: PIXELS_OFF = 0, COLOR_WHEEL_MODE = 1, COLOR_MODE = 2, PATTERN_MODE = 3
|
||||
patterns: NONE = 0, RAINBOW_CYCLE = 1, THEATER_CHASE = 2, COLOR_WIPE = 3, SCANNER = 4, FADE = 5
|
||||
{
|
||||
"mode": int,
|
||||
"value": int || String
|
||||
}
|
||||
*/
|
||||
|
||||
#define JSON_MODE_NODE "mode"
|
||||
#define JSON_VALUE "value"
|
||||
#define JSON_ACTION_NODE "action"
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user