use the _Wait function where possible
This commit is contained in:
parent
1354090ae5
commit
53cb7f2c51
24 changed files with 231 additions and 79 deletions
|
|
@ -133,11 +133,9 @@ static void EPD_3IN7_SendData(UBYTE Data)
|
|||
|
||||
static void EPD_3IN7_ReadBusy_HIGH(void)
|
||||
{
|
||||
if(DEV_Digital_Read(EPD_BUSY_PIN) == 0) return;
|
||||
Debug("e-Paper busy\r\n");
|
||||
UBYTE busy;
|
||||
do {
|
||||
busy = DEV_Digital_Read(EPD_BUSY_PIN);
|
||||
} while(busy);
|
||||
DEV_Digital_Wait(EPD_BUSY_PIN, 0); //1: busy, 0: idle
|
||||
DEV_Delay_ms(200);
|
||||
Debug("e-Paper busy release\r\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue