implement wake up from interrupt, merge latest EPD code