commit
60762ac5a3
@ -50,10 +50,10 @@ function : Initialize the e-Paper register
|
|||||||
parameter:
|
parameter:
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
int Epd::Init(void) {
|
int Epd::Init(void) {
|
||||||
if (IfInit() != 0) {
|
if (IfInit() != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
Reset();
|
Reset();
|
||||||
EPD_5IN65F_BusyHigh();
|
EPD_5IN65F_BusyHigh();
|
||||||
SendCommand(0x00);
|
SendCommand(0x00);
|
||||||
SendData(0xEF);
|
SendData(0xEF);
|
||||||
@ -88,6 +88,8 @@ int Epd::Init(void) {
|
|||||||
DelayMs(100);
|
DelayMs(100);
|
||||||
SendCommand(0x50);
|
SendCommand(0x50);
|
||||||
SendData(0x37);
|
SendData(0x37);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -227,6 +229,4 @@ void Epd::Sleep(void) {
|
|||||||
DigitalWrite(RST_PIN, 0); // Reset
|
DigitalWrite(RST_PIN, 0); // Reset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* END OF FILE */
|
/* END OF FILE */
|
||||||
|
Loading…
Reference in New Issue
Block a user