ESP8266 Treppenlichtsteuerung mit OTA zum Firmware Upload
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

templ_platformio_ini 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. ; PlatformIO Project Configuration File
  2. ;
  3. ; Build options: build flags, source filter
  4. ; Upload options: custom upload port, speed and extra flags
  5. ; Library options: dependencies, extra library storages
  6. ; Advanced options: extra scripting
  7. ;
  8. ; Please visit documentation for the other options and examples
  9. ; https://docs.platformio.org/page/projectconf.html
  10. [platformio]
  11. description = ESP8266 Treppenlicht Steuerung
  12. default_envs = ota
  13. ; test_dir = test
  14. data_dir = data_gz
  15. [env:hardware]
  16. platform = espressif8266
  17. board = nodemcuv2
  18. framework = arduino
  19. board_build.filesystem = littlefs
  20. board_build.ldscript = eagle.flash.4m1m.ld
  21. extra_scripts = pre:create_gz_files.py
  22. monitor_speed = 115200
  23. [env:serial]
  24. extends = env:hardware
  25. upload_protocol = esptool
  26. upload_speed = 921600
  27. [env:ota]
  28. extends = env:hardware
  29. ; OTA => https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
  30. upload_protocol = espota
  31. upload_port = <!! IP ADDRESS !!>
  32. upload_flags =
  33. --port=8266
  34. --host_port=<!! PORT !!>
  35. --auth=admin
  36. [env:debug]
  37. extends = env:hardware
  38. ; look at doku.md
  39. build_flags = -DWITH_DEBUGGING_ON -Os -g3 -ggdb3
  40. upload_protocol = esptool
  41. upload_speed = 921600
  42. # This file is used compile and run tests located in the `unit` directory.
  43. # For more info, see:
  44. # https://docs.platformio.org/en/latest/plus/unit-testing.html
  45. # https://github.com/ThrowTheSwitch/Unity
  46. # https://github.com/ThrowTheSwitch/Unity/blob/master/docs/UnityAssertionsReference.md
  47. # To prepare coverage data for lcov, add ${coverage.build_flags} to env:test build flags
  48. # To actually generate coverage report:
  49. # $ `pio test` / run the test `program` manually
  50. # $ lcov --include (readlink -f ../espurna)'/*' --capture --directory .pio/build/test/ --output-file test.info
  51. # $ genhtml --ignore-errors source test.info --output-directory out
  52. [coverage]
  53. build_flags = -lgcov -fprofile-arcs -ftest-coverage
  54. [env:test]
  55. extends = env:hardware
  56. [env:native]
  57. platform = native
  58. test_build_project_src = true
  59. build_flags =
  60. -DMANUFACTURER="PLATFORMIO"
  61. -DDEVICE="TEST"
  62. -std=gnu++11
  63. -g
  64. -Os
  65. -I lib/treppe
  66. -I lib/PCA9685-Arduino