HELP with strange SPI issue
Posted: Sun Sep 30, 2018 7:28 pm
Hi to all, I'm new to the forum and I'm working on ESP32 for around one year.
In this days I started to work with the 2.9" EPaper Display (EPD) from Waveshare https://www.waveshare.com/wiki/2.9inch_ ... Module_(B), it's an interesting SPI Screen with 3 color (Black White and Red) after some Googling for a decent library for this 3 color EPD (I've find only the lobo library https://github.com/loboris/ESP32_ePaper_example but it isn't compatible with this EPD) I've ended up with writing my own library and publish it on GitHub.
After the headache with documentation of the EPD and the understanding of ESP32 SPI implementation on the Idf 3.1 I've 'mplemented all the code, but the CS PIN not work correctly it's working inverted (I know i can bypass the issue but this is a very strange thing).
So the problem is the CS PIN on ESP work inverted in every configuration it goes UP on SPI transmission.
My configuration is a DevKitC with these PINs configuration
EPD busy ---> GPIO_NUM_4
EPD reset -->GPIO_NUM_16
EPD DC ----->GPIO_NUM_17
EPD CS ----->GPIO_NUM_5
EPD MISO -->GPIO_NUM_23
EPD SCK --->GPIO_NUM_18
The complete code is on GitHub https://github.com/wperw/ESP32_SPIEPDLibrary
And yes comments for now are in italian (I'm italian too)
Attached the pulseview capture image, the capture file couldn't attached
Thank you so much for the help
-wperw
In this days I started to work with the 2.9" EPaper Display (EPD) from Waveshare https://www.waveshare.com/wiki/2.9inch_ ... Module_(B), it's an interesting SPI Screen with 3 color (Black White and Red) after some Googling for a decent library for this 3 color EPD (I've find only the lobo library https://github.com/loboris/ESP32_ePaper_example but it isn't compatible with this EPD) I've ended up with writing my own library and publish it on GitHub.
After the headache with documentation of the EPD and the understanding of ESP32 SPI implementation on the Idf 3.1 I've 'mplemented all the code, but the CS PIN not work correctly it's working inverted (I know i can bypass the issue but this is a very strange thing).
So the problem is the CS PIN on ESP work inverted in every configuration it goes UP on SPI transmission.
My configuration is a DevKitC with these PINs configuration
EPD busy ---> GPIO_NUM_4
EPD reset -->GPIO_NUM_16
EPD DC ----->GPIO_NUM_17
EPD CS ----->GPIO_NUM_5
EPD MISO -->GPIO_NUM_23
EPD SCK --->GPIO_NUM_18
The complete code is on GitHub https://github.com/wperw/ESP32_SPIEPDLibrary
And yes comments for now are in italian (I'm italian too)
Attached the pulseview capture image, the capture file couldn't attached
Thank you so much for the help
-wperw