Update lcd.c
Dieser Commit ist enthalten in:
Ursprung
ffbcc49066
Commit
37f87540fb
5
lcd.c
5
lcd.c
@ -55,6 +55,9 @@ static struct {
|
|||||||
#if defined GRAPHICMODE
|
#if defined GRAPHICMODE
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
static uint8_t displayBuffer[DISPLAY_HEIGHT/8][DISPLAY_WIDTH];
|
static uint8_t displayBuffer[DISPLAY_HEIGHT/8][DISPLAY_WIDTH];
|
||||||
|
#elif defined TEXTMODE
|
||||||
|
#else
|
||||||
|
#error "No valid displaymode! Refer lcd.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -210,7 +213,7 @@ void lcd_putc(char c){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( (cursorPosition.x > 20) ||
|
if( (cursorPosition.x > DISPLAY_WIDTH-1-sizeof(FONT[0])) ||
|
||||||
(c == 0xff) ) return;
|
(c == 0xff) ) return;
|
||||||
// print char at display
|
// print char at display
|
||||||
#ifdef GRAPHICMODE
|
#ifdef GRAPHICMODE
|
||||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren