📄 icon.c
字号:
unsigned char RH[]=
{0x00,0xFE,0xA8,0xA8,0xA8,0xA8,0xFE,0x00,
};
unsigned char bianbian[]=
{0x00,0x94,0xCA,0xE4,0xCA,0x94,0x02,0x00,
};
unsigned char moon[]={0x1C,0x3E,0x7F,0x7F,0x41,0x22,0x1C,0x00,
};
unsigned char tbiao[]=
{
0x00,0x00,0x60,0x9F,0x9F,0x60,0x00,0x00,
};
unsigned char wendu[]=
{
0x06,0x06,0x00,0x3C,0x42,0x42,0x42,0x00,
};
unsigned char DC_ICO[] = //"电池"图标
{
0x00,0xFC,0xF6,0xF2,0xF6,0xFC,
};
unsigned char LING_ICO[] = //铃铛
{
0x24,0x0C,0x1A,0x3D,0x0F,0x06
};
unsigned char TX_POWER[] = //功率线
{
0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, //0 没有信号
0x00,0x60,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, //1 1个信号
0x00,0x60,0x00,0x70,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00, //2
0x00,0x60,0x00,0x70,0x00,0x78,
0x00,0x00,0x00,0x00,0x00,0x00, //3
0x00,0x60,0x00,0x70,0x00,0x78,
0x00,0x7C,0x00,0x00,0x00,0x00, //4
0x00,0x60,0x00,0x70,0x00,0x78,
0x00,0x7C,0x00,0x7E,0x00,0x00, //5 5个信号
0x00,0x60,0x00,0x70,0x00,0x78,
0x00,0x7C,0x00,0x7E,0x00,0x7F //6 全信号
};
void LCD_write_RH(void)
{
unsigned char i;
for (i = 0; i < 8; i++)
LCD_write_byte(RH[i], 1);
}
void LCD_write_moon(void)
{
unsigned char i;
for (i = 0; i < 8; i++)
LCD_write_byte(moon[i], 1);
}
void LCD_write_bianbian(void)
{
unsigned char i;
for (i = 0; i < 8; i++)
LCD_write_byte(bianbian[i], 1);
}
void LCD_write_tbiao(void)
{
unsigned char i;
for (i = 0; i < 8; i++)
LCD_write_byte(tbiao[i], 1);
}
void LCD_write_DCICO(void)
{
unsigned char i;
for (i = 0; i < 6; i++)
LCD_write_byte(DC_ICO[i], 1);
}
void LCD_write_wendu(void)
{
unsigned char i;
for (i = 0; i < 8; i++)
LCD_write_byte(wendu[i], 1);
}
void LCD_write_LINGICO(void)
{
unsigned char i;
for (i = 0; i < 6; i++)
LCD_write_byte(LING_ICO[i], 1);
}
void LCD_TX_POWER(unsigned char X)
{
unsigned char i,k;
k=X*12; //计算偏移量
for (i = 0; i < 12; i++)
{
LCD_write_byte(TX_POWER[k],1);
k++;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -