platformio_override.ini 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ; USAGE: Copy this file and rename it to platformio_override.ini
  2. ;
  3. ; The platformio_override.ini file is not overwritten or monitored by git
  4. ; ONLY edit platformio_override.ini to make local changes to the parameters
  5. [platformio]
  6. extra_configs =
  7. ; Uncomment or edit the lines to show more User Setups in the PIO sidebar
  8. ; user_setups/darwin_sdl/*.ini
  9. ; user_setups/esp32/*.ini
  10. user_setups/esp8266/*.ini
  11. ; user_setups/linux_sdl/*.ini
  12. ; user_setups/stm32f4xx/*.ini
  13. ; user_setups/win32/*.ini
  14. [override]
  15. ; -- Hasp config options --------------------------------------
  16. build_flags =
  17. ; -- Uncomment the next line to use the file include/user_config_override.h settings
  18. ; -DUSE_CONFIG_OVERRIDE
  19. ;region -- Default Build Environments : Used when Build All ---
  20. extra_default_envs =
  21. ; Uncomment specific environments or create extra:
  22. ; arduitouch-esp32_ili9341
  23. ; d1-mini-esp32_ili9341
  24. ; d1-mini-esp8266_ili9341
  25. esp12e_ili9341
  26. ; d132-unoshield
  27. ; esp12e-st7735
  28. ; esp32dev-mrb3511
  29. ; esp32dev-ili9488
  30. ; lanbon_l8
  31. ; lolin-d32-pro_ili9341
  32. ; my_custom_build
  33. ; nodemcu32s-raspi
  34. ; wt32-sc01
  35. ; ttgo_esp32_poe-ili9341
  36. ;endregion
  37. ;region -- Define your local COM ports for each environment ---
  38. [env:d1-mini-esp32_ili9341]
  39. monitor_port = COM6 ; Change to the correct port
  40. upload_port = ${env:d1-mini-esp32_ili9341.monitor_port}
  41. [env:d1-mini-esp8266_ili9341]
  42. monitor_port = COM5 ; Change to the correct port
  43. upload_port = ${env:d1-mini-esp8266_ili9341.monitor_port}
  44. [env:esp12e_ili9341]
  45. monitor_port = COM5 ; Change to the correct port
  46. monitor_rts = 0
  47. monitor_dtr = 0
  48. upload_port = ${env:d1-mini-esp8266_ili9341.monitor_port}
  49. [env:esp32dev-mrb3511]
  50. monitor_port = COM3 ; Change to the correct port
  51. upload_port = ${env:esp32dev-mrb3511.monitor_port}
  52. [env:d132-unoshield]
  53. monitor_port = COM9 ; Change to the correct port
  54. ;upload_port = ${$env:d132-unoshield.monitor_port}
  55. upload_port = 192.168.4.4 ; IP of the ESP
  56. upload_protocol = espota ; Use ArduinoOTA after flashing over serial
  57. upload_flags = --port=3232 ; --auth=haspadmin ; OTA password
  58. [env:ttgo_esp32_poe-ili9341]
  59. monitor_port = COM9 ; Change to the correct port
  60. ;upload_port = ${env:ttgo_esp32_poe-ili9341.monitor_port}
  61. upload_port = 192.168.4.5 ; IP of the ESP
  62. upload_protocol = espota ; Use ArduinoOTA after flashing over serial
  63. upload_flags = --port=3232 ; --auth=haspadmin ; OTA password
  64. [env:lolin-d32-pro_ili9341]
  65. monitor_port = COM5 ; Change to the correct port
  66. upload_port = ${env:lolin-d32-pro_ili9341.monitor_port}
  67. ;endregion
  68. ;region -- Custom Environment configuration example -----------------
  69. [env:my_custom_build]
  70. extends = esp32
  71. board = nodemcu-32s
  72. upload_port = COM12 ; To change the port, use platform_override.ini
  73. monitor_port = COM12 ; To change the port, use platform_override.ini
  74. board_build.partitions = user_setups/esp32/partitions_4MB.csv ; default.csv
  75. debug_tool = esp-prog
  76. debug_init_break = tbreak setup
  77. build_flags =
  78. ${env.build_flags}
  79. ${esp32.build_flags}
  80. ;region -- TFT_eSPI build options -----------------------------------
  81. ${lcd.lolin24}
  82. ${esp32.vspi} ; Use VSPI hardware SPI bus
  83. -D TFT_DC=5
  84. -D TFT_CS=26
  85. -D TFT_RST=-1 ; RST
  86. -D TFT_BCKL=22 ; None, configurable via web UI (e.g. 21)
  87. -D TOUCH_CS=17 ; (can also be 22 or 16)
  88. ; -- Options ----------------------------------------
  89. -D HASP_USE_TELNET=1
  90. ;endregion
  91. ;endregion