Fix status bar
This commit is contained in:
305
bitmaps.c
305
bitmaps.c
@@ -4,56 +4,69 @@
|
|||||||
// all these images are on their right sides
|
// all these images are on their right sides
|
||||||
// turn your monitor 90-deg anti-clockwise to see the images
|
// turn your monitor 90-deg anti-clockwise to see the images
|
||||||
|
|
||||||
const uint8_t BITMAP_POWERSAVE[8] =
|
|
||||||
|
const uint8_t gFontPowerSave[2][6] =
|
||||||
{
|
{
|
||||||
// "PS"
|
{0x00, 0x7f, 0x9, 0x9, 0x9, 0x6},
|
||||||
0b00000000,
|
{0x00, 0x26, 0x49, 0x49, 0x49, 0x32},
|
||||||
0b01111111,
|
|
||||||
0b00010001,
|
|
||||||
0b00001110,
|
|
||||||
0b00000000,
|
|
||||||
0b01000110,
|
|
||||||
0b01001001,
|
|
||||||
0b00110001
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t BITMAP_TX[8] =
|
const uint8_t gFontTx[1][5] =
|
||||||
{ // "TX"
|
{
|
||||||
0b00000000,
|
{0x3, 0x1, 0x7f, 0x1, 0x3},
|
||||||
0b00000001,
|
|
||||||
0b00000001,
|
|
||||||
0b01111111,
|
|
||||||
0b00000001,
|
|
||||||
0b00000001,
|
|
||||||
0b00000000,
|
|
||||||
0b00000000
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t BITMAP_RX[8] =
|
const uint8_t gFontRx[1][5] =
|
||||||
{ // "RX"
|
{
|
||||||
0b00000000,
|
{0x7f, 0x9, 0x19, 0x29, 0x46},
|
||||||
0b01111111,
|
|
||||||
0b00001001,
|
|
||||||
0b00011001,
|
|
||||||
0b01100110,
|
|
||||||
0b00000000,
|
|
||||||
0b00000000,
|
|
||||||
0b00000000
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t BITMAP_FM[10] =
|
const uint8_t gFontPttOnePush[2][6] =
|
||||||
{ // "FM"
|
{
|
||||||
0b00000000,
|
{0x00, 0x3e, 0x41, 0x41, 0x41, 0x3e},
|
||||||
0b01111111,
|
{0x00, 0x7f, 0x9, 0x9, 0x9, 0x6},
|
||||||
0b00001001,
|
};
|
||||||
0b00000001,
|
|
||||||
0b00000000,
|
const uint8_t gFontPttClassic[2][6] =
|
||||||
0b01111111,
|
{
|
||||||
0b00000010,
|
{0x00, 0x3e, 0x41, 0x41, 0x41, 0x22},
|
||||||
0b00001100,
|
{0x00, 0x7f, 0x40, 0x40, 0x40, 0x40},
|
||||||
0b00000010,
|
};
|
||||||
0b01111111
|
|
||||||
|
const uint8_t gFontFM[2][6] =
|
||||||
|
{
|
||||||
|
{0x00, 0x7f, 0x9, 0x9, 0x9, 0x1},
|
||||||
|
{0x00, 0x7f, 0x2, 0x1c, 0x2, 0x7f},
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t gFontKeyLock[1][6] =
|
||||||
|
{
|
||||||
|
{0x7c, 0x46, 0x45, 0x45, 0x46, 0x7c}
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t gFontF[1][7] =
|
||||||
|
{
|
||||||
|
{0x7f, 0x7f, 0x41, 0x75, 0x75, 0x7f, 0x7f},
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t gFontXB[2][6] =
|
||||||
|
{ // "XB"
|
||||||
|
{0x00, 0x63, 0x14, 0x8, 0x14, 0x63},
|
||||||
|
{0x00, 0x7f, 0x49, 0x49, 0x49, 0x36},
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t gFontDWR[3][6] =
|
||||||
|
{ // "DWR"
|
||||||
|
|
||||||
|
{0x00, 0x7f, 0x41, 0x41, 0x41, 0x3e},
|
||||||
|
{0x00, 0x3f, 0x40, 0x38, 0x40, 0x3f},
|
||||||
|
{0x00, 0x7f, 0x9, 0x19, 0x29, 0x46},
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t gFontHold[2][5] =
|
||||||
|
{ // "><" .. DW on hold
|
||||||
|
{0x0, 0x41, 0x22, 0x14, 0x8},
|
||||||
|
{0x0, 0x8, 0x14, 0x22, 0x41},
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t BITMAP_BatteryLevel[2] =
|
const uint8_t BITMAP_BatteryLevel[2] =
|
||||||
@@ -62,7 +75,6 @@ const uint8_t BITMAP_BatteryLevel[2] =
|
|||||||
0b01011101
|
0b01011101
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef ENABLE_REVERSE_BAT_SYMBOL
|
|
||||||
// Quansheng way (+ pole to the left)
|
// Quansheng way (+ pole to the left)
|
||||||
const uint8_t BITMAP_BatteryLevel1[17] =
|
const uint8_t BITMAP_BatteryLevel1[17] =
|
||||||
{
|
{
|
||||||
@@ -84,32 +96,9 @@ const uint8_t BITMAP_BatteryLevel[2] =
|
|||||||
0b01000001,
|
0b01000001,
|
||||||
0b01111111
|
0b01111111
|
||||||
};
|
};
|
||||||
#else
|
|
||||||
// reversed (+ pole to the right)
|
|
||||||
const uint8_t BITMAP_BatteryLevel1[17] =
|
|
||||||
{
|
|
||||||
0b00000000,
|
|
||||||
0b01111111,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b00100010,
|
|
||||||
0b00111110
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const uint8_t BITMAP_USB_C[9] =
|
const uint8_t BITMAP_USB_C[9] =
|
||||||
{ // USB symbol
|
{
|
||||||
0b00000000,
|
0b00000000,
|
||||||
0b00011100,
|
0b00011100,
|
||||||
0b00100111,
|
0b00100111,
|
||||||
@@ -121,185 +110,11 @@ const uint8_t BITMAP_USB_C[9] =
|
|||||||
0b00011100
|
0b00011100
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t BITMAP_KeyLock[6] =
|
|
||||||
{ // teeny padlock symbol
|
|
||||||
0b00000000,
|
|
||||||
0b01111100,
|
|
||||||
0b01000110,
|
|
||||||
0b01000101,
|
|
||||||
0b01000110,
|
|
||||||
0b01111100
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t BITMAP_F_Key[6] =
|
|
||||||
{ // F-Key symbol
|
|
||||||
0b00000000,
|
|
||||||
0b01011111,
|
|
||||||
0b01000101,
|
|
||||||
0b01000101,
|
|
||||||
0b01000101,
|
|
||||||
0b01000001
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifdef ENABLE_VOX
|
#ifdef ENABLE_VOX
|
||||||
|
const uint8_t gFontVox[2][6] =
|
||||||
#ifdef ENABLE_FEAT_F4HWN
|
|
||||||
const uint8_t BITMAP_VOX[12] =
|
|
||||||
{ // "VX"
|
|
||||||
0b00000000,
|
|
||||||
0b00011111,
|
|
||||||
0b00100000,
|
|
||||||
0b01000000,
|
|
||||||
0b00100000,
|
|
||||||
0b00011111,
|
|
||||||
0b00000000,
|
|
||||||
0b01100011,
|
|
||||||
0b00010100,
|
|
||||||
0b00001000,
|
|
||||||
0b00010100,
|
|
||||||
0b01100011
|
|
||||||
};
|
|
||||||
#else
|
|
||||||
const uint8_t BITMAP_VOX[18] =
|
|
||||||
{ // "VOX"
|
|
||||||
0b00000000,
|
|
||||||
0b00011111,
|
|
||||||
0b00100000,
|
|
||||||
0b01000000,
|
|
||||||
0b00100000,
|
|
||||||
0b00011111,
|
|
||||||
0b00000000,
|
|
||||||
0b00111110,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b00111110,
|
|
||||||
0b00000000,
|
|
||||||
0b01100011,
|
|
||||||
0b00010100,
|
|
||||||
0b00001000,
|
|
||||||
0b00010100,
|
|
||||||
0b01100011
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef ENABLE_FEAT_F4HWN
|
|
||||||
const uint8_t BITMAP_PTT_ONE_PUSH[12] =
|
|
||||||
{ // "OnePush"
|
|
||||||
0b00000000,
|
|
||||||
0b00111110,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b00111110,
|
|
||||||
0b00000000,
|
|
||||||
0b01111110,
|
|
||||||
0b00010001,
|
|
||||||
0b00010001,
|
|
||||||
0b00010001,
|
|
||||||
0b00001110,
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t BITMAP_PTT_CLASSIC[12] =
|
|
||||||
{ // "Classic"
|
|
||||||
0b00000000,
|
|
||||||
0b00111110,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b00100010,
|
|
||||||
0b00000000,
|
|
||||||
0b00111111,
|
|
||||||
0b01000000,
|
|
||||||
0b01000000,
|
|
||||||
0b01000000,
|
|
||||||
0b01000000,
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// 'XB' (cross-band/cross-VFO)
|
|
||||||
const uint8_t BITMAP_XB[12] =
|
|
||||||
{ // "XB"
|
|
||||||
0b00000000,
|
|
||||||
0b01100011,
|
|
||||||
0b00010100,
|
|
||||||
0b00001000,
|
|
||||||
0b00010100,
|
|
||||||
0b01100011,
|
|
||||||
0b00000000,
|
|
||||||
0b01111111,
|
|
||||||
0b01001001,
|
|
||||||
0b01001001,
|
|
||||||
0b01001001,
|
|
||||||
0b00110110
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
const uint8_t BITMAP_TDR1[16] =
|
|
||||||
{ // "DWR"
|
|
||||||
0b00000000,
|
|
||||||
0b01111111,
|
|
||||||
0b01000001,
|
|
||||||
0b01000001,
|
|
||||||
0b00111110,
|
|
||||||
0b00000000,
|
|
||||||
0b01111111,
|
|
||||||
0b00100000,
|
|
||||||
0b00011000,
|
|
||||||
0b00100000,
|
|
||||||
0b01111111,
|
|
||||||
0b00000000,
|
|
||||||
0b01111111,
|
|
||||||
0b00011001,
|
|
||||||
0b00101001,
|
|
||||||
0b01000110
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t BITMAP_TDR2[10] =
|
|
||||||
{ // "><" .. DW on hold
|
|
||||||
0b00000000,
|
|
||||||
0b00100010,
|
|
||||||
0b00110110,
|
|
||||||
0b00011100,
|
|
||||||
0b00001000,
|
|
||||||
0b00000000,
|
|
||||||
0b00001000,
|
|
||||||
0b00011100,
|
|
||||||
0b00110110,
|
|
||||||
0b00100010,
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifdef ENABLE_VOICE
|
|
||||||
const uint8_t BITMAP_VoicePrompt[9] =
|
|
||||||
{
|
{
|
||||||
0b00000000,
|
{0x00, 0x1f, 0x20, 0x40, 0x20, 0x1f},
|
||||||
0b00011000,
|
{0x00, 0x63, 0x14, 0x8, 0x14, 0x63},
|
||||||
0b00011000,
|
|
||||||
0b00100100,
|
|
||||||
0b00100100,
|
|
||||||
0b01000010,
|
|
||||||
0b01000010,
|
|
||||||
0b11111111,
|
|
||||||
0b00011000
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ENABLE_NOAA
|
|
||||||
const uint8_t BITMAP_NOAA[11] =
|
|
||||||
{ // "NS"
|
|
||||||
0b00000000,
|
|
||||||
0b01111111,
|
|
||||||
0b00000100,
|
|
||||||
0b00001000,
|
|
||||||
0b00010000,
|
|
||||||
0b01111111,
|
|
||||||
0b00000000,
|
|
||||||
0b01000110,
|
|
||||||
0b01001001,
|
|
||||||
0b01001001,
|
|
||||||
0b00110001
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
48
bitmaps.h
48
bitmaps.h
@@ -4,53 +4,31 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
extern const uint8_t BITMAP_POWERSAVE[8];
|
extern const uint8_t gFontPowerSave[2][6];
|
||||||
extern const uint8_t BITMAP_TX[8];
|
extern const uint8_t gFontTx[1][5];
|
||||||
extern const uint8_t BITMAP_RX[8];
|
extern const uint8_t gFontRx[1][5];
|
||||||
extern const uint8_t BITMAP_FM[10];
|
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 gFontKeyLock[1][6];
|
||||||
|
extern const uint8_t gFontF[1][7];
|
||||||
|
extern const uint8_t gFontXB[2][6];
|
||||||
|
extern const uint8_t gFontDWR[3][6];
|
||||||
|
extern const uint8_t gFontHold[2][5];
|
||||||
|
|
||||||
extern const uint8_t BITMAP_BatteryLevel[2];
|
extern const uint8_t BITMAP_BatteryLevel[2];
|
||||||
extern const uint8_t BITMAP_BatteryLevel1[17];
|
extern const uint8_t BITMAP_BatteryLevel1[17];
|
||||||
|
|
||||||
extern const uint8_t BITMAP_USB_C[9];
|
extern const uint8_t BITMAP_USB_C[9];
|
||||||
|
|
||||||
extern const uint8_t BITMAP_KeyLock[6];
|
|
||||||
|
|
||||||
extern const uint8_t BITMAP_F_Key[6];
|
|
||||||
|
|
||||||
#ifdef ENABLE_VOX
|
#ifdef ENABLE_VOX
|
||||||
#ifdef ENABLE_FEAT_F4HWN
|
extern const uint8_t gFontVox[2][6];
|
||||||
extern const uint8_t BITMAP_VOX[12];
|
|
||||||
#else
|
|
||||||
extern const uint8_t BITMAP_VOX[18];
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ENABLE_FEAT_F4HWN
|
|
||||||
extern const uint8_t BITMAP_PTT_ONE_PUSH[12];
|
|
||||||
extern const uint8_t BITMAP_PTT_CLASSIC[12];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern const uint8_t BITMAP_XB[12];
|
|
||||||
|
|
||||||
extern const uint8_t BITMAP_TDR1[16];
|
|
||||||
extern const uint8_t BITMAP_TDR2[10];
|
|
||||||
|
|
||||||
#ifdef ENABLE_VOICE
|
|
||||||
extern const uint8_t BITMAP_VoicePrompt[9];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ENABLE_NOAA
|
|
||||||
extern const uint8_t BITMAP_NOAA[11];
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern const uint8_t BITMAP_Antenna[5];
|
extern const uint8_t BITMAP_Antenna[5];
|
||||||
|
|
||||||
extern const uint8_t BITMAP_VFO_Default[8];
|
extern const uint8_t BITMAP_VFO_Default[8];
|
||||||
extern const uint8_t BITMAP_VFO_NotDefault[8];
|
extern const uint8_t BITMAP_VFO_NotDefault[8];
|
||||||
|
|
||||||
extern const uint8_t BITMAP_ScanList1[6];
|
extern const uint8_t BITMAP_ScanList1[6];
|
||||||
extern const uint8_t BITMAP_ScanList2[6];
|
extern const uint8_t BITMAP_ScanList2[6];
|
||||||
|
|
||||||
extern const uint8_t BITMAP_compand[6];
|
extern const uint8_t BITMAP_compand[6];
|
||||||
|
|
||||||
#ifndef ENABLE_CUSTOM_MENU_LAYOUT
|
#ifndef ENABLE_CUSTOM_MENU_LAYOUT
|
||||||
|
44
ui/status.c
44
ui/status.c
@@ -45,13 +45,13 @@ void UI_DisplayStatus()
|
|||||||
|
|
||||||
// POWER-SAVE indicator
|
// POWER-SAVE indicator
|
||||||
if (gCurrentFunction == FUNCTION_TRANSMIT) {
|
if (gCurrentFunction == FUNCTION_TRANSMIT) {
|
||||||
memcpy(line + x, BITMAP_TX, sizeof(BITMAP_TX));
|
memcpy(line + x, gFontTx, sizeof(gFontTx));
|
||||||
}
|
}
|
||||||
else if (FUNCTION_IsRx()) {
|
else if (FUNCTION_IsRx()) {
|
||||||
memcpy(line + x, BITMAP_RX, sizeof(BITMAP_RX));
|
memcpy(line + x, gFontRx, sizeof(gFontRx));
|
||||||
}
|
}
|
||||||
else if (gCurrentFunction == FUNCTION_POWER_SAVE) {
|
else if (gCurrentFunction == FUNCTION_POWER_SAVE) {
|
||||||
memcpy(line + x, BITMAP_POWERSAVE, sizeof(BITMAP_POWERSAVE));
|
memcpy(line + x, gFontPowerSave, sizeof(gFontPowerSave));
|
||||||
}
|
}
|
||||||
x += 8;
|
x += 8;
|
||||||
unsigned int x1 = x;
|
unsigned int x1 = x;
|
||||||
@@ -73,8 +73,8 @@ void UI_DisplayStatus()
|
|||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_FMRADIO
|
#ifdef ENABLE_FMRADIO
|
||||||
if (gFmRadioMode) { // FM indicator
|
if (gFmRadioMode) { // FM indicator
|
||||||
memcpy(line + x, BITMAP_FM, sizeof(BITMAP_FM));
|
memcpy(line + x, gFontFM, sizeof(gFontFM));
|
||||||
x1 = x + sizeof(BITMAP_FM);
|
x1 = x + sizeof(gFontFM);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
@@ -110,50 +110,50 @@ void UI_DisplayStatus()
|
|||||||
uint8_t dw = (gEeprom.DUAL_WATCH != DUAL_WATCH_OFF) + (gEeprom.CROSS_BAND_RX_TX != CROSS_BAND_OFF) * 2;
|
uint8_t dw = (gEeprom.DUAL_WATCH != DUAL_WATCH_OFF) + (gEeprom.CROSS_BAND_RX_TX != CROSS_BAND_OFF) * 2;
|
||||||
if(dw == 1 || dw == 3) { // DWR - dual watch + respond
|
if(dw == 1 || dw == 3) { // DWR - dual watch + respond
|
||||||
if(gDualWatchActive)
|
if(gDualWatchActive)
|
||||||
memcpy(line + x + (dw==1?0:2), BITMAP_TDR1, sizeof(BITMAP_TDR1) - (dw==1?0:5));
|
memcpy(line + x + (dw==1?0:2), gFontDWR, sizeof(gFontDWR) - (dw==1?0:5));
|
||||||
else
|
else
|
||||||
memcpy(line + x + 3, BITMAP_TDR2, sizeof(BITMAP_TDR2));
|
memcpy(line + x + 3, gFontHold, sizeof(gFontHold));
|
||||||
}
|
}
|
||||||
else if(dw == 2) { // XB - crossband
|
else if(dw == 2) { // XB - crossband
|
||||||
memcpy(line + x + 2, BITMAP_XB, sizeof(BITMAP_XB));
|
memcpy(line + x + 2, gFontXB, sizeof(gFontXB));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
x += sizeof(BITMAP_TDR1) + 1;
|
x += sizeof(gFontDWR) + 3;
|
||||||
|
|
||||||
#ifdef ENABLE_VOX
|
#ifdef ENABLE_VOX
|
||||||
// VOX indicator
|
// VOX indicator
|
||||||
if (gEeprom.VOX_SWITCH) {
|
if (gEeprom.VOX_SWITCH) {
|
||||||
memcpy(line + x, BITMAP_VOX, sizeof(BITMAP_VOX));
|
memcpy(line + x, gFontVox, sizeof(gFontVox));
|
||||||
x1 = x + sizeof(BITMAP_VOX) + 1;
|
x1 = x + sizeof(gFontVox) + 1;
|
||||||
}
|
}
|
||||||
x += sizeof(BITMAP_VOX) + 1;
|
x += sizeof(gFontVox) + 3;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_FEAT_F4HWN
|
#ifdef ENABLE_FEAT_F4HWN
|
||||||
// PTT indicator
|
// PTT indicator
|
||||||
if (gSetting_set_ptt_session) {
|
if (gSetting_set_ptt_session) {
|
||||||
memcpy(line + x, BITMAP_PTT_ONE_PUSH, sizeof(BITMAP_PTT_ONE_PUSH));
|
memcpy(line + x, gFontPttOnePush, sizeof(gFontPttOnePush));
|
||||||
x1 = x + sizeof(BITMAP_PTT_ONE_PUSH) + 1;
|
x1 = x + sizeof(gFontPttOnePush) + 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memcpy(line + x, BITMAP_PTT_CLASSIC, sizeof(BITMAP_PTT_CLASSIC));
|
memcpy(line + x, gFontPttClassic, sizeof(gFontPttClassic));
|
||||||
x1 = x + sizeof(BITMAP_PTT_CLASSIC) + 1;
|
x1 = x + sizeof(gFontPttClassic) + 1;
|
||||||
}
|
}
|
||||||
x += sizeof(BITMAP_PTT_CLASSIC) + 1;
|
x += sizeof(gFontPttClassic) + 3;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
x = MAX(x1, 61u);
|
x = MAX(x1, 70u);
|
||||||
|
|
||||||
// KEY-LOCK indicator
|
// KEY-LOCK indicator
|
||||||
if (gEeprom.KEY_LOCK) {
|
if (gEeprom.KEY_LOCK) {
|
||||||
memcpy(line + x, BITMAP_KeyLock, sizeof(BITMAP_KeyLock));
|
memcpy(line + x, gFontKeyLock, sizeof(gFontKeyLock));
|
||||||
x += sizeof(BITMAP_KeyLock);
|
x += sizeof(gFontKeyLock);
|
||||||
x1 = x;
|
x1 = x;
|
||||||
}
|
}
|
||||||
else if (gWasFKeyPressed) {
|
else if (gWasFKeyPressed) {
|
||||||
memcpy(line + x, BITMAP_F_Key, sizeof(BITMAP_F_Key));
|
memcpy(line + x, gFontF, sizeof(gFontF));
|
||||||
x += sizeof(BITMAP_F_Key);
|
x += sizeof(gFontF);
|
||||||
x1 = x;
|
x1 = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user