update templ.ini and doku
This commit is contained in:
parent
3c824bfc92
commit
3d13e761f4
4
doku.md
4
doku.md
@ -75,8 +75,12 @@ PlatformIO Library veraltet !!
|
|||||||
|
|
||||||
### TIMER in OTA unterbrechen !!!!!
|
### TIMER in OTA unterbrechen !!!!!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### further improvments
|
### further improvments
|
||||||
with streamFile gzip encoded Files can be sent
|
with streamFile gzip encoded Files can be sent
|
||||||
this reduces space on fs !
|
this reduces space on fs !
|
||||||
new easier script needed to just convert to .gz
|
new easier script needed to just convert to .gz
|
||||||
maybe measure timings on ESP
|
maybe measure timings on ESP
|
||||||
|
|
||||||
|
__=> use serveStatic because way simpler !__
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// Wrapper for ESP8266WebServer with Filesystem as HTTP source
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <ESP8266WebServer.h>
|
#include <ESP8266WebServer.h>
|
||||||
|
@ -8,23 +8,29 @@
|
|||||||
; Please visit documentation for the other options and examples
|
; Please visit documentation for the other options and examples
|
||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[env]
|
[platformio]
|
||||||
|
description = ESP8266 Treppenlicht Steuerung
|
||||||
|
default_envs = ota
|
||||||
|
; test_dir = test
|
||||||
|
data_dir = data_gz
|
||||||
|
|
||||||
|
[env:hardware]
|
||||||
platform = espressif8266
|
platform = espressif8266
|
||||||
board = nodemcuv2
|
board = nodemcuv2
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
|
||||||
; for http files
|
|
||||||
board_build.filesystem = littlefs
|
board_build.filesystem = littlefs
|
||||||
board_build.ldscript = eagle.flash.4m1m.ld
|
board_build.ldscript = eagle.flash.4m1m.ld
|
||||||
extra_scripts = pre:create_gz_files.py
|
extra_scripts = pre:create_gz_files.py
|
||||||
|
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
|
|
||||||
[env:serial]
|
[env:serial]
|
||||||
|
extends = env:hardware
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
|
|
||||||
[env:ota]
|
[env:ota]
|
||||||
|
extends = env:hardware
|
||||||
; OTA => https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
|
; OTA => https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
|
||||||
upload_protocol = espota
|
upload_protocol = espota
|
||||||
upload_port = <!! IP ADDRESS !!>
|
upload_port = <!! IP ADDRESS !!>
|
||||||
@ -33,13 +39,46 @@ upload_flags =
|
|||||||
--host_port=<!! PORT !!>
|
--host_port=<!! PORT !!>
|
||||||
--auth=admin
|
--auth=admin
|
||||||
|
|
||||||
|
|
||||||
[env:debug]
|
[env:debug]
|
||||||
|
extends = env:hardware
|
||||||
; look at doku.md
|
; look at doku.md
|
||||||
build_flags = -DWITH_DEBUGGING_ON -Os -g3 -ggdb3
|
build_flags = -DWITH_DEBUGGING_ON -Os -g3 -ggdb3
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
|
|
||||||
|
|
||||||
|
# This file is used compile and run tests located in the `unit` directory.
|
||||||
|
# For more info, see:
|
||||||
|
# https://docs.platformio.org/en/latest/plus/unit-testing.html
|
||||||
|
# https://github.com/ThrowTheSwitch/Unity
|
||||||
|
# https://github.com/ThrowTheSwitch/Unity/blob/master/docs/UnityAssertionsReference.md
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# To prepare coverage data for lcov, add ${coverage.build_flags} to env:test build flags
|
||||||
|
# To actually generate coverage report:
|
||||||
|
# $ `pio test` / run the test `program` manually
|
||||||
|
# $ lcov --include (readlink -f ../espurna)'/*' --capture --directory .pio/build/test/ --output-file test.info
|
||||||
|
# $ genhtml --ignore-errors source test.info --output-directory out
|
||||||
|
|
||||||
|
[coverage]
|
||||||
|
build_flags = -lgcov -fprofile-arcs -ftest-coverage
|
||||||
|
|
||||||
|
[env:test]
|
||||||
|
extends = env:hardware
|
||||||
|
|
||||||
|
|
||||||
|
[env:native]
|
||||||
|
platform = native
|
||||||
|
test_build_project_src = true
|
||||||
|
build_flags =
|
||||||
|
-DMANUFACTURER="PLATFORMIO"
|
||||||
|
-DDEVICE="TEST"
|
||||||
|
-std=gnu++11
|
||||||
|
-g
|
||||||
|
-Os
|
||||||
|
-I lib/treppe
|
||||||
|
-I lib/PCA9685-Arduino
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user