stm32f407-black_ili9341.ini 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ;***************************************************;
  2. ; STM32F4 build with ;
  3. ; - DIY_more board ;
  4. ; - ili9341 TFT ;
  5. ; - xpt2046 touch controller ;
  6. ;***************************************************;
  7. [env:black_f407vg]
  8. extends = stm32f4
  9. board = diymore_f407vgt
  10. board_build.mcu = stm32f407vgt6
  11. upload_protocol = dfu
  12. monitor_port = COM7 ; To change the port, use platform_override.ini
  13. build_flags =
  14. ${env.build_flags}
  15. ${stm32f4.build_flags}
  16. ;region -- TFT_eSPI build options ------------------------
  17. ${lcd.lolin24}
  18. ;-D TFT_MISO=PB4 ;Default
  19. ;-D TFT_MOSI=PB5 ;Default
  20. ;-D TFT_SCLK=PB3 ;Default
  21. -D TFT_CS=PE13 ;D8
  22. -D TFT_DC=PE14 ;D3
  23. -D TFT_BCKL=-1 ;None, configurable via web UI (e.g. 2 for D4)
  24. -D TOUCH_CS=PA6 ;NC
  25. -D TFT_RST=-1 ;D4
  26. ;endregion
  27. -D STM32_SERIAL1 ; Set this option to use Serial1 as default sersial port, leave out if using Serial2
  28. ;region -- Hasp build options ----------------------------
  29. -D HASP_OUTPUT_PIN=PE0 ; User LED D2 on DevEBox board
  30. -D HASP_INPUT_PIN=PD15 ; User Button K1 on DevEBox board
  31. -D HASP_USE_TASMOTA_CLIENT=1
  32. -D HASP_USE_OTA=0
  33. -D HASP_USE_ETHERNET=1
  34. ;endregion
  35. ;region -- Network build options -------------------------
  36. -D W5500_MOSI=PB15 ;SPI2 MOSI
  37. -D W5500_MISO=PB14 ;SPI2 MISO
  38. -D W5500_SCLK=PB13 ;SPI2 SCLK
  39. -D W5500_CS=PB6 ;SPI2 CS
  40. -D W5500_RST=PD1 ;SPI2 CS
  41. ;-D HAL_ETH_MODULE_ENABLED=1 ; enable ethernet support
  42. ;-D LAN8742A_PHY_ADDRESS=0x01U ; set LAN8720 PHY address
  43. ;endregion
  44. ;region -- Library options -------------------------------
  45. lib_deps =
  46. ${env.lib_deps}
  47. ${stm32f4.lib_deps}
  48. ;Ethernet
  49. ; STM32duino STM32Ethernet@^1.0.5
  50. https://github.com/netwizeBE/Ethernet3.git
  51. https://github.com/khoih-prog/EthernetWebServer_STM32
  52. lib_ignore =
  53. GxTFT
  54. XPT2046_Touchscreen
  55. lv_lib_zifont
  56. src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<lv_lib_zifont/> +<stm32f4/>
  57. ;endregion