update for Arduino build

This commit is contained in:
steve 2023-07-27 15:11:44 +01:00
parent 3118153d59
commit b40cc26ca5

View File

@ -10,13 +10,13 @@ EESZ := 4M1M
F_CPU := 80 F_CPU := 80
CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=PIN_D8 -DTFT_DC=PIN_D1 \ CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=PIN_D8 -DTFT_DC=PIN_D1 \
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \ -DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \
-DHARDWARE_H=\"hw/esp8266-pwm-fs-23k256.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED) -DDEBUGGING=1 -DHARDWARE_H=\"hw/esp8bit.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED) -DDEBUGGING=1
LIBRARIES := TFT_eSPI SpiRAM LIBRARIES := TFT_eSPI SpiRAM
endif endif
ifeq ($t, tivac) ifeq ($t, tivac)
BOARD := EK-LM4F120XL BOARD := EK-LM4F120XL
CPPFLAGS := -DDEBUGGING -DHARDWARE_H=\"hw/lm4f-utft-sd.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED) CPPFLAGS := -DDEBUGGING -DHARDWARE_H=\"hw/stellarpad-example.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED)
LIBRARIES := UTFT SD SpiRAM LIBRARIES := UTFT SD SpiRAM
endif endif
@ -29,14 +29,14 @@ LIBRARIES = FS SPIFFS
ifeq ($b, lilygo) ifeq ($b, lilygo)
BOARD := ttgo-t7-v14-mini32 BOARD := ttgo-t7-v14-mini32
SERIAL_PORT := /dev/ttyACM0 SERIAL_PORT := /dev/ttyACM0
CPPFLAGS += -DHARDWARE_H=\"hw/lilygo-vga32.h\" CPPFLAGS += -DHARDWARE_H=\"hw/ttgo-t7-v14-mini32.h\"
LIBRARIES += FabGL WiFi LIBRARIES += FabGL WiFi
else else
BOARD := node32s BOARD := node32s
CPPFLAGS += -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=5 -DTFT_DC=2 \ CPPFLAGS += -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=5 -DTFT_DC=2 \
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \ -DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \
-DHARDWARE_H=\"hw/esp32-espi.h\" -DHARDWARE_H=\"hw/node32s-example.h\"
LIBRARIES += TFT_eSPI LIBRARIES += TFT_eSPI
endif endif
endif endif