فهرست منبع

Fix function type errors

SSYYL 3 سال پیش
والد
کامیت
c6a0591118
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 3 1
      Arduino/epd2in13d/epd2in13d.cpp
  2. 1 1
      Arduino/epd2in13d/epd2in13d.h

+ 3 - 1
Arduino/epd2in13d/epd2in13d.cpp

@@ -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)

+ 1 - 1
Arduino/epd2in13d/epd2in13d.h

@@ -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);