We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 677e963 commit 8feee87Copy full SHA for 8feee87
1 file changed
libraries/Sipeed_GD32V_LCD/examples/image_display/image_display.ino
@@ -24,9 +24,9 @@ static uint8_t lcdBuffer[LCD_W*LCD_BUF_H*2];
24
bool sdMounted = false;
25
26
27
-void DrawImageFromFile(char* path)
+void DrawImageFromFile(const char* path)
28
{
29
- int offset = 0;
+ uint32_t offset = 0;
30
uint16_t top = 0;
31
uint32_t dataSize = 0;
32
File dataFile;
@@ -79,7 +79,7 @@ void DrawImageFromFile(char* path)
79
lcd.setTextSize(2);
80
lcd.setTextColor(COLOR_RED);
81
lcd.setCursor(0,32);
82
- lcd.print("File "); lcd.print(path); lcd.println(" not found.");
+ lcd.printf("File %s not found.", path);
83
}
84
85
0 commit comments