Fix function type errors

This commit is contained in:
SSYYL 2022-01-10 11:39:04 +08:00
parent 130e685e7d
commit c6a0591118
2 changed files with 4 additions and 2 deletions

View file

@ -286,7 +286,7 @@ void Epd::TurnOnDisplay(void)
function : Initialize the e-Paper register
parameter:
******************************************************************************/
void Epd::Init()
int Epd::Init()
{
/* this calls the peripheral hardware interface, see epdif */
if (IfInit() != 0) {
@ -323,6 +323,8 @@ void Epd::Init()
SendCommand(0x82); //vcom_DC setting
SendData(0x28);
return 0;
}
void Epd::Clear(void)

View file

@ -43,7 +43,7 @@ public:
Epd();
~Epd();
void Init(void);
int Init(void);
void SendCommand(unsigned char command);
void SendData(unsigned char data);
void ReadBusy(void);