feat: add ESP32 build

This commit is contained in:
Patrick Balsiger
2020-09-27 09:20:42 +02:00
parent 7fb97d164a
commit 212baf7660
6 changed files with 29 additions and 17 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,3 @@
.pioenvs
.piolibdeps
.pio
.vscode
data/config.json

View File

@@ -1,7 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
]
}

View File

@@ -1,9 +1,9 @@
{
"stationMode": 1,
"hostname": "illucat",
"apSSID": "illucat",
"apPassword": "illumination",
"hostname": "bar-light",
"apSSID": "bar-light",
"apPassword": "th3r31sn0sp00n",
"connectTimeout": 5000,
"stationSSID": "wirelos",
"stationPassword": "th3r31sn0sp00n"
}
"stationSSID": "UPC7823296",
"stationPassword": "rthYx4Vnfeza"
}u

View File

@@ -1,7 +1,7 @@
{
"pin": 4,
"length": 8,
"brightness": 127,
"brightness": 50,
"updateInterval": 100,
"defaultColor": 100
}

View File

@@ -8,8 +8,8 @@
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
;[platformio]
;env_default = build
[platformio]
env_default = build
[common]
framework = arduino
@@ -30,6 +30,19 @@ lib_deps =
https://gitlab.com/wirelos/sprocket-plugin-neopixel.git
[env:build-esp32]
platform = espressif32
board = esp32dev
src_filter = +<*> -<var/> +<var/wifi/>
upload_speed = ${common.upload_speed}
monitor_baud = ${common.monitor_baud}
framework = ${common.framework}
build_flags = -DSPROCKET_PRINT=1
lib_deps = ${common.lib_deps}
https://gitlab.com/wirelos/sprocket-network-wifi.git#next
https://gitlab.com/wirelos/sprocket-plugin-web.git#next
[env:build]
src_filter = +<*> -<var/> +<var/wifi/>
platform = ${common.platform}