Merge pull request #203 from Joseph-DiGiovanni/patch-1
Fixed ClearFrame and WaitUntilIdle on 4.2in EPD
This commit is contained in:
commit
ce75f349ac
1 changed files with 1 additions and 7 deletions
|
@ -132,10 +132,8 @@ void Epd::SendData(unsigned char data) {
|
||||||
* @brief: Wait until the busy_pin goes HIGH
|
* @brief: Wait until the busy_pin goes HIGH
|
||||||
*/
|
*/
|
||||||
void Epd::WaitUntilIdle(void) {
|
void Epd::WaitUntilIdle(void) {
|
||||||
SendCommand(0x71);
|
|
||||||
while(DigitalRead(busy_pin) == 0) { //0: busy, 1: idle
|
while(DigitalRead(busy_pin) == 0) { //0: busy, 1: idle
|
||||||
DelayMs(100);
|
// Wait
|
||||||
SendCommand(0x71);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -418,10 +416,6 @@ void Epd::ClearFrame(void) {
|
||||||
SendData(0xFF);
|
SendData(0xFF);
|
||||||
}
|
}
|
||||||
DelayMs(2);
|
DelayMs(2);
|
||||||
SetLut();
|
|
||||||
SendCommand(DISPLAY_REFRESH);
|
|
||||||
DelayMs(100);
|
|
||||||
WaitUntilIdle();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue