mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-22 01:32:43 +00:00
668 lines
7.8 KiB
C
668 lines
7.8 KiB
C
|
|
#include "bitmaps.h"
|
|
|
|
// all these images are on their right sides
|
|
// turn your monitor 90deg anti-clockwise to see the images
|
|
|
|
const uint8_t BITMAP_PowerSave[] =
|
|
{
|
|
0b00000000,
|
|
0b00100110,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b00110010
|
|
};
|
|
|
|
const uint8_t BITMAP_BatteryLevel1[] =
|
|
{
|
|
0b00000000,
|
|
0b00111110,
|
|
0b00100010,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_BatteryLevel2[] =
|
|
{
|
|
0b00000000,
|
|
0b00111110,
|
|
0b00100010,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_BatteryLevel3[] =
|
|
{
|
|
0b00000000,
|
|
0b00111110,
|
|
0b00100010,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_BatteryLevel4[] =
|
|
{
|
|
0b00000000,
|
|
0b00111110,
|
|
0b00100010,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_BatteryLevel5[] =
|
|
{
|
|
0b00000000,
|
|
0b00111110,
|
|
0b00100010,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01011101,
|
|
0b01011101,
|
|
0b01000001,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_USB_C[] =
|
|
{
|
|
0b00000000,
|
|
0b00011100,
|
|
0b00100111,
|
|
0b01000100,
|
|
0b01000100,
|
|
0b01000100,
|
|
0b01000100,
|
|
0b00100111,
|
|
0b00011100
|
|
};
|
|
|
|
const uint8_t BITMAP_KeyLock[] =
|
|
{
|
|
0b00000000,
|
|
0b01111100,
|
|
0b01000110,
|
|
0b01000101,
|
|
0b01000101,
|
|
0b01000101,
|
|
0b01000101,
|
|
0b01000110,
|
|
0b01111100
|
|
};
|
|
|
|
const uint8_t BITMAP_F_Key[] =
|
|
{
|
|
0b11111111,
|
|
0b10000001,
|
|
0b10111101,
|
|
0b10010101,
|
|
0b10010101,
|
|
0b10010101,
|
|
0b10010101,
|
|
0b10000101,
|
|
0b10000001,
|
|
0b11111111
|
|
};
|
|
|
|
const uint8_t BITMAP_VOX[] =
|
|
{
|
|
0b00000000,
|
|
0b00011111,
|
|
0b00100000,
|
|
0b01000000,
|
|
0b00100000,
|
|
0b00011111,
|
|
|
|
0b00000000,
|
|
0b00111110,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b00111110,
|
|
|
|
0b00000000,
|
|
0b01100011,
|
|
0b00010100,
|
|
0b00001000,
|
|
0b00010100,
|
|
0b01100011
|
|
};
|
|
|
|
#if 0
|
|
const uint8_t BITMAP_WX[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00100000,
|
|
0b00011000,
|
|
0b00100000,
|
|
0b01111111,
|
|
|
|
0b00000000,
|
|
0b01100011,
|
|
0b00010100,
|
|
0b00001000,
|
|
0b00010100,
|
|
0b01100011
|
|
};
|
|
#else
|
|
// 'XB' (cross-band)
|
|
const uint8_t BITMAP_XB[] =
|
|
{
|
|
0b00000000,
|
|
0b01100011,
|
|
0b00010100,
|
|
0b00001000,
|
|
0b00010100,
|
|
0b01100011,
|
|
|
|
0b00000000,
|
|
0b01111111,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b00110110
|
|
};
|
|
#endif
|
|
|
|
const uint8_t BITMAP_TDR[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b00111110,
|
|
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00100000,
|
|
0b00011000,
|
|
0b00100000,
|
|
0b01111111
|
|
};
|
|
|
|
#ifdef ENABLE_VOICE
|
|
const uint8_t BITMAP_VoicePrompt[] =
|
|
{
|
|
0b00000000,
|
|
0b00011000,
|
|
0b00011000,
|
|
0b00100100,
|
|
0b00100100,
|
|
0b01000010,
|
|
0b01000010,
|
|
0b11111111,
|
|
0b00011000
|
|
};
|
|
#endif
|
|
|
|
#ifdef ENABLE_FMRADIO
|
|
const uint8_t BITMAP_FM[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00000001,
|
|
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00000010,
|
|
0b00001100,
|
|
0b00000010,
|
|
0b01111111
|
|
};
|
|
#endif
|
|
|
|
#ifdef ENABLE_NOAA
|
|
const uint8_t BITMAP_NOAA[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00000100,
|
|
0b00001000,
|
|
0b00010000,
|
|
0b01111111,
|
|
|
|
0b00000000,
|
|
0b01000110,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b00110001
|
|
};
|
|
#endif
|
|
|
|
const uint8_t BITMAP_Antenna[] =
|
|
{
|
|
0b00000011,
|
|
0b00000101,
|
|
0b01111111,
|
|
0b00000101,
|
|
0b00000011
|
|
};
|
|
|
|
const uint8_t BITMAP_AntennaLevel1[] =
|
|
{
|
|
0b01100000,
|
|
0b01100000,
|
|
0b00000000
|
|
};
|
|
|
|
const uint8_t BITMAP_AntennaLevel2[] =
|
|
{
|
|
0b01110000,
|
|
0b01110000,
|
|
0b00000000
|
|
};
|
|
|
|
const uint8_t BITMAP_AntennaLevel3[] =
|
|
{
|
|
0b01111000,
|
|
0b01111000,
|
|
0b00000000
|
|
};
|
|
|
|
const uint8_t BITMAP_AntennaLevel4[] =
|
|
{
|
|
0b01111100,
|
|
0b01111100,
|
|
0b00000000
|
|
};
|
|
|
|
const uint8_t BITMAP_AntennaLevel5[] =
|
|
{
|
|
0b01111110,
|
|
0b01111110,
|
|
0b00000000
|
|
};
|
|
|
|
const uint8_t BITMAP_AntennaLevel6[] =
|
|
{
|
|
0b01111111,
|
|
0b01111111,
|
|
0b00000000
|
|
};
|
|
|
|
const uint8_t BITMAP_CurrentIndicator[] =
|
|
{
|
|
0b11111111,
|
|
0b11111111,
|
|
0b01111110,
|
|
0b01111110,
|
|
0b00111100,
|
|
0b00111100,
|
|
0b00011000,
|
|
0b00011000
|
|
};
|
|
|
|
const uint8_t BITMAP_VFO_Default[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b01111111,
|
|
0b00111110,
|
|
0b00111110,
|
|
0b00011100,
|
|
0b00011100,
|
|
0b00001000
|
|
};
|
|
|
|
const uint8_t BITMAP_VFO_NotDefault[] =
|
|
{
|
|
0b00000000,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b00100010,
|
|
0b00100010,
|
|
0b00010100,
|
|
0b00010100,
|
|
0b00001000
|
|
};
|
|
|
|
const uint8_t BITMAP_TX[] =
|
|
{
|
|
0b00000000,
|
|
0b00000001,
|
|
0b00000001,
|
|
0b00000001,
|
|
0b01111111,
|
|
0b00000001,
|
|
0b00000001,
|
|
0b00000001,
|
|
|
|
0b00000000,
|
|
0b01100011,
|
|
0b00100010,
|
|
0b00010100,
|
|
0b00001000,
|
|
0b00010100,
|
|
0b00100010,
|
|
0b01100011
|
|
};
|
|
|
|
const uint8_t BITMAP_RX[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00011001,
|
|
0b00101001,
|
|
0b01000110,
|
|
|
|
0b00000000,
|
|
0b01100011,
|
|
0b00100010,
|
|
0b00010100,
|
|
0b00001000,
|
|
0b00010100,
|
|
0b00100010,
|
|
0b01100011
|
|
};
|
|
|
|
const uint8_t BITMAP_M[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00000010,
|
|
0b00000100,
|
|
0b00011000,
|
|
0b00000100,
|
|
0b00000010,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_FB[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00000001,
|
|
|
|
0b00000000,
|
|
0b01111111,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b00110110
|
|
};
|
|
|
|
const uint8_t BITMAP_ReverseMode[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00011001,
|
|
0b00101001,
|
|
0b01000110
|
|
};
|
|
|
|
const uint8_t BITMAP_NarrowBand[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00000010,
|
|
0b00000100,
|
|
0b00001000,
|
|
0b00010000,
|
|
0b00100000,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_DTMF[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b00111110,
|
|
|
|
0b00000000,
|
|
0b00000001,
|
|
0b00000001,
|
|
0b01111111,
|
|
0b00000001,
|
|
0b00000001,
|
|
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00000010,
|
|
0b00001100,
|
|
0b00000010,
|
|
0b01111111,
|
|
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00001001,
|
|
0b00000001
|
|
};
|
|
|
|
const uint8_t BITMAP_Scramble[] =
|
|
{
|
|
0b00000000,
|
|
0b00100110,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b00110010,
|
|
|
|
0b00000000,
|
|
0b00111110,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b00100010,
|
|
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00001001,
|
|
0b00011001,
|
|
0b00101001,
|
|
0b01000110
|
|
};
|
|
|
|
const uint8_t BITMAP_Add[] =
|
|
{
|
|
0b00000000,
|
|
0b00011000,
|
|
0b00011000,
|
|
0b01111110,
|
|
0b01111110,
|
|
0b01111110,
|
|
0b00011000,
|
|
0b00011000
|
|
};
|
|
|
|
const uint8_t BITMAP_Sub[] =
|
|
{
|
|
0b00000000,
|
|
0b00001100,
|
|
0b00001100,
|
|
0b00001100,
|
|
0b00001100,
|
|
0b00001100,
|
|
0b00001100,
|
|
0b00001100
|
|
};
|
|
|
|
const uint8_t BITMAP_PowerHigh[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00001000,
|
|
0b00001000,
|
|
0b00001000,
|
|
0b00001000,
|
|
0b00001000,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_PowerMid[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00000010,
|
|
0b00000100,
|
|
0b00011000,
|
|
0b00000100,
|
|
0b00000010,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_PowerLow[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b01000000,
|
|
0b01000000,
|
|
0b01000000,
|
|
0b01000000,
|
|
0b01000000,
|
|
0b01000000
|
|
};
|
|
|
|
const uint8_t BITMAP_AM[] =
|
|
{
|
|
0b00000000,
|
|
0b01111100,
|
|
0b00010010,
|
|
0b00010001,
|
|
0b00010010,
|
|
0b01111100,
|
|
|
|
0b00000000,
|
|
0b01111111,
|
|
0b00000010,
|
|
0b00001100,
|
|
0b00000010,
|
|
0b01111111
|
|
};
|
|
|
|
const uint8_t BITMAP_CT[] =
|
|
{
|
|
0b00000000,
|
|
0b00111110,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b00100010,
|
|
|
|
0b00000000,
|
|
0b00000001,
|
|
0b00000001,
|
|
0b01111111,
|
|
0b00000001,
|
|
0b00000001
|
|
};
|
|
|
|
const uint8_t BITMAP_DCS[] =
|
|
{
|
|
0b00000000,
|
|
0b01111111,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b00111110,
|
|
|
|
0b00000000,
|
|
0b00111110,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b01000001,
|
|
0b00100010,
|
|
|
|
0b00000000,
|
|
0b00100110,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b01001001,
|
|
0b00110010
|
|
};
|
|
|
|
const uint8_t BITMAP_ScanList[] =
|
|
{
|
|
0b00001000,
|
|
0b00011100,
|
|
0b00111110,
|
|
0b00111110,
|
|
0b00011100,
|
|
0b00001000
|
|
};
|