diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..69f269d --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,13 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "install", + "path": ".piolibdeps/sprocket-core/tools/", + "problemMatcher": [] + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index d67a4a5..00e146d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,25 @@ This is the brain of the the almighty [Illumination Cat](https://www.thingiverse ## API ### WebSocket Endpoint: /pixel + +Fields: +|Field|Type|Description| +| ------------- |-------------| -----| +| topic | String | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | + +Example: +``` json +{ + "topic": "pixels/color", + "payload": "13505813" +} +``` +#### Message Formate +- topic +- payload + #### Topics pixels/color pixels/color2 diff --git a/platformio.ini b/platformio.ini index 09cc2af..2812d7e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -29,6 +29,7 @@ board = ${common.board} upload_speed = ${common.upload_speed} monitor_baud = ${common.monitor_baud} framework = ${common.framework} +build_flags = -Wl,-Teagle.flash.4m.ld ;lib_extra_dirs = ~/src/illucat/.piolibdeps/sprocket-core/lib lib_deps = ${common.lib_deps} painlessMesh