Skip to content

Cannot send images after a sleep() #406

@efrecon

Description

@efrecon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions