TFT_eSPI library and Arduino MCP2515 CAN interface library conflict on ESP32-S3 (works on ESP32) with ILI9341 #2973
Unanswered
cvanaalst
asked this question in
Q&A - General
Replies: 1 comment 1 reply
-
Have you tried taking one of the working CAN bus examples with no changes, then slowly adding bits of TFT related code? First just add: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I need some help or guidance on how to find a solution for the following problem;
I've created a program to read CANBUS data (via Car OBD2 bus) to display it on a 2.8" TFT-screen (ILI9341) on a ESP32 Dev Kit. I am using TFT_eSPI and (https://github.com/autowp/arduino-mcp2515) each using a different SPI-interface (HSPI & VSPI). This works, but I needed some more mem for my screen (full screen sprite for anti-flicker), so I ordered a ESP32S3 Dev kit (N16R8) with more mem. I ran examples from both libraries to test if everything was working on the new Dev kit and it did.
But when I recompiled my full CANBUS-reader program, my TFT-screen just lights up and nothing displays. I do not get any error messages and my program is working correctly (debugmessages in Serial Monitor).
After debugging and creating some test programs, I've discovered that instantiation of the CANBUS object (MCP2515 mcp2515(SPI_CS) causes this behaviour. I've been trying to change the sequence of the instantiations (TFT_eSPI before or after MCP2515) as sometimes this solves the problem, => no difference.
Can anyone help me in how to find the/a solution or the exact issue/problem that causes this?
thx
Chris
Beta Was this translation helpful? Give feedback.
All reactions