use illu base, reduce pixel num

This commit is contained in:
2018-10-07 12:58:08 +02:00
parent 0e13508158
commit 2a21775524
3 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"pin": 4,
"length": 32,
"length": 8,
"brightness": 64,
"updateInterval": 100,
"defaultColor": 100

View File

@@ -56,6 +56,7 @@ lib_deps = ${common.lib_deps}
https://gitlab.com/wirelos/sprocket-core.git#develop
[env:release]
src_filter = +<*> -<wifiMesh/> +<wifi/>
platform = ${common.platform}
board = ${common.board}
upload_speed = ${common.upload_speed}
@@ -68,6 +69,7 @@ lib_deps = ${common.lib_deps}
[env:nodemcu]
src_filter = +<*> -<wifiMesh/> +<wifi/>
platform = ${common.platform}
board = nodemcu
upload_speed = ${common.upload_speed}

View File

@@ -1,6 +1,6 @@
#include "config.h"
#include "WiFiNet.h"
#include "WebCat.h"
#include "IlluCat.h"
WiFiNet net(
SPROCKET_MODE,
@@ -11,14 +11,13 @@ WiFiNet net(
HOSTNAME,
CONNECT_TIMEOUT
);
WebCat sprocket(
IlluCat sprocket(
{ STARTUP_DELAY, SERIAL_BAUD_RATE },
{ OTA_PORT, OTA_PASSWORD },
{ WEB_CONTEXT_PATH, WEB_DOC_ROOT, WEB_DEFAULT_FILE }
);
void setup() {
delay(STARTUP_DELAY);
sprocket.join(net);
}