Skip to content

Instantly share code, notes, and snippets.

@paulschow
Last active August 5, 2016 17:40
Show Gist options
  • Save paulschow/52fc6045e3751a1683745dc4caed7633 to your computer and use it in GitHub Desktop.
Save paulschow/52fc6045e3751a1683745dc4caed7633 to your computer and use it in GitHub Desktop.
// discharge internal - 1
Delay_us(10);
SPI_send(this->EPD_Pin_EPD_CS, CU8(0x70, 0x04), 2);
Delay_us(10);
SPI_send(this->EPD_Pin_EPD_CS, CU8(0x72, 0x50), 2);
Delay_ms(50);
// discharge internal - 2
Delay_us(10);
SPI_send(this->EPD_Pin_EPD_CS, CU8(0x70, 0x04), 2);
Delay_us(10);
SPI_send(this->EPD_Pin_EPD_CS, CU8(0x72, 0xA0), 2);
Delay_ms(50);
// discharge internal - 3
Delay_us(10);
SPI_send(this->EPD_Pin_EPD_CS, CU8(0x70, 0x04), 2);
Delay_us(10);
SPI_send(this->EPD_Pin_EPD_CS, CU8(0x72, 0x00), 2);
Delay_us(10);
this->power_off();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment