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

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