components/tft/CMakeLists.txt

Fri, 28 Jun 2024 15:33:24 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 28 Jun 2024 15:33:24 +0200
branch
idf 5.1
changeset 137
e0f50087c909
parent 129
31f9d3e4a85f
permissions
-rw-r--r--

Fixed changing runtime datarecord size during switching between IDF 4.2 and 5.1. Fixed wiping the /spiffs filesystem. The directory listing from the SD card doesn't overwrite parts of the screen anymore. Solved the slow speed issue with the SD card. Try to force the SD card to operate at 20 MHz. More project settings changed to improve performance and memory usage.

129
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
1 if (NOT IDF_VERSION_MAJOR)
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
2 set(IDF_VERSION_MAJOR 3)
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
3 endif()
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
4
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
5 if (IDF_VERSION_MAJOR LESS 5)
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
6 message(FATAL_ERROR "Can't build: requires ESP-IDF version 5.0 or above.")
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
7 endif()
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
8
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
9 set(COMPONENT_ADD_INCLUDEDIRS .)
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
10 set(COMPONENT_SRCS "comic24.c DefaultFont.c def_small.c DejaVuSans18.c DejaVuSans24.c minya24.c SmallFont.c tft.c tftspi.c tooney32.c Ubuntu16.c")
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
11 set(COMPONENT_REQUIRES "soc" "driver" "esp_rom" "spidriver")
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
12 register_component()
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
13
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
14 #idf_component_register(SRCS comic24.c DefaultFont.c def_small.c DejaVuSans18.c DejaVuSans24.c minya24.c SmallFont.c tft.c tftspi.c tooney32.c Ubuntu16.c
31f9d3e4a85f Start migration to IDF 5.1
Michiel Broek <mbroek@mbse.eu>
parents: 74
diff changeset
15 # REQUIRES spidriver INCLUDE_DIRS .)

mercurial