DustinWatts / FreeTouchDeck

For interfacing with Windows/macOS/Linux using an ESP32, a touchscreen and BLE.
https://www.youtube.com/dustinwatts
MIT License
632 stars 128 forks source link

Support for MaTouch_ESP32-C3 (ESP32C3SPI35) #115

Closed phpbbireland closed 10 months ago

phpbbireland commented 1 year ago

Will the code work with Makerfabs-ESP32-C3-SPI-TFT-with-Touch boards?

Mike

DustinWatts commented 1 year ago

Hi @phpbbireland!

FreetouchDeck should work on any ESP32 that has WiFi and BLE. I haven't tested it. But you should be able to change the User_Setup.h for your screen and board. And also change some #defines in the main *.ino sketch. Let me know if it works out!

phpbbireland commented 1 year ago

Thanks, will try some more...

DustinWatts commented 1 year ago

This issue is still open... did you make any progress?

Btw. I found the pins for the screen that you need to change:

MOSI = GPIO6
MISO = GPIO7
SCK = GPIO5
CS = GPIO4
RST = -1
DC = GPIO10
BL = GPIO8

For the TOUCH_CS you can set it to any pin, it is not used by the capacitive touch screen, but has to be defined for the code to work. For the touch, I found the I2C pins you need to set in FreeTouchDeck.ino:

I2C_SDA = GPIO2
I2C_SCL = GPIO3

When changing these values in User_Setup.h only use the pin number without "GPIO". Same goes for setting the I2C pins in the FreeTouchDeck.ino sketch. Hope this helps!

github-actions[bot] commented 11 months ago

This issue has been stale for a while now

phpbbireland commented 10 months ago

Sorry, real busy, forgot to close this... Haven't got a chance to test but the extra info should suffice...

DustinWatts commented 10 months ago

You can always reopen this issue if you make some progress and show it to other interested in doing the same thing! 👍