Code: Alles auswählen
#define FONT_REGULAR u8g2_font_crox5t_tf //u8g2_font_helvR14_tf
#define FONT_BOLD u8g2_font_crox5tb_tf //u8g2_font_helvB14_tf
#define FONT_HEIGHT 16 //14
Moderator: Co-Administratoren
Code: Alles auswählen
#define FONT_REGULAR u8g2_font_crox5t_tf //u8g2_font_helvR14_tf
#define FONT_BOLD u8g2_font_crox5tb_tf //u8g2_font_helvB14_tf
#define FONT_HEIGHT 16 //14
Code: Alles auswählen
//display.init(115200); // default 10ms reset pulse, e.g. for bare panels with DESPI-C02
display.init(115200, true, 2, false); // USE THIS for Waveshare boards with "clever" reset circuit, 2ms reset pulse
Code: Alles auswählen
GxEPD2_3C<GxEPD2_750c_Z90, MAX_HEIGHT_3C(GxEPD2_750c_Z90)> display(GxEPD2_750c_Z90(/*CS=10*/ 17, /*DC=*/ 12, /*RST=*/ 14, /*BUSY=*/ 11)); //GDEH075Z90 880x528 XXXXXXXXXX
Code: Alles auswählen
//#include <GxIO/GxIO_SPI/GxIO_SPI.h>
//#include <GxIO/GxIO.h>
Code: Alles auswählen
B-Dis-EP-75BW:54:1: error: 'GxIO_Class' does not name a type; did you mean 'SPIClass'?
GxIO_Class io(SPI, GxCS_PIN, GxDC_PIN, GxRST_PIN);
^~~~~~~~~~
SPIClass
HB-Dis-EP-75BW:55:1: error: 'GxEPD_Class' does not name a type; did you mean 'SPIClass'?
GxEPD_Class display(io, GxRST_PIN, GxBUSY_PIN);
^~~~~~~~~~~
SPIClass
C:\Users\carst\Desktop\HB-Dis-EP-75BW\HB-Dis-EP-75BW.ino: In member function 'virtual void ePaperType::trigger(as::AlarmClock&)':
HB-Dis-EP-75BW:344:40: error: no matching function for call to 'GxEPD2_3C<GxEPD2_750c_Z90, 3>::drawPaged(void (&)())'
display.drawPaged(initDisplay);
^
In file included from C:\Users\carst\Desktop\HB-Dis-EP-75BW\HB-Dis-EP-75BW.ino:30:0:
C:\Users\carst\OneDrive\Dokumente\Arduino\libraries\GxEPD2\src/GxEPD2_3C.h:389:10: note: candidate: void GxEPD2_3C<GxEPD2_Type, page_height>::drawPaged(void (*)(const void*), const void*) [with GxEPD2_Type = GxEPD2_750c_Z90; unsigned int page_height = 3]
void drawPaged(void (*drawCallback)(const void*), const void* pv)
^~~~~~~~~
C:\Users\carst\OneDrive\Dokumente\Arduino\libraries\GxEPD2\src/GxEPD2_3C.h:389:10: note: candidate expects 2 arguments, 1 provided
HB-Dis-EP-75BW:346:42: error: no matching function for call to 'GxEPD2_3C<GxEPD2_750c_Z90, 3>::drawPaged(void (&)())'
display.drawPaged(updateDisplay);
^
In file included from C:\Users\carst\Desktop\HB-Dis-EP-75BW\HB-Dis-EP-75BW.ino:30:0:
C:\Users\carst\OneDrive\Dokumente\Arduino\libraries\GxEPD2\src/GxEPD2_3C.h:389:10: note: candidate: void GxEPD2_3C<GxEPD2_Type, page_height>::drawPaged(void (*)(const void*), const void*) [with GxEPD2_Type = GxEPD2_750c_Z90; unsigned int page_height = 3]
void drawPaged(void (*drawCallback)(const void*), const void* pv)
^~~~~~~~~
C:\Users\carst\OneDrive\Dokumente\Arduino\libraries\GxEPD2\src/GxEPD2_3C.h:389:10: note: candidate expects 2 arguments, 1 provided
C:\Users\carst\Desktop\HB-Dis-EP-75BW\HB-Dis-EP-75BW.ino: In function 'void loop()':
HB-Dis-EP-75BW:825:44: error: no matching function for call to 'GxEPD2_3C<GxEPD2_750c_Z90, 3>::drawPaged(void (&)())'
display.drawPaged(emptyBatteryDisplay);
^
In file included from C:\Users\carst\Desktop\HB-Dis-EP-75BW\HB-Dis-EP-75BW.ino:30:0:
C:\Users\carst\OneDrive\Dokumente\Arduino\libraries\GxEPD2\src/GxEPD2_3C.h:389:10: note: candidate: void GxEPD2_3C<GxEPD2_Type, page_height>::drawPaged(void (*)(const void*), const void*) [with GxEPD2_Type = GxEPD2_750c_Z90; unsigned int page_height = 3]
void drawPaged(void (*drawCallback)(const void*), const void* pv)
^~~~~~~~~
C:\Users\carst\OneDrive\Dokumente\Arduino\libraries\GxEPD2\src/GxEPD2_3C.h:389:10: note: candidate expects 2 arguments, 1 provided
C:\Users\carst\Desktop\HB-Dis-EP-75BW\HB-Dis-EP-75BW.ino: In function 'void updateDisplay()':
HB-Dis-EP-75BW:875:11: error: 'GxEPD' has not been declared
GxEPD::bm_normal
^~~~~
exit status 1
'GxIO_Class' does not name a type; did you mean 'SPIClass'?