How to use the hardware SPI On ESP32-S3 in Arduino IDE #2457
-
I have purchased a monochrome display screen driven by the SSD1322 chip. It has a resolution of 256*64 and a 3-wire SPI interface. I bought it on Alibaba (a Chinese online store) from this link: "https://detail.1688.com/offer/520064519036.html?spm=a2615.2177701.autotrace-offerGeneral.20.2ab74cdaEPnmfk". I want to use it to create a calculator. However, I am experiencing an issue with the slow refresh rate of the screen. It takes approximately 700-1000 milliseconds to refresh once. I am using the Arduino IDE and have tried various solutions found online, but none of them have been successful. Could someone please advise me on how to improve the refresh rate of the screen? Thank you very much.(translated by ChatGPT) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Which u8g2 constructor did you use? |
Beta Was this translation helpful? Give feedback.
-
Hello, I have found where the problem lies and now I have resolved it. I want to put the solution here, in case someone needs it. The hardware SPI pins I found online for ESP32-S3 are GPIO11, GPIO12, and GPIO13. However, the default SPI pins for the "ESP32-S3 Dev Module" downloaded from Arduino IDE are not these. Due to the IO MUX of ESP32-S3, SPI pins can be freely allocated. So all you need to do is open C: \ Users \ "Your user name" \ AppData \ Local \ Arduino 15 \ packages \ esp32 \ hardware \ esp32\ version number \ variables \ adafruit_feather_ esp32s3 \ pins_arduino. h and modify it: |
Beta Was this translation helpful? Give feedback.
Which u8g2 constructor did you use?
Ensure to use a HW SPI contructor!