mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-21 17:19:57 +00:00
Added mirror battery symbol compile option
This commit is contained in:
parent
797fc0729f
commit
8aafba846d
4
Makefile
4
Makefile
@ -19,6 +19,7 @@ ENABLE_MAIN_KEY_HOLD := 1
|
||||
ENABLE_BOOT_BEEPS := 0
|
||||
ENABLE_COMPANDER := 1
|
||||
ENABLE_SHOW_CHARGE_LEVEL := 1
|
||||
ENABLE_REVERSE_BAT_SYMBOL := 1
|
||||
ENABLE_STATUSBAR_VOLTAGE := 0
|
||||
ENABLE_STATUSBAR_PERCENTAGE := 1
|
||||
#ENABLE_SINGLE_VFO_CHAN := 1
|
||||
@ -194,6 +195,9 @@ endif
|
||||
ifeq ($(ENABLE_SHOW_CHARGE_LEVEL),1)
|
||||
CFLAGS += -DENABLE_SHOW_CHARGE_LEVEL
|
||||
endif
|
||||
ifeq ($(ENABLE_REVERSE_BAT_SYMBOL),1)
|
||||
CFLAGS += -DENABLE_REVERSE_BAT_SYMBOL
|
||||
endif
|
||||
ifeq ($(ENABLE_STATUSBAR_VOLTAGE),1)
|
||||
CFLAGS += -DENABLE_STATUSBAR_VOLTAGE
|
||||
endif
|
||||
|
@ -30,6 +30,7 @@ ENABLE_MAIN_KEY_HOLD := 1 initial F-key press not needed, instead
|
||||
ENABLE_BOOT_BEEPS := 0 give user audio feedback on volume knob position at boot-up
|
||||
ENABLE_COMPANDER := 1 compander option - setting not yet saved
|
||||
ENABLE_SHOW_CHARGE_LEVEL := 1 show the charge level when the radio is on charge
|
||||
ENABLE_REVERSE_BAT_SYMBOL := 1 reverse the battery symbol on the status bar
|
||||
ENABLE_STATUSBAR_VOLTAGE := 0 show the battery voltage on the top status bar - when possible
|
||||
ENABLE_STATUSBAR_PERCENTAGE := 1 show the battery percentage on the top status bar - when possible
|
||||
#ENABLE_SINGLE_VFO_CHAN := 1 not yet implemented - single VFO on display when possible
|
||||
|
309
bitmaps.c
309
bitmaps.c
@ -29,110 +29,219 @@ const uint8_t BITMAP_PowerSave[8] =
|
||||
#endif
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_BatteryLevel1[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01111111
|
||||
};
|
||||
#ifndef ENABLE_REVERSE_BAT_SYMBOL
|
||||
// Quansheng way (+ pole to the left)
|
||||
const uint8_t BITMAP_BatteryLevel1[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01111111
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_BatteryLevel2[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01111111
|
||||
};
|
||||
const uint8_t BITMAP_BatteryLevel2[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01111111
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_BatteryLevel3[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01111111
|
||||
};
|
||||
const uint8_t BITMAP_BatteryLevel3[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01111111
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_BatteryLevel4[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01111111
|
||||
};
|
||||
const uint8_t BITMAP_BatteryLevel4[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01111111
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_BatteryLevel5[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01111111
|
||||
};
|
||||
const uint8_t BITMAP_BatteryLevel5[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b00111110,
|
||||
0b00100010,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
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
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_BatteryLevel2[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b01111111,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b00100010,
|
||||
0b00111110
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_BatteryLevel3[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b01111111,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b00100010,
|
||||
0b00111110
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_BatteryLevel4[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b01111111,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b01000001,
|
||||
0b00100010,
|
||||
0b00111110
|
||||
};
|
||||
|
||||
const uint8_t BITMAP_BatteryLevel5[17] =
|
||||
{
|
||||
0b00000000,
|
||||
0b01111111,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b01011101,
|
||||
0b01011101,
|
||||
0b01000001,
|
||||
0b00100010,
|
||||
0b00111110
|
||||
};
|
||||
#endif
|
||||
|
||||
const uint8_t BITMAP_USB_C[9] =
|
||||
{ // USB symbol
|
||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user