Ja, hatte ich gleich gemacht.
Wenn ich den Mustersketch " LCD_Touch" ausführen möchte , erhalte ich folgende Fehlermeldung.
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
In file included from sketch\LCD_GUI.cpp:16:0:
LCD_GUI.h:127: error: 'sFont' has not been declared
void GUI_DisChar(POINT Xstart, POINT Ystart, const char Acsii_Char, sFont* Font, COLOR Color_Background, COLOR Color_Foreground);
^
LCD_GUI.h:128: error: 'sFont' has not been declared
void GUI_DisString_EN(POINT Xstart, POINT Ystart, const char * pString, sFont* Font, COLOR Color_Background, COLOR Color_Foreground );
^
LCD_GUI.h:129: error: 'sFont' has not been declared
void GUI_DisNum(POINT Xpoint, POINT Ypoint, int32_t Nummber, sFont* Font, COLOR Color_Background, COLOR Color_Foreground );
^
LCD_GUI.cpp:251: error: 'sFont' has not been declared
sFont* Font, COLOR Color_Background, COLOR Color_Foreground)
^
sketch\LCD_GUI.cpp: In function 'void GUI_DisChar(uint16_t, uint16_t, char, int*, uint16_t, uint16_t)':
LCD_GUI.cpp:260: error: request for member 'Height' in '* Font', which is of non-class type 'int'
uint32_t Char_Offset = (Acsii_Char - ' ') * Font->Height * (Font->Width / 8 + (Font->Width % 8 ? 1 : 0));
^
LCD_GUI.cpp:260: error: request for member 'Width' in '* Font', which is of non-class type 'int'
uint32_t Char_Offset = (Acsii_Char - ' ') * Font->Height * (Font->Width / 8 + (Font->Width % 8 ? 1 : 0));
^
LCD_GUI.cpp:260: error: request for member 'Width' in '* Font', which is of non-class type 'int'
uint32_t Char_Offset = (Acsii_Char - ' ') * Font->Height * (Font->Width / 8 + (Font->Width % 8 ? 1 : 0));
^
LCD_GUI.cpp:261: error: request for member 'table' in '* Font', which is of non-class type 'int'
const unsigned char *ptr = &Font->table[Char_Offset];
^
LCD_GUI.cpp:263: error: request for member 'Height' in '* Font', which is of non-class type 'int'
for (Page = 0; Page < Font->Height; Page ++ ) {
^
LCD_GUI.cpp:264: error: request for member 'Width' in '* Font', which is of non-class type 'int'
for (Column = 0; Column < Font->Width; Column ++ ) {
^
LCD_GUI.cpp:281: error: request for member 'Width' in '* Font', which is of non-class type 'int'
if (Font->Width % 8 != 0)
^
sketch\LCD_GUI.cpp: At global scope:
LCD_GUI.cpp:297: error: 'sFont' has not been declared
sFont* Font, COLOR Color_Background, COLOR Color_Foreground )
^
sketch\LCD_GUI.cpp: In function 'void GUI_DisString_EN(uint16_t, uint16_t, const char*, int*, uint16_t, uint16_t)':
LCD_GUI.cpp:309: error: request for member 'Width' in '* Font', which is of non-class type 'int'
if ((Xpoint + Font->Width ) > sLCD_DIS.LCD_Dis_Column ) {
^
LCD_GUI.cpp:311: error: request for member 'Height' in '* Font', which is of non-class type 'int'
Ypoint += Font->Height;
^
LCD_GUI.cpp:315: error: request for member 'Height' in '* Font', which is of non-class type 'int'
if ((Ypoint + Font->Height ) > sLCD_DIS.LCD_Dis_Page ) {
^
LCD_GUI.cpp:325: error: request for member 'Width' in '* Font', which is of non-class type 'int'
Xpoint += Font->Width;
^
sketch\LCD_GUI.cpp: At global scope:
LCD_GUI.cpp:341: error: 'sFont' has not been declared
sFont* Font, COLOR Color_Background, COLOR Color_Foreground )
^
sketch\LCD_GUI.cpp: In function 'void GUI_Showtime(uint16_t, uint16_t, uint16_t, uint16_t, DEV_TIME*, uint16_t)':
LCD_GUI.cpp:471: error: 'sFont' was not declared in this scope
sFont *Font = NULL;
^
LCD_GUI.cpp:471: error: 'Font' was not declared in this scope
sFont *Font = NULL;
^
sketch\LCD_GUI.cpp: In function 'void GUI_Show()':
LCD_GUI.cpp:562: error: cannot convert 'sFONT* {aka _tFont*}' to 'int*' for argument '4' to 'void GUI_DisString_EN(uint16_t, uint16_t, const char*, int*, uint16_t, uint16_t)'
GUI_DisString_EN(80, 80, "WaveShare Electronic", &Font24, LCD_BACKGROUND, BLUE);
^
LCD_GUI.cpp:563: error: cannot convert 'sFONT* {aka _tFont*}' to 'int*' for argument '4' to 'void GUI_DisString_EN(uint16_t, uint16_t, const char*, int*, uint16_t, uint16_t)'
GUI_DisString_EN(80, 120, "3.5inch TFTLCD", &Font20, RED, BLUE);
^
LCD_GUI.cpp:566: error: cannot convert 'sFONT* {aka _tFont*}' to 'int*' for argument '4' to 'void GUI_DisNum(uint16_t, uint16_t, int32_t, int*, uint16_t, uint16_t)'
GUI_DisNum(80, 150, 1234567890, &Font16, LCD_BACKGROUND, BLUE);
^
LCD_GUI.cpp:598: error: cannot convert 'sFONT* {aka _tFont*}' to 'int*' for argument '4' to 'void GUI_DisString_EN(uint16_t, uint16_t, const char*, int*, uint16_t, uint16_t)'
GUI_DisString_EN(40, 120, "WaveShare Electronic", &Font24, LCD_BACKGROUND, BLUE);
^
LCD_GUI.cpp:599: error: cannot convert 'sFONT* {aka _tFont*}' to 'int*' for argument '4' to 'void GUI_DisString_EN(uint16_t, uint16_t, const char*, int*, uint16_t, uint16_t)'
GUI_DisString_EN(40, 180, "3.5inch TFTLCD", &Font20, RED, BLUE);
^
LCD_GUI.cpp:602: error: cannot convert 'sFONT* {aka _tFont*}' to 'int*' for argument '4' to 'void GUI_DisNum(uint16_t, uint16_t, int32_t, int*, uint16_t, uint16_t)'
GUI_DisNum(40, 210, 1234567890, &Font16, LCD_BACKGROUND, BLUE);
^
exit status 1
'sFont' has not been declared
Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.