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

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