|
|
|
@ -69,7 +69,7 @@ const unsigned char font[96][7] = {
|
|
|
|
{0x03,0x01,0x01,0x7f,0x00,0x00,0x00}, // 7
|
|
|
|
{0x03,0x01,0x01,0x7f,0x00,0x00,0x00}, // 7
|
|
|
|
{0x7f,0x49,0x49,0x7f,0x00,0x00,0x00}, // 8
|
|
|
|
{0x7f,0x49,0x49,0x7f,0x00,0x00,0x00}, // 8
|
|
|
|
{0x0f,0x09,0x09,0x7f,0x00,0x00,0x00}, // 9
|
|
|
|
{0x0f,0x09,0x09,0x7f,0x00,0x00,0x00}, // 9
|
|
|
|
{0x41,0x00,0x00,0x00,0x00,0x00,0x00}, // :
|
|
|
|
{0x22,0x00,0x00,0x00,0x00,0x00,0x00}, // :
|
|
|
|
{0xc1,0x00,0x00,0x00,0x00,0x00,0x00}, // ;
|
|
|
|
{0xc1,0x00,0x00,0x00,0x00,0x00,0x00}, // ;
|
|
|
|
{0x08,0x14,0x22,0x00,0x00,0x00,0x00}, // <
|
|
|
|
{0x08,0x14,0x22,0x00,0x00,0x00,0x00}, // <
|
|
|
|
{0x14,0x14,0x14,0x14,0x00,0x00,0x00}, // =
|
|
|
|
{0x14,0x14,0x14,0x14,0x00,0x00,0x00}, // =
|
|
|
|
@ -89,7 +89,7 @@ const unsigned char font[96][7] = {
|
|
|
|
{0x7f,0x08,0x08,0x77,0x00,0x00,0x00}, // K
|
|
|
|
{0x7f,0x08,0x08,0x77,0x00,0x00,0x00}, // K
|
|
|
|
{0x7f,0x40,0x40,0x60,0x00,0x00,0x00}, // L
|
|
|
|
{0x7f,0x40,0x40,0x60,0x00,0x00,0x00}, // L
|
|
|
|
{0x7f,0x01,0x01,0x7f,0x01,0x01,0x7f}, // M
|
|
|
|
{0x7f,0x01,0x01,0x7f,0x01,0x01,0x7f}, // M
|
|
|
|
{0x7f,0x01,0x01,0x7f,0x00,0x00,0x00}, // N
|
|
|
|
{0x7f,0x04,0x08,0x10,0x7f,0x00,0x00}, // N
|
|
|
|
{0x7f,0x41,0x41,0x7f,0x00,0x00,0x00}, // O
|
|
|
|
{0x7f,0x41,0x41,0x7f,0x00,0x00,0x00}, // O
|
|
|
|
{0x7f,0x09,0x09,0x0f,0x00,0x00,0x00}, // P
|
|
|
|
{0x7f,0x09,0x09,0x0f,0x00,0x00,0x00}, // P
|
|
|
|
{0x7f,0x41,0xc1,0x7f,0x00,0x00,0x00}, // Q
|
|
|
|
{0x7f,0x41,0xc1,0x7f,0x00,0x00,0x00}, // Q
|
|
|
|
@ -162,7 +162,7 @@ uint8_t check_chr_width(uint8_t chr[]){
|
|
|
|
for(int i=6;i>=0;i--)
|
|
|
|
for(int i=6;i>=0;i--)
|
|
|
|
if(chr[i] != 0)
|
|
|
|
if(chr[i] != 0)
|
|
|
|
return i;
|
|
|
|
return i;
|
|
|
|
return 0;
|
|
|
|
return 2; //space character
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void put_chr(uint8_t line, uint8_t pos, uint8_t chr[]){
|
|
|
|
void put_chr(uint8_t line, uint8_t pos, uint8_t chr[]){
|
|
|
|
|