Replies: 3 comments 3 replies
-
You can connect RST and BL in expander but I don't think connect DC and CS to expander is a good idea. In contrast, reserve one GPIO for DC and direct pull down the CS will be much better. |
Beta Was this translation helpful? Give feedback.
-
Can you please elaborate why it is not a good idea? |
Beta Was this translation helpful? Give feedback.
-
ok |
Beta Was this translation helpful? Give feedback.
-
Hello,
My board (based on the ESP32) do not manage directly the DC, CS, RST, BL pins but uses an I2C expander. So the activation of these pins (LOW, HIGH) is a C function call to the I2C expander chip.
Looking at the source code of Arduino_GFX, I noticed the functions:
DC_LOW()
DC_HIGH()
CS_LOW()
CS_HIGH()
Is there an elegant way to override these functions with my own code: myDC_LOW(), myDC_HIGH(), myCS_LOW(), myCS_HIGH() ?
I did not noticed the equivalent with RST and BL but I can imagine I can create our own function:
myRST_LOW()
myRST_HIGH()
myBL_HIGH()
myBL_LOW()
Regards,
Michel
Beta Was this translation helpful? Give feedback.
All reactions