e-Paper
e-Paper copied to clipboard
Cannot send images after a sleep()
I believe that there is a bug in the Raspberry PI implementation for the epd13in3k. Calling sleep() will close the SPI. This means that when you call init() again, later on, for another image, calls the send_command() (or send_data()) will fail, as the file descriptor has been closed.
I have modified the start of the init() function to be as below and it seems to work. Note the extra call to epdconfig.module_init().
This requires more professional testing, I would guess that all init() methods suffer from the same bug.
def init(self):
# EPD hardware init start
self.reset()
self.ReadBusy()
if (epdconfig.module_init() != 0):
return -1