uv-k5-firmware-custom/bitmaps.c

458 lines
5.7 KiB
C
Raw Normal View History

2023-09-09 07:03:56 +00:00
#include "bitmaps.h"
2023-09-09 19:45:38 +00:00
// all these images are on their right sides
2023-09-18 19:37:42 +00:00
// turn your monitor 90-deg anti-clockwise to see the images
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_PowerSave[8] =
{
#if 0
// "S"
0b00000000,
0b00100110,
0b01001001,
0b01001001,
0b01001001,
0b01001001,
0b01001001,
0b00110010
#else
// "PS"
0b00000000,
0b01111111,
0b00010001,
0b00001110,
0b00000000,
0b01000110,
0b01001001,
0b00110001
#endif
2023-09-09 19:45:38 +00:00
};
const uint8_t BITMAP_BatteryLevel1[17] =
2023-09-09 19:45:38 +00:00
{
0b00000000,
0b00111110,
0b00100010,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
2023-09-16 06:08:18 +00:00
0b01111111
2023-09-09 19:45:38 +00:00
};
const uint8_t BITMAP_BatteryLevel2[17] =
2023-09-09 19:45:38 +00:00
{
0b00000000,
0b00111110,
0b00100010,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
2023-09-16 06:08:18 +00:00
0b01011101,
0b01011101,
0b01000001,
0b01111111
2023-09-09 19:45:38 +00:00
};
const uint8_t BITMAP_BatteryLevel3[17] =
2023-09-09 19:45:38 +00:00
{
0b00000000,
0b00111110,
0b00100010,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
0b01000001,
2023-09-16 06:08:18 +00:00
0b01011101,
0b01011101,
2023-09-09 19:45:38 +00:00
0b01000001,
2023-09-16 06:08:18 +00:00
0b01011101,
0b01011101,
0b01000001,
0b01111111
2023-09-09 19:45:38 +00:00
};
const uint8_t BITMAP_BatteryLevel4[17] =
2023-09-09 19:45:38 +00:00
{
0b00000000,
0b00111110,
0b00100010,
2023-09-16 06:08:18 +00:00
0b01000001,
0b01000001,
0b01000001,
0b01000001,
2023-09-09 19:45:38 +00:00
0b01011101,
0b01011101,
0b01000001,
0b01011101,
0b01011101,
0b01000001,
0b01011101,
0b01011101,
0b01000001,
2023-09-16 06:08:18 +00:00
0b01111111
2023-09-09 19:45:38 +00:00
};
const uint8_t BITMAP_BatteryLevel5[17] =
2023-09-09 19:45:38 +00:00
{
0b00000000,
0b00111110,
0b00100010,
0b01000001,
0b01011101,
0b01011101,
0b01000001,
0b01011101,
0b01011101,
0b01000001,
0b01011101,
0b01011101,
0b01000001,
0b01011101,
0b01011101,
0b01000001,
2023-09-16 06:08:18 +00:00
0b01111111
2023-09-09 19:45:38 +00:00
};
const uint8_t BITMAP_USB_C[9] =
2023-09-16 16:16:36 +00:00
{ // USB symbol
2023-09-09 19:45:38 +00:00
0b00000000,
0b00011100,
0b00100111,
0b01000100,
0b01000100,
0b01000100,
0b01000100,
0b00100111,
0b00011100
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_KeyLock[9] =
2023-09-16 16:16:36 +00:00
{ // padlock symbol
2023-09-09 19:45:38 +00:00
0b00000000,
0b01111100,
0b01000110,
0b01000101,
0b01000101,
0b01000101,
0b01000101,
0b01000110,
0b01111100
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_F_Key[10] =
2023-09-16 16:16:36 +00:00
{ // F-Key symbol
2023-09-09 19:45:38 +00:00
0b11111111,
0b10000001,
0b10111101,
0b10010101,
0b10010101,
0b10010101,
0b10010101,
0b10000101,
0b10000001,
0b11111111
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_VOX[18] =
2023-09-16 16:16:36 +00:00
{ // "VOX"
2023-09-09 19:45:38 +00:00
0b00000000,
0b00011111,
0b00100000,
0b01000000,
0b00100000,
0b00011111,
2023-09-09 19:45:38 +00:00
0b00000000,
0b00111110,
0b01000001,
0b01000001,
0b01000001,
0b00111110,
0b00000000,
0b01100011,
0b00010100,
0b00001000,
0b00010100,
0b01100011
};
#if 0
const uint8_t BITMAP_WX[12] =
2023-09-16 16:16:36 +00:00
{ // "WX"
0b00000000,
0b01111111,
0b00100000,
0b00011000,
0b00100000,
0b01111111,
2023-09-18 10:54:42 +00:00
0b00000000,
0b01100011,
0b00010100,
0b00001000,
0b00010100,
0b01100011
};
#else
// 'XB' (cross-band)
const uint8_t BITMAP_XB[12] =
2023-09-16 16:16:36 +00:00
{ // "XB"
0b00000000,
0b01100011,
0b00010100,
0b00001000,
0b00010100,
0b01100011,
0b00000000,
0b01111111,
0b01001001,
0b01001001,
0b01001001,
0b00110110
};
#endif
const uint8_t BITMAP_TDR1[12] =
2023-09-16 16:16:36 +00:00
{ // "DW"
2023-09-09 19:45:38 +00:00
0b00000000,
0b01111111,
0b01000001,
0b01000001,
0b01000001,
0b00111110,
2023-09-09 19:45:38 +00:00
0b00000000,
0b01111111,
0b00100000,
0b00011000,
0b00100000,
0b01111111
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_TDR2[12] =
{ // "--"
0b00000000,
0b00010000,
0b00010000,
0b00010000,
0b00010000,
0b00010000,
0b00010000,
0b00010000,
0b00010000,
0b00010000,
0b00010000,
0b00010000,
};
2023-09-14 08:56:30 +00:00
#ifdef ENABLE_VOICE
const uint8_t BITMAP_VoicePrompt[9] =
2023-09-09 19:45:38 +00:00
{
0b00000000,
0b00011000,
0b00011000,
0b00100100,
0b00100100,
0b01000010,
0b01000010,
0b11111111,
0b00011000
};
2023-09-09 07:03:56 +00:00
#endif
2023-09-14 08:56:30 +00:00
#ifdef ENABLE_FMRADIO
const uint8_t BITMAP_FM[12] =
2023-09-16 16:16:36 +00:00
{ // "FM"
2023-09-14 08:56:30 +00:00
0b00000000,
0b01111111,
0b00001001,
0b00001001,
0b00001001,
0b00000001,
2023-09-18 10:54:42 +00:00
2023-09-14 08:56:30 +00:00
0b00000000,
0b01111111,
0b00000010,
0b00001100,
0b00000010,
0b01111111
};
#endif
2023-09-09 07:03:56 +00:00
2023-09-14 08:56:30 +00:00
#ifdef ENABLE_NOAA
const uint8_t BITMAP_NOAA[12] =
2023-09-16 16:16:36 +00:00
{ // "NS"
2023-09-09 19:45:38 +00:00
0b00000000,
0b01111111,
0b00000100,
0b00001000,
0b00010000,
0b01111111,
2023-09-09 19:45:38 +00:00
0b00000000,
0b01000110,
0b01001001,
0b01001001,
0b01001001,
0b00110001
};
#endif
2023-09-09 07:03:56 +00:00
2023-09-18 10:54:42 +00:00
const uint8_t BITMAP_SC[12] =
{ // "SC"
0b00000000,
0b01000110,
0b01001001,
0b01001001,
0b01001001,
0b00110001,
0b00000000,
0b00111110,
0b01000001,
0b01000001,
0b01000001,
0b00100010
};
const uint8_t BITMAP_Antenna[5] =
2023-09-09 19:45:38 +00:00
{
0b00000011,
0b00000101,
0b01111111,
0b00000101,
0b00000011
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_AntennaLevel1[3] =
2023-09-09 19:45:38 +00:00
{
0b01100000,
0b01100000,
0b00000000
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_AntennaLevel2[3] =
2023-09-09 19:45:38 +00:00
{
0b01110000,
0b01110000,
0b00000000
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_AntennaLevel3[3] =
2023-09-09 19:45:38 +00:00
{
0b01111000,
0b01111000,
0b00000000
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_AntennaLevel4[3] =
2023-09-09 19:45:38 +00:00
{
0b01111100,
0b01111100,
0b00000000
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_AntennaLevel5[3] =
2023-09-09 19:45:38 +00:00
{
0b01111110,
0b01111110,
0b00000000
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_AntennaLevel6[3] =
2023-09-09 19:45:38 +00:00
{
0b01111111,
0b01111111,
0b00000000
2023-09-09 07:03:56 +00:00
};
const uint8_t BITMAP_CurrentIndicator[8] =
2023-09-09 19:45:38 +00:00
{
0b11111111,
0b11111111,
0b01111110,
0b01111110,
0b00111100,
0b00111100,
0b00011000,
0b00011000
2023-09-09 07:03:56 +00:00
};
const uint8_t BITMAP_VFO_Default[8] =
2023-09-09 19:45:38 +00:00
{
0b00000000,
0b01111111,
0b01111111,
0b00111110,
0b00111110,
0b00011100,
0b00011100,
0b00001000
};
2023-09-09 07:03:56 +00:00
const uint8_t BITMAP_VFO_NotDefault[8] =
2023-09-09 19:45:38 +00:00
{
0b00000000,
0b01000001,
0b01000001,
0b00100010,
0b00100010,
0b00010100,
0b00010100,
0b00001000
};
/*
const uint8_t BITMAP_ScanList[6] =
2023-09-16 16:16:36 +00:00
{ // diamond symbol
2023-09-09 19:45:38 +00:00
0b00001000,
0b00011100,
0b00111110,
0b00111110,
0b00011100,
0b00001000
};
*/
const uint8_t BITMAP_ScanList1[6] =
{ // 1 symbol
0b00000000,
0b01000010,
0b01111110,
0b01000010,
0b00000000,
0b00000000
};
const uint8_t BITMAP_ScanList2[6] =
{ // 2 symbol
0b00000000,
0b01000010,
0b01111110,
0b01000010,
0b01111110,
0b01000010
};