123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- ; PlatformIO Project Configuration File
- ;
- ; Build options: build flags, source filter
- ; Upload options: custom upload port, speed and extra flags
- ; Library options: dependencies, extra library storages
- ; Advanced options: extra scripting
- ;
- ; Please visit documentation for the other options and examples
- ; https://docs.platformio.org/page/projectconf.html
-
- [platformio]
- description = ESP8266 Treppenlicht Steuerung
- default_envs = ota
- ; test_dir = test
- data_dir = data_gz
-
- [env:hardware]
- platform = espressif8266
- board = nodemcuv2
- framework = arduino
-
- board_build.filesystem = littlefs
- board_build.ldscript = eagle.flash.4m1m.ld
- extra_scripts = pre:create_gz_files.py
- monitor_speed = 115200
-
- [env:serial]
- extends = env:hardware
- upload_protocol = esptool
- upload_speed = 921600
-
- [env:ota]
- extends = env:hardware
- ; OTA => https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
- upload_protocol = espota
- upload_port = <!! IP ADDRESS !!>
- upload_flags =
- --port=8266
- --host_port=<!! PORT !!>
- --auth=admin
-
-
- [env:debug]
- extends = env:hardware
- ; look at doku.md
- build_flags = -DWITH_DEBUGGING_ON -Os -g3 -ggdb3
- upload_protocol = esptool
- 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
-
|