Cannot get TFT_eSPI to work with KALINCO P22 Smart Watch #2377
Replies: 6 comments 10 replies
-
If the display worked with the other library and those pins then the TFT_eSPI setup should be: #define TFT_MISO 4 If that does not work, run Read_User_Setup and look at the serial output to check the compiler is picking up the pins correctly. If that looks OK then provide information on the processor you are using and a link to the display vendors web page so I can see the technical details. |
Beta Was this translation helpful? Give feedback.
-
I'm doing something wrong. Why are some of the settings there but most are GPIO -1?
My User_Setup_Select.h has these lines in it (everything else is commented except the "do not tinker" section):
my kalinco_p22_setup.h has this:
Here's the code in the code which picks up the User_Setup_Select.h. So either, I'm linking it wrong, which would cause an error I presume, or something is overwriting my values. |
Beta Was this translation helpful? Give feedback.
-
It looks like you have multiple copies of the TFT_eSPI library installed! Probably best to delete ALL copies and start again. Then load the TFT_eSPI library from the Arduino_IDE menu "manage libraries" option to make sure it goes in the correct libraries folder. Edit only the User_Setup.h file with your settings to keep things simple at this stage. Don't try to change anything else in the library! |
Beta Was this translation helpful? Give feedback.
-
Changing line 187, like you said gave me this:
The product information is here. If you need more I can do some digging. I actually have a variation of ATCwatch running on it, so I have the settings, thought I may not be sure exactly where they are. I'm trying to do something really simple to start, like: |
Beta Was this translation helpful? Give feedback.
-
Ok. Thanks for the help. I does have a ST7789. Looking through the code on the ATCwatch, I believe I have the TFT_CS, TFT_DC, and TFT_RST settings correct (25, 18, and 26 respectively). Do you have any last advice on where I should focus to try and solve this? |
Beta Was this translation helpful? Give feedback.
-
The backlight is coming on when I upload, does that mean it's powered on? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am really struggling to get this working with a simple demo with a ST7789, which I saw in a YouTube video. My screen gets backlit but nothing else happens. Here is the code I'm looking to run:
I downloaded the repo to a local directory to remove of some legacy code in the ST7789_init.h. I am using a custom configuration in /Projects/TFT_eSPI_Setups/my_custom_setup.h according to the tips. I have made the change in my User_Setup_Select.h file:
#include <../TFT_eSPI_Setups/my_custom_setup.h>
in my_custom_setup I have the settings I need:
I took the pin settings from code that worked with the device with a different codebase (not TFT_eSPI):
Beta Was this translation helpful? Give feedback.
All reactions