#include"include.h"
#define U32 unsigned int
#define M5D(n) ((n) & 0x1fffff) // To get lower 21bits
#define LCD_WIDTH 320
#define LCD_HEIGHT 240
#define VSPW (3-1)
#define VBPD (15-1)
#define VFPD (12-1)
#define HSPW (30-1)
#define HBPD (38-1)
#define HFPD (20-1)
#define LINEVAL (LCD_HEIGHT-1)
#define HOZVAL (LCD_WIDTH-1)
//for LCDCON1
#define CLKVAL_TFT 6
#define MVAL_USED 0
#define PNRMODE_TFT 3
#define BPPMODE_TFT 13
//#define VIDEO_OUT 0
//for LCDCON5
#define BPP24BL 0
#define INVVCLK 0
#define INVVLINE 1
#define INVVFRAME 1
#define INVVD 0
#define INVVDEN 0
#define PWREN 1
#define BSWP 0
#define HWSWP 0
volatile U32 LCD_BUFFER[LCD_HEIGHT][LCD_WIDTH];
unsigned char dian[]= //电
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x07,0x80,0x00,0x00,0x00,0x00,0x07,0x80,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,
0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x01,0x00,0x03,0x00,0x04,0x00,0x01,0xC0,0x03,0x00,0x0E,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0x00,0x01,0xC0,0x03,0x00,0x0E,0x00,0x01,0xC0,0x03,0x00,0x0C,0x00,0x01,0xC0,0x03,0x00,0x0C,0x00,
0x01,0xC0,0x03,0x00,0x0C,0x00,0x01,0xC0,0x03,0x00,0x0C,0x00,0x00,0xC0,0x03,0x00,0x0C,0x00,0x00,0xC0,0x03,0x00,0x0C,0x00,0x00,0xC0,0x03,0x00,0x0C,0x00,0x00,0xFF,0xFF,0xFF,0xFC,0x00,0x00,0xC0,0x03,0x00,0x0C,0x00,0x00,0xC0,0x03,0x00,0x0C,0x00,
0x00,0xC0,0x03,0x00,0x0C,0x00,0x00,0xC0,0x03,0x00,0x0C,0x00,0x00,0xC0,0x03,0x00,0x0C,0x00,0x00,0xC0,0x03,0x00,0x0C,0x00,0x00,0xC0,0x03,0x00,0x0E,0x00,0x00,0xC0,0x03,0x00,0x0E,0x00,0x00,0xC0,0x03,0x00,0x0E,0x00,0x00,0xFF,0xFF,0xFF,0xFE,0x00,
0x00,0xC0,0x03,0x00,0x0E,0x00,0x00,0xC0,0x03,0x00,0x08,0x20,0x00,0xC0,0x03,0x00,0x00,0x20,0x01,0x00,0x03,0x00,0x00,0x20,0x00,0x00,0x03,0x00,0x00,0x60,0x00,0x00,0x03,0x00,0x00,0x60,0x00,0x00,0x03,0x00,0x00,0x60,0x00,0x00,0x03,0x00,0x00,0x60,
0x00,0x00,0x03,0x00,0x00,0x70,0x00,0x00,0x03,0x00,0x00,0x78,0x00,0x00,0x03,0xFF,0xFF,0xF8,0x00,0x00,0x03,0xFF,0xFF,0xF0,0x00,0x00,0x00,0x7F,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};/*"电",0*/
unsigned char ya[]= //压
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0xC0,0x00,0x60,0x00,0x00,0x01,0xE0,0x00,0x7F,0xFF,0xFF,0xFF,0xF0,0x00,0x60,0x00,0x00,0x00,0x00,
0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x80,0x00,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xF0,0x00,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,
0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xE0,0x04,0x00,0x00,0x60,0x00,0xE0,0x0E,0x00,0x00,0x63,0xFF,0xFF,0xFF,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,
0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0xE1,0x00,0x00,0x00,0xE0,0x00,0xE1,0xC0,0x00,0x00,0xE0,0x00,0xE0,0xE0,0x00,0x00,0xE0,0x00,0xE0,0x78,0x00,0x00,0xE0,0x00,0xE0,0x3C,0x00,0x00,0xC0,0x00,0xE0,0x1E,0x00,
0x00,0xC0,0x00,0xE0,0x1F,0x00,0x00,0xC0,0x00,0xE0,0x0F,0x00,0x01,0xC0,0x00,0xE0,0x07,0x00,0x01,0x80,0x00,0xE0,0x06,0x00,0x01,0x80,0x00,0xE0,0x00,0x00,0x03,0x00,0x00,0xE0,0x00,0x00,0x03,0x00,0x00,0xE0,0x00,0x20,0x06,0x00,0x00,0xE0,0x00,0x70,
0x04,0x00,0x00,0xE0,0x00,0xF8,0x08,0xFF,0xFF,0xFF,0xFF,0xFC,0x18,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"压",0*/
};
unsigned char colon[]=
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xE0,0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00,0x00,0x00,0x03,0xF8,0x00,0x00,0x00,0x00,0x03,0xF8,0x00,0x00,0x00,0x00,0x03,0xF8,0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00,0x00,0x00,0x03,0xF8,0x00,0x00,0x00,0x00,0x03,0xF8,0x00,0x00,0x00,0x00,0x03,0xF8,0x00,0x00,0x00,0x00,
0x01,0xF0,0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*":",0*/
};
unsigned char degree[]=
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x10,0x00,0x00,0x00,0x03,0x80,0x1C,0x00,0x00,0x00,0x03,0xC0,0x1E,0x00,0x00,0x00,0x07,0x80,0x1C,0x00,0x00,0x00,0x07,0x00,0x1C,0x40,0x00,0x00,0x07,0x00,0x1C,0x30,0x00,
0x00,0x0E,0x00,0x1C,0x1C,0x00,0x00,0x0E,0x00,0x1C,0x0E,0x00,0x00,0x0C,0x00,0x1C,0x0F,0x00,0x00,0x1C,0x00,0x1C,0x07,0x00,0x00,0x18,0x00,0x1C,0x03,0x00,0x00,0x38,0x00,0x1C,0x03,0x00,0x00,0x30,0x00,0x1C,0x00,0x00,0x00,0x70,0x00,0x1C,0x00,0x20,
0x00,0x7C,0x00,0x1C,0x00,0x70,0x00,0x7C,0xFF,0xFF,0xFF,0xF8,0x00,0xF8,0x00,0x1D,0x00,0x00,0x01,0xF8,0x00,0x1D,0x00,0x00,0x01,0xB8,0x00,0x1D,0x00,0x00,0x03,0x38,0x00,0x1D,0x00,0x00,0x03,0x38,0x00,0x1D,0x80,0x00,0x06,0x38,0x00,0x19,0x80,0x00,
0x04,0x38,0x00,0x18,0x80,0x00,0x08,0x38,0x00,0x18,0x80,0x00,0x18,0x38,0x00,0x38,0xC0,0x00,0x30,0x38,0x00,0x38,0xC0,0x00,0x20,0x38,0x00,0x30,0xC0,0x00,0x00,0x38,0x00,0x70,0x60,0x00,0x00,0x38,0x00,0x70,0x60,0x00,0x00,0x38,0x00,0x60,0x60,0x00,
0x00,0x38,0x00,0xE0,0x70,0x00,0x00,0x38,0x00,0xE0,0x30,0x00,0x00,0x38,0x01,0xC0,0x38,0x00,0x00,0x38,0x01,0x80,0x1C,0x00,0x00,0x38,0x03,0x80,0x1E,0x00,0x00,0x38,0x07,0x00,0x0E,0x00,0x00,0x38,0x06,0x00,0x07,0x80,0x00,0x38,0x0C,0x00,0x07,0xC0,
0x00,0x38,0x18,0x00,0x03,0xE0,0x00,0x38,0x30,0x00,0x01,0xF8,0x00,0x38,0x60,0x00,0x00,0xFC,0x00,0x38,0xC0,0x00,0x00,0x40,0x00,0x39,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"伏",0*/
};
unsigned char digital[]=
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x07,0x80,0x00,0x0F,0x80,0x00,0x0B,0x80,0x00,0x1B,0x80,0x00,0x13,0x80,
0x00,0x33,0x80,0x00,0x63,0x80,0x00,0x43,0x80,0x00,0xC3,0x80,0x01,0x83,0x80,0x01,0x03,0x80,0x03,0x03,0x80,0x02,0x03,0x80,0x04,0x03,0x80,0x0C,0x03,0x80,0x08,0x03,0x80,0x18,0x03,0x80,0x30,0x03,0x80,0x3F,0xFF,0xFC,0x3F,0xFF,0xFC,0x00,0x03,0x80,
0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0xC0,0x00,0x7F,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"4",0*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x03,0x81,0xC0,0x07,0x00,0xE0,0x0E,0x00,0x70,0x0C,0x00,0x70,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,
0x1C,0x00,0x38,0x1E,0x00,0x38,0x0F,0x00,0x70,0x0F,0x80,0x70,0x07,0xC0,0xE
评论0
最新资源