waveshareteam / e-Paper

1.33k stars 595 forks source link

Arduino Uno & Waveshare 2.7inch e-Paper HAT not working #86

Open JohannesWilde opened 4 years ago

JohannesWilde commented 4 years ago

Hi there, I recently bought an original Waveschare 2.7" e-Paper HAT [264x176, Rev2.1] and wanted to try it out using my Arduino Uno. I however had no luck using the provided example Arduino/epd2in7/epd2in7.ino Using the respective Raspberry example however [RaspberryPi&JetsonNano/python/examples/epd_2in7_test.py] everything worked fine. As a last resort I started to try out other e-paper libraries provided in the library manager of the Arduino IDE. There I found https://github.com/ZinggJM/GxEPD which, after adapting the used pins to the configuration describe for this waveshare/e-Paper library busy: 7, reset: 8, DC: 9, CS: 10 [SS], CLK: 13 [SCK], DIN: 11 [MOSI], GND: GND, VCC: 5V worked seemlessly. If I find time in the future I will investigate further; for now I can tell you, that execution hangs in Arduino/epd2in7/epd2in7.cpp in Epd::Init(void) after SendCommand(POWER_ON); in the WaitUntilIdle(); [the busy signal never goes high]. If someone else encountered a similar problem or has more insight than me and knows what might be wrong or wants to test this him-/herself and help me: any help would be greatly appreciated. Good night, Johannes

JohannesWilde commented 4 years ago

I probably should add that I am referring to the SW at 853a3a4632fcb64a215e5335700f512b692bee91.

JohannesWilde commented 4 years ago

I found a solution, at least for me [#88 ]. Could someone else confirm the fix working? Best regards, Johannes