e-Paper icon indicating copy to clipboard operation
e-Paper copied to clipboard

Python error on init() call after sleep() is called

Open iago1460 opened this issue 4 years ago • 1 comments

Traceback (most recent call last):
  ...
  File "/home/pi/workspace/waveshare_epd/epd7in5b_HD.py", line 76, in init
    if (epdconfig.module_init() != 0):
  File "/home/pi/workspace/waveshare_epd/epdconfig.py", line 71, in module_init
    self.SPI.max_speed_hz = 4000000
OSError: [Errno 9] Bad file descriptor

This looks like a regression bug. Applying the changes of #65 seems to work just fine.

iago1460 avatar Aug 14 '20 19:08 iago1460

Another approach is to separate sleep() and Dev_exit()

SSYYL avatar Dec 04 '20 06:12 SSYYL