feat: add duo fusion configurations
This commit is contained in:
parent
d6a5fef4e7
commit
ce77636427
@ -95,11 +95,11 @@
|
|||||||
|
|
||||||
#define DEV_PINMAPPING ""
|
#define DEV_PINMAPPING ""
|
||||||
|
|
||||||
#define DISPLAY_POWERSAFE true
|
#define DISPLAY_POWERSAFE false
|
||||||
#define DISPLAY_SCREENSAVER true
|
#define DISPLAY_SCREENSAVER true
|
||||||
#define DISPLAY_ROTATION 2U
|
#define DISPLAY_ROTATION 0U
|
||||||
#define DISPLAY_CONTRAST 60U
|
#define DISPLAY_CONTRAST 60U
|
||||||
#define DISPLAY_LANGUAGE 0U
|
#define DISPLAY_LANGUAGE 1U
|
||||||
#define DISPLAY_DIAGRAM_DURATION (10UL * 60UL * 60UL)
|
#define DISPLAY_DIAGRAM_DURATION (10UL * 60UL * 60UL)
|
||||||
#define DISPLAY_DIAGRAM_MODE 1U
|
#define DISPLAY_DIAGRAM_MODE 1U
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = generic_esp32
|
default_envs = fusion_duo_dtu
|
||||||
extra_configs =
|
extra_configs =
|
||||||
platformio_override.ini
|
platformio_override.ini
|
||||||
|
|
||||||
|
|||||||
@ -21,14 +21,77 @@
|
|||||||
; you can define your personal board and/or settings here
|
; you can define your personal board and/or settings here
|
||||||
; non functional example:
|
; non functional example:
|
||||||
|
|
||||||
;[env:my_very_special_board]
|
;
|
||||||
;board = esp32dev
|
; -- PCB "DTU-Board V1.0.1" HM/HMS/HMT small case --
|
||||||
;build_flags = ${env.build_flags}
|
; -- Display 1.3" --
|
||||||
; -DHOYMILES_PIN_MISO=1
|
; -- support HM and HMS/HMT Inverter --
|
||||||
; -DHOYMILES_PIN_MOSI=2
|
[env:fusion_duo_dtu]
|
||||||
; -DHOYMILES_PIN_SCLK=3
|
board = esp32dev
|
||||||
; -DHOYMILES_PIN_IRQ=4
|
build_flags = ${env.build_flags}
|
||||||
; -DHOYMILES_PIN_CE=5
|
-DHOYMILES_PIN_MISO=19
|
||||||
; -DHOYMILES_PIN_CS=6
|
-DHOYMILES_PIN_MOSI=23
|
||||||
|
-DHOYMILES_PIN_SCLK=18
|
||||||
|
-DHOYMILES_PIN_IRQ=16
|
||||||
|
-DHOYMILES_PIN_CE=4
|
||||||
|
-DHOYMILES_PIN_CS=5
|
||||||
|
-DDISPLAY_TYPE=3
|
||||||
|
-DDISPLAY_DATA=21
|
||||||
|
-DDISPLAY_CLK=22
|
||||||
|
-DCMT_CLK=12
|
||||||
|
-DCMT_CS=27
|
||||||
|
-DCMT_FCS=26
|
||||||
|
-DCMT_GPIO2=35
|
||||||
|
-DCMT_GPIO3=34
|
||||||
|
-DCMT_SDIO=14
|
||||||
|
;
|
||||||
|
; -- PCB "DTU-Board V1.0.1" HM/HMS/HMT small case --
|
||||||
|
; -- Display 1.3" --
|
||||||
|
; -- support HM Inverter --
|
||||||
|
[env:hm_duo_dtu]
|
||||||
|
board = esp32dev
|
||||||
|
build_flags = ${env.build_flags}
|
||||||
|
-DHOYMILES_PIN_MISO=19
|
||||||
|
-DHOYMILES_PIN_MOSI=23
|
||||||
|
-DHOYMILES_PIN_SCLK=18
|
||||||
|
-DHOYMILES_PIN_IRQ=16
|
||||||
|
-DHOYMILES_PIN_CE=4
|
||||||
|
-DHOYMILES_PIN_CS=5
|
||||||
|
-DDISPLAY_TYPE=3
|
||||||
|
-DDISPLAY_DATA=21
|
||||||
|
-DDISPLAY_CLK=22
|
||||||
|
;
|
||||||
|
; -- PCB "DTU-Board V1.0.1" big case --
|
||||||
|
; -- Display 1.3" --
|
||||||
|
; -- support HM Inverter --
|
||||||
|
[env:hm_dtu_1_3]
|
||||||
|
board = esp32dev
|
||||||
|
build_flags = ${env.build_flags}
|
||||||
|
-DHOYMILES_PIN_MISO=19
|
||||||
|
-DHOYMILES_PIN_MOSI=23
|
||||||
|
-DHOYMILES_PIN_SCLK=18
|
||||||
|
-DHOYMILES_PIN_IRQ=16
|
||||||
|
-DHOYMILES_PIN_CE=4
|
||||||
|
-DHOYMILES_PIN_CS=5
|
||||||
|
-DDISPLAY_TYPE=3
|
||||||
|
-DDISPLAY_DATA=21
|
||||||
|
-DDISPLAY_CLK=22
|
||||||
|
;
|
||||||
|
; -- PCB "DTU-Board V1.0.1" big case --
|
||||||
|
; -- Display 0.96" --
|
||||||
|
; -- support HM Inverter --
|
||||||
|
[env:hm_dtu_0_96]
|
||||||
|
board = esp32dev
|
||||||
|
build_flags = ${env.build_flags}
|
||||||
|
-DHOYMILES_PIN_MISO=19
|
||||||
|
-DHOYMILES_PIN_MOSI=23
|
||||||
|
-DHOYMILES_PIN_SCLK=18
|
||||||
|
-DHOYMILES_PIN_IRQ=16
|
||||||
|
-DHOYMILES_PIN_CE=4
|
||||||
|
-DHOYMILES_PIN_CS=5
|
||||||
|
-DDISPLAY_TYPE=2
|
||||||
|
-DDISPLAY_DATA=21
|
||||||
|
-DDISPLAY_CLK=22
|
||||||
|
|
||||||
|
|
||||||
;monitor_port = /dev/ttyACM0
|
;monitor_port = /dev/ttyACM0
|
||||||
;upload_port = /dev/ttyACM0
|
;upload_port = /dev/ttyACM0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user