New common 5x8 font for t6963, sed1520, mdm166a and i2500vfd. It resembles
the original font of the HD44780 with European character set, but includes only characters from ISO 8859-1 and has been extended with bar graph and icons. The t6963 driver now has its size to be configured in pixels! The size in characters is automatically calculated based on the cell size. This makes internal calculations more easy.
This commit is contained in:
+127
-37
@@ -1,43 +1,133 @@
|
||||
/** \file server/drivers/sed1520fm.h
|
||||
* Font definitions for big numbers to be used with SED1520 display.
|
||||
*
|
||||
* The code in this file was created with Cosmicvoid's Font Editor (CFE) based
|
||||
* on the original font by Robin Adams and manually optimized.
|
||||
*/
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 Robin Adams <robin@adams-online.de>
|
||||
* 2011 Markus Dolze <bsdfan@nurfuerspam.de>
|
||||
*
|
||||
* This file is released under the GNU General Public License. Refer to the
|
||||
* COPYING file distributed with this package.
|
||||
*/
|
||||
|
||||
#ifndef SED1520FM_H
|
||||
#define SED1520FM_H
|
||||
|
||||
#define b______ 0x00
|
||||
#define b_____O 0x01
|
||||
#define b____O_ 0x02
|
||||
#define b____OO 0x03
|
||||
#define b___O__ 0x04
|
||||
#define b___O_O 0x05
|
||||
#define b___OO_ 0x06
|
||||
#define b___OOO 0x07
|
||||
#define b__O___ 0x08
|
||||
#define b__O__O 0x09
|
||||
#define b__O_O_ 0x0a
|
||||
#define b__O_OO 0x0b
|
||||
#define b__OO__ 0x0c
|
||||
#define b__OO_O 0x0d
|
||||
#define b__OOO_ 0x0e
|
||||
#define b__OOOO 0x0f
|
||||
#define b_O____ 0x10
|
||||
#define b_O___O 0x11
|
||||
#define b_O__O_ 0x12
|
||||
#define b_O__OO 0x13
|
||||
#define b_O_O__ 0x14
|
||||
#define b_O_O_O 0x15
|
||||
#define b_O_OO_ 0x16
|
||||
#define b_O_OOO 0x17
|
||||
#define b_OO___ 0x18
|
||||
#define b_OO__O 0x19
|
||||
#define b_OO_O_ 0x1a
|
||||
#define b_OO_OO 0x1b
|
||||
#define b_OOO__ 0x1c
|
||||
#define b_OOO_O 0x1d
|
||||
#define b_OOOO_ 0x1e
|
||||
#define b_OOOOO 0x1f
|
||||
#define b_OOOOO 0x1f
|
||||
#define bOOOOOO 0x3f
|
||||
/* Properties of this font (currently unused) */
|
||||
#define nr_chrs_NUM 11
|
||||
#define chr_hgt_NUM 24
|
||||
#define data_size_NUM 8
|
||||
#define firstchr_NUM 48
|
||||
|
||||
char fontmap[256][8];
|
||||
char *fontbignum[10][24];
|
||||
char *fontbigdp[24];
|
||||
const unsigned char widtbl_NUM[11] =
|
||||
{
|
||||
16, 15, 16, 16, 16, 16, 16, 16, 16, 16, 5
|
||||
};
|
||||
|
||||
/* Column format, LSB top */
|
||||
|
||||
const unsigned char chr_NUM_30[48] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xFF, 0x01, 0xE0, 0xFF, 0x0F,
|
||||
0xF0, 0xFF, 0x1F, 0xF0, 0xFF, 0x1F, 0x78, 0x00, 0x3C,
|
||||
0x38, 0x00, 0x38, 0x38, 0x00, 0x38, 0x78, 0x00, 0x3C,
|
||||
0xF0, 0xFF, 0x1F, 0xF0, 0xFF, 0x1F, 0xE0, 0xFF, 0x0F,
|
||||
0x00, 0xFF, 0x01
|
||||
};
|
||||
const unsigned char chr_NUM_31[45] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x1E, 0x00, 0x00, 0x0F, 0x00, 0x80, 0x0F, 0x00,
|
||||
0xC0, 0x07, 0x00, 0xE0, 0x03, 0x00, 0xF0, 0xFF, 0x3F,
|
||||
0xF8, 0xFF, 0x3F, 0xF8, 0xFF, 0x3F, 0xF8, 0xFF, 0x3F
|
||||
};
|
||||
const unsigned char chr_NUM_32[48] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x3C,
|
||||
0xF0, 0x01, 0x3F, 0xF0, 0x81, 0x3F, 0x78, 0xC0, 0x3F,
|
||||
0x38, 0xE0, 0x3F, 0x38, 0xF0, 0x3C, 0x38, 0x78, 0x3C,
|
||||
0xF8, 0x7F, 0x3C, 0xF0, 0x3F, 0x3C, 0xF0, 0x0F, 0x3C,
|
||||
0xC0, 0x07, 0x3C
|
||||
};
|
||||
const unsigned char chr_NUM_33[48] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xC0, 0x00, 0x03, 0xF0, 0x00, 0x0F,
|
||||
0xF0, 0x00, 0x1F, 0xF8, 0x00, 0x3F, 0x38, 0x00, 0x3C,
|
||||
0x38, 0x1C, 0x38, 0x38, 0x1E, 0x38, 0xF8, 0x3F, 0x3C,
|
||||
0xF0, 0xF7, 0x1F, 0xF0, 0xF7, 0x1F, 0xC0, 0xE1, 0x0F,
|
||||
0x00, 0xC0, 0x03
|
||||
};
|
||||
const unsigned char chr_NUM_34[48] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xC0, 0x03, 0x00, 0xE0, 0x03, 0x00, 0xF8, 0x03,
|
||||
0x00, 0xBE, 0x03, 0x00, 0x9F, 0x03, 0xC0, 0x87, 0x03,
|
||||
0xE0, 0x83, 0x03, 0xF8, 0xFF, 0x3F, 0xF8, 0xFF, 0x3F,
|
||||
0xF8, 0xFF, 0x3F, 0xF8, 0xFF, 0x3F, 0x00, 0x80, 0x03,
|
||||
0x00, 0x80, 0x03
|
||||
};
|
||||
const unsigned char chr_NUM_35[48] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x1C, 0x03, 0xE0, 0x1F, 0x0F,
|
||||
0xF8, 0x1F, 0x1F, 0xF8, 0x1F, 0x3F, 0xF8, 0x0C, 0x3C,
|
||||
0x38, 0x0E, 0x38, 0x38, 0x0E, 0x38, 0x38, 0x1E, 0x3C,
|
||||
0x38, 0xFE, 0x1F, 0x38, 0xFC, 0x1F, 0x38, 0xF8, 0x0F,
|
||||
0x00, 0xF0, 0x03
|
||||
};
|
||||
const unsigned char chr_NUM_36[48] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xFF, 0x01, 0xC0, 0xFF, 0x07,
|
||||
0xE0, 0xFF, 0x1F, 0xF0, 0xFF, 0x1F, 0x78, 0x38, 0x3C,
|
||||
0x38, 0x1C, 0x38, 0x38, 0x1C, 0x38, 0x78, 0x3C, 0x3C,
|
||||
0xF8, 0xFC, 0x3F, 0xF0, 0xF8, 0x1F, 0xF0, 0xF0, 0x0F,
|
||||
0xC0, 0xE0, 0x07
|
||||
};
|
||||
const unsigned char chr_NUM_37[48] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00,
|
||||
0x38, 0x00, 0x3C, 0x38, 0xC0, 0x3F, 0x38, 0xF0, 0x3F,
|
||||
0x38, 0xFC, 0x3F, 0x38, 0xFF, 0x01, 0xB8, 0x3F, 0x00,
|
||||
0xF8, 0x07, 0x00, 0xF8, 0x03, 0x00, 0xF8, 0x00, 0x00,
|
||||
0x78, 0x00, 0x00
|
||||
};
|
||||
const unsigned char chr_NUM_38[48] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xC0, 0xC3, 0x07, 0xF0, 0xE7, 0x1F,
|
||||
0xF0, 0xFF, 0x1F, 0xF8, 0xFF, 0x3F, 0x38, 0x3C, 0x38,
|
||||
0x18, 0x18, 0x30, 0x18, 0x18, 0x30, 0x38, 0x3C, 0x38,
|
||||
0xF8, 0xFF, 0x3F, 0xF0, 0xFF, 0x1F, 0xF0, 0xE7, 0x1F,
|
||||
0xC0, 0xC3, 0x07
|
||||
};
|
||||
const unsigned char chr_NUM_39[48] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xC0, 0x0F, 0x06, 0xE0, 0x1F, 0x1E,
|
||||
0xF0, 0x3F, 0x1E, 0xF8, 0x7F, 0x3E, 0x78, 0x78, 0x3C,
|
||||
0x38, 0x70, 0x38, 0x38, 0x70, 0x38, 0x78, 0x38, 0x3C,
|
||||
0xF0, 0xFF, 0x1F, 0xF0, 0xFF, 0x0F, 0xC0, 0xFF, 0x07,
|
||||
0x00, 0xFF, 0x01
|
||||
};
|
||||
const unsigned char chr_NUM_3A[15] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0xE0, 0x81, 0x07, 0xE0, 0x81, 0x07,
|
||||
0xE0, 0x81, 0x07, 0xE0, 0x81, 0x07
|
||||
};
|
||||
|
||||
const unsigned char * chrtbl_NUM[11] =
|
||||
{
|
||||
chr_NUM_30, chr_NUM_31, chr_NUM_32, chr_NUM_33, chr_NUM_34, chr_NUM_35,
|
||||
chr_NUM_36, chr_NUM_37, chr_NUM_38, chr_NUM_39, chr_NUM_3A
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user