diff --git a/bitmaps.c b/bitmaps.c index 32adb7a..f3c02bd 100644 --- a/bitmaps.c +++ b/bitmaps.c @@ -29,6 +29,16 @@ const uint8_t gFontFM[2][6] = {0x00, 0x7f, 0x2, 0x1c, 0x2, 0x7f}, }; +const uint8_t gFontF[1][8] = +{ + {0x7f, 0x00, 0x76, 0x76, 0x76, 0x76, 0x7e, 0x7f}, // 'F' +}; + +const uint8_t gFontS[1][6] = +{ + {0x26, 0x49, 0x49, 0x49, 0x49, 0x32}, // 'S' +}; + const uint8_t gFontKeyLock[1][9] = { {0x7c, 0x46, 0x45, 0x45, 0x45, 0x45, 0x45, 0x46, 0x7c} diff --git a/bitmaps.h b/bitmaps.h index ba54590..f60a63b 100644 --- a/bitmaps.h +++ b/bitmaps.h @@ -8,6 +8,9 @@ extern const uint8_t gFontPowerSave[2][6]; extern const uint8_t gFontPttOnePush[2][6]; extern const uint8_t gFontPttClassic[2][6]; extern const uint8_t gFontFM[2][6]; +extern const uint8_t gFontF[1][8]; +extern const uint8_t gFontS[1][6]; + extern const uint8_t gFontKeyLock[1][9]; extern const uint8_t gFontScanAll[9]; extern const uint8_t gFontLight[9]; diff --git a/ui/status.c b/ui/status.c index 1c38bb2..92df154 100644 --- a/ui/status.c +++ b/ui/status.c @@ -115,7 +115,8 @@ void UI_DisplayStatus() } } else { // frequency mode - UI_PrintStringSmallBufferNormal("S", line + x + 1); + memcpy(line + x + 1, gFontS, sizeof(gFontS)); + //UI_PrintStringSmallBufferNormal("S", line + x + 1); } x1 = x + 10; } @@ -205,12 +206,15 @@ void UI_DisplayStatus() memcpy(line + x + 1, gFontKeyLock, sizeof(gFontKeyLock)); } else if (gWasFKeyPressed) { + memcpy(line + x + 1, gFontF, sizeof(gFontF)); + /* UI_PrintStringSmallBufferNormal("F", line + x + 1); for (uint8_t i = 71; i < 79; i++) { gStatusLine[i] ^= 0x7F; } + */ } else if (gBackLight) {