search
[last updated: 2024-08-21]
TFT_eSPI library
LovyanGFX Library functions
WT32-SC01 SPI
-----------------------------
------------------------
------------------------------------------------------------------
This minimal program draws graphics on the screen, including sprites,
and monitors for screen touches and responds as programmed.
When you examine the code, you'll see:
(In later revs of my code I included adafruitGFX so that I could load and use custom text fonts.)
------------------------------------------------------------------
Not sure what I'm doing, but here's what I did:
------------------------------------------------------------------
In addition, in the TFT_eSPI library folder, there are files:
You must make sure only one setup file is called. In the custom setup file I add the file path as a commented out first line that can be cut and pasted back into the upgraded User_Setup_Select.h file. The ../ at the start of the path means go up one directory level. Clearly you could use different file paths or directory names as long as it does not clash with another library or folder name.
You can take this one step further and have your own setup select file and then you only need to replace the Setup.h line reference in User_Setup_Select.h to, for example:
To select a new setup you then edit your own my_setup_select.h file (which will not get overwritten during an upgrade)."
------------------------------------------------------------------
------------------------------------------------------------------
links for drawing on the TFT screen: