Dieser Commit ist enthalten in:
Sylaina 2018-09-17 11:25:12 +02:00 committet von GitHub
Ursprung 06ac702c66
Commit 9e96e2cb7f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

15
lcd.c
Datei anzeigen

@ -196,10 +196,19 @@ void lcd_putc(char c){
lcd_gotoxy(0, cursorPosition.y);
break;
default:
if( (cursorPosition.x > 20) ||
(getCharPosition(c) == 0xff) ) return;
// mapping char
c=getCharPosition(c);
//c=getCharPosition(c);
c -= ' ';
if (c >= pgm_read_byte(&special_char[0][1]) ) {
c = 0xff;
for (uint8_t i=0; pgm_read_byte(&special_char[i][1]) != 0xff; i++) {
if ( pgm_read_byte(&special_char[i][0])-' ' == c ) {
c = pgm_read_byte(&special_char[i][1]);
}
}
}
if( (cursorPosition.x > 20) ||
(c == 0xff) ) return;
// print char at display
#ifdef GRAPHICMODE
for (uint8_t i = 0; i < sizeof(FONT[0]); i++)