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.3KB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. ; for pio check
  20. ; check_tool = cppcheck
  21. check_tool = clangtidy
  22. check_flags =
  23. ; clangtidy: --fix-errors
  24. clangtidy: lib/httpserver/* lib/treppe/* lib/PCA9685-Arduino/*
  25. check_skip_packages = yes
  26. board_build.filesystem = littlefs
  27. board_build.ldscript = eagle.flash.4m1m.ld
  28. extra_scripts = pre:create_gz_files.py
  29. monitor_speed = 115200
  30. [env:serial]
  31. extends = env:hardware
  32. upload_protocol = esptool
  33. upload_speed = 921600
  34. [env:ota]
  35. extends = env:hardware
  36. ; OTA => https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
  37. upload_protocol = espota
  38. upload_port = <!! IP ADDRESS !!>
  39. upload_flags =
  40. --port=8266
  41. --host_port=<!! PORT !!>
  42. --auth=admin
  43. [env:debug]
  44. extends = env:hardware
  45. ; look at doku.md
  46. build_flags = -DWITH_DEBUGGING_ON -Os -g3 -ggdb3
  47. upload_protocol = esptool
  48. upload_speed = 921600
  49. # This file is used compile and run tests located in the `unit` directory.
  50. # For more info, see:
  51. # https://docs.platformio.org/en/latest/plus/unit-testing.html
  52. # https://github.com/ThrowTheSwitch/Unity
  53. # https://github.com/ThrowTheSwitch/Unity/blob/master/docs/UnityAssertionsReference.md
  54. # To prepare coverage data for lcov, add ${coverage.build_flags} to env:test build flags
  55. # To actually generate coverage report:
  56. # $ `pio test` / run the test `program` manually
  57. # $ lcov --include (readlink -f ../espurna)'/*' --capture --directory .pio/build/test/ --output-file test.info
  58. # $ genhtml --ignore-errors source test.info --output-directory out
  59. [coverage]
  60. build_flags = -lgcov -fprofile-arcs -ftest-coverage
  61. [env:test]
  62. extends = env:hardware
  63. [env:native]
  64. platform = native
  65. test_build_project_src = true
  66. build_flags =
  67. -DMANUFACTURER="PLATFORMIO"
  68. -DDEVICE="TEST"
  69. -std=gnu++11
  70. -g
  71. -Os
  72. -I lib/treppe
  73. -I lib/PCA9685-Arduino