Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP-IDF Release v4.0 Support & Open PR Consolidation #79

Open
wants to merge 47 commits into
base: master
Choose a base branch
from

Conversation

jeremyjh
Copy link

@jeremyjh jeremyjh commented Sep 15, 2019

I've merged all of the open PRs in my branch, but also contributed some changes to make this library compatible with the latest changes in ESP-IDF and fully configurable through idf.py menuconfig.

I'm hopeful this could be merged into the upstream repository but I'll also continue to take PRs at https://github.com/jeremyjh/ESP32_TFT_library .

Other than required updates for 4.0, the motivation for these changes is to improve the usability of this repo as an ESP library component rather than the basis of a new project.

This now builds its subcomponents with idf_register_component. Instructions for including as a library to an existing project have been added, along with updates for building and running the examples with idf.py.

All the configuration that is relevant to using this project as a library (e.g. SPIFFs, predefined screen configs) have been moved into the component folders, rather than being configured in the Demo project.

It is now possible to configure all the pins individually through menuconfig, and instructions about modifying the headers directly have been removed.

I also prefixed all global variables with tft_ that were not already so prefixed. This is perhaps the biggest breaking change for existing users, but I feel it is for the best as it makes usage of these variables in application code much more obvious, and reduces the possibility of name collision with other libraries.

The other breaking change is the renaming of the Example configs. These were already used in the library proper and referred to as predefines so I updated the name itself to reflect that along with moving them into the library's Kconfig. To update, users just need to run idf.py menuconfig.

jeremyjh and others added 11 commits September 16, 2019 20:53
Adds the TTGO T-Display to the Kconfig system.
Changes taken from:
Xinyuan-LilyGO/TTGO-T-Display#8
Ttgo t display support & new IDF compatibility
This adds a define, that the program can use, if the display needs to
be inverted by default.
This adds offsets for displays that put 0;0 outside the actual screen
area.
The additional calculations completely dissapear when not defining any
offsets, thus eliminating any potential performance hits for displays
that do not need offsets.
jeremyjh and others added 11 commits March 26, 2020 08:39
Adding offset and inversion handling
…ncies

cmake: Declare nvs_flash as a dependency, instead of pushing include path
Adding support for the TTGO T-WRISTBAND support
Change string parameters to be const char * (instead of char*) and fix
up related spacing and formatting.
Fix various typos and make punctuation consistent.
Fix const correctness in TFT functions
warning: initialization discards 'const' qualifier from pointer
  target type [-Wdiscarded-qualifiers]
Add const qualifier to temp pointer to fix warning
jeremyjh and others added 7 commits June 2, 2021 09:36
tftspi.h is not meant to be a separate public interface because it is already included in `tft.h`. 

See discussion in #15; `tftspi.h` is not a useful interface on it is own; user programs should include only `tft.h`.
Fixes for compiling with esp-idf v5.0
esp-idf v5.1 have deprecated the legacy spi_flash APIs, so using the
newer APIs if esp-idf version is >= 5.0
Use the newer spi_flash APIs for read/write/erase flash operations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants