📄 drv_320240.c
字号:
/************************************************************************
* *
* Copyright (c) SHANGHAI HANGHONG Hi-Te LTD CORP. *
* All rights reserved. *
* *
* This is Epson S1D13706 LCD contronller driver for AR320*240 *
* under AEDK E0C33209 platform. *
* *
* History Ver 2003/8/25 Start *
* *
************************************************************************/
#include "Ar320240.h"
/* API functions */
void vInitLCDAr320240( void );
extern unsigned char LJX[ ];
void vAr320240Clr( void );
void vAr320240SetPixel(unsigned short usX, unsigned char ucY, unsigned char ucPixelColor );
void _Test_DrawVerticalStripe(void);
void _Test_DrawHorizontalStripe( void );
void vExitPowerSaveMode( void );
void vPutImage( unsigned char *p, unsigned short usWidth, unsigned short usHeight );
void vDelay( void );
void vDelay1( void );
void vDrawASCII( unsigned char ucASCIIX, unsigned char ucASCIIY,
unsigned char ASCII, unsigned char ucPixelColor);
void vDrawASCII1(unsigned char ucASCIIX, unsigned char ucASCIIY,
unsigned char ASCII, unsigned char ucPixelColor);
void vDrawString( unsigned char ucASCIIX, unsigned char ucASCIIY,
unsigned char *string, unsigned char ucPixelColor );
void vSwivelView( unsigned short usAngle );
void vVideoInvert( void );
void vDisableSubWindow( void );
void vEnableSubWindow( void );
void color(void);
void vDrawASC(unsigned char ucASCX, unsigned char ucASCY, unsigned char ASCII, unsigned char ucPixelColor);
void vDrawASCString(unsigned char ucASCX,unsigned char ucASCY,unsigned char *String,unsigned char ucPixelColor);
void vSingleColor(unsigned char color );
void _CheckAndCorrectPointPosition( unsigned short *uspX, unsigned char *ucpY );
void _DrawDiagonalLine( unsigned short usX1, unsigned char ucY1, unsigned short usX2,
unsigned char ucY2, unsigned char ucPixelColor );
void vDrawRect(unsigned short usX1,unsigned char ucY1,unsigned short usX2,unsigned char ucY2,unsigned char ucpixelColor);
void vFillRect(unsigned short usX1,unsigned char ucY1,unsigned short usX2,unsigned char ucY2,unsigned char ucpixelColor);
void vDrawCircle(unsigned short usX, unsigned short ucY,unsigned char radius,unsigned char ucpixelColor);
void vFillCircle(unsigned short usX, unsigned short ucY,unsigned char radius,unsigned char ucpixelColor);
void Ar320240Demo(void);
static const unsigned char ASCIIchar[] =
{
/* 8*8 dot matrix ASCII Character (Rotate 90 degree)*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* ASCII "SPACE" Decimal:32 Hexadecimal:20 */
0x00,0x00,0x00,0x5f,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0x00,0x07,0x00,0x00,0x00,
0x00,0x14,0x7f,0x14,0x7f,0x14,0x00,0x00,
0x00,0x24,0x2a,0x7f,0x2a,0x12,0x00,0x00,
0x00,0x23,0x13,0x08,0x64,0x62,0x00,0x00,
0x00,0x36,0x49,0x55,0x22,0x50,0x00,0x00,
0x00,0x00,0x05,0x03,0x00,0x00,0x00,0x00,
0x00,0x00,0x1c,0x22,0x41,0x00,0x00,0x00,
0x00,0x00,0x41,0x22,0x1c,0x00,0x00,0x00,
0x00,0x14,0x08,0x3e,0x08,0x14,0x00,0x00,
0x00,0x08,0x08,0x3e,0x08,0x08,0x00,0x00,
0x00,0x00,0x50,0x30,0x00,0x00,0x00,0x00,
0x00,0x08,0x08,0x08,0x08,0x08,0x00,0x00,
0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,
0x00,0x20,0x10,0x08,0x04,0x02,0x00,0x00,
0x00,0x3E,0x51,0x49,0x45,0x3E,0x00,0x00, /* 0 */
0x00,0x00,0x42,0x7f,0x40,0x00,0x00,0x00,
0x00,0x42,0x61,0x51,0x49,0x46,0x00,0x00,
0x00,0x21,0x41,0x45,0x4b,0x31,0x00,0x00,
0x00,0x18,0x14,0x12,0x7f,0x10,0x00,0x00,
0x00,0x27,0x45,0x45,0x45,0x39,0x00,0x00,
0x00,0x3C,0x4A,0x49,0x49,0x30,0x00,0x00,
0x00,0x01,0x01,0x79,0x05,0x03,0x00,0x00,
0x00,0x36,0x49,0x49,0x49,0x36,0x00,0x00,
0x00,0x06,0x49,0x49,0x29,0x1e,0x00,0x00, /* 9 */
0x00,0x00,0x36,0x36,0x00,0x00,0x00,0x00,
0x00,0x00,0x56,0x36,0x00,0x00,0x00,0x00,
0x00,0x08,0x14,0x22,0x41,0x00,0x00,0x00,
0x00,0x14,0x14,0x14,0x14,0x14,0x00,0x00,
0x00,0x00,0x41,0x22,0x14,0x08,0x00,0x00,
0x00,0x02,0x01,0x51,0x09,0x06,0x00,0x00,
0x00,0x32,0x49,0x79,0x41,0x3e,0x00,0x00,
0x00,0x7e,0x11,0x11,0x11,0x7e,0x00,0x00, /* A */
0x00,0x41,0x7f,0x49,0x49,0x36,0x00,0x00,
0x00,0x3e,0x41,0x41,0x41,0x22,0x00,0x00,
0x00,0x41,0x7f,0x41,0x41,0x3e,0x00,0x00,
0x00,0x7f,0x49,0x49,0x49,0x49,0x00,0x00,
0x00,0x7f,0x09,0x09,0x09,0x01,0x00,0x00,
0x00,0x3e,0x41,0x41,0x49,0x7a,0x00,0x00,
0x00,0x7f,0x08,0x08,0x08,0x7f,0x00,0x00,
0x00,0x00,0x41,0x7f,0x41,0x00,0x00,0x00,
0x00,0x20,0x40,0x41,0x3f,0x01,0x00,0x00,
0x00,0x7f,0x08,0x14,0x22,0x41,0x00,0x00,
0x00,0x7f,0x40,0x40,0x40,0x40,0x00,0x00,
0x00,0x7f,0x02,0x0c,0x02,0x7f,0x00,0x00,
0x00,0x7f,0x06,0x08,0x30,0x7f,0x00,0x00,
0x00,0x3e,0x41,0x41,0x41,0x3e,0x00,0x00,
0x00,0x7f,0x09,0x09,0x09,0x06,0x00,0x00,
0x00,0x3e,0x41,0x51,0x21,0x5e,0x00,0x00,
0x00,0x7f,0x09,0x19,0x29,0x46,0x00,0x00,
0x00,0x26,0x49,0x49,0x49,0x32,0x00,0x00,
0x00,0x01,0x01,0x7f,0x01,0x01,0x00,0x00,
0x00,0x3f,0x40,0x40,0x40,0x3f,0x00,0x00,
0x00,0x1f,0x20,0x40,0x20,0x1f,0x00,0x00,
0x00,0x7f,0x20,0x18,0x20,0x7f,0x00,0x00,
0x00,0x63,0x14,0x08,0x14,0x63,0x00,0x00,
0x00,0x07,0x08,0x70,0x08,0x07,0x00,0x00,
0x00,0x61,0x51,0x49,0x45,0x43,0x00,0x00, /* Z */
0x00,0x00,0x7f,0x41,0x41,0x00,0x00,0x00,
0x00,0x02,0x04,0x08,0x10,0x20,0x00,0x00,
0x00,0x00,0x41,0x41,0x7f,0x00,0x00,0x00,
0x00,0x04,0x02,0x01,0x02,0x04,0x00,0x00,
0x00,0x40,0x40,0x40,0x40,0x40,0x00,0x00,
0x00,0x01,0x02,0x04,0x00,0x00,0x00,0x00,
0x00,0x20,0x54,0x54,0x54,0x78,0x00,0x00, /* a */
0x00,0x7f,0x48,0x44,0x44,0x38,0x00,0x00,
0x00,0x38,0x44,0x44,0x44,0x20,0x00,0x00,
0x00,0x38,0x44,0x44,0x48,0x7f,0x00,0x00,
0x00,0x38,0x54,0x54,0x54,0x18,0x00,0x00,//e
0x00,0x00,0x08,0x7e,0x09,0x02,0x00,0x00,
0x00,0x0c,0x52,0x52,0x4c,0x3e,0x00,0x00,//g
0x00,0x7f,0x08,0x04,0x04,0x78,0x00,0x00,
0x00,0x00,0x44,0x7d,0x40,0x00,0x00,0x00,
0x00,0x20,0x40,0x44,0x3d,0x00,0x00,0x00,
0x00,0x00,0x7f,0x10,0x28,0x44,0x00,0x00,
0x00,0x00,0x41,0x7f,0x40,0x00,0x00,0x00,//l
0x00,0x7c,0x04,0x78,0x04,0x78,0x00,0x00,
0x00,0x7c,0x08,0x04,0x04,0x78,0x00,0x00,
0x00,0x38,0x44,0x44,0x44,0x38,0x00,0x00,
0x00,0x7e,0x0c,0x12,0x12,0x0c,0x00,0x00,
0x00,0x0c,0x12,0x12,0x0c,0x7e,0x00,0x00,
0x00,0x7c,0x08,0x04,0x04,0x08,0x00,0x00,
0x00,0x48,0x54,0x54,0x54,0x20,0x00,0x00,
0x00,0x04,0x3f,0x44,0x40,0x20,0x00,0x00,
0x00,0x3c,0x40,0x40,0x3c,0x40,0x00,0x00,
0x00,0x1c,0x20,0x40,0x20,0x1c,0x00,0x00,
0x00,0x3c,0x40,0x30,0x40,0x3c,0x00,0x00,
0x00,0x44,0x28,0x10,0x28,0x44,0x00,0x00,
0x00,0x0c,0x50,0x50,0x50,0x3c,0x00,0x00,
0x00,0x44,0x64,0x54,0x4c,0x44,0x00,0x00, /* z */
0x00,0x00,0x08,0x36,0x41,0x00,0x00,0x00,
0x00,0x00,0x00,0x77,0x00,0x00,0x00,0x00,
0x00,0x00,0x41,0x36,0x08,0x00,0x00,0x00,
0x00,0x02,0x01,0x02,0x04,0x02,0x00,0x00,
0x00,0xff,0xff,0xff,0xff,0xff,0x00,0x00
};
static const unsigned char fontASC[]={
/*-- 字体: 幼圆,12; 以下字符对应的点阵均为:宽x高=8x16 --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//文字: space
0x00,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00,0x18,0x18,0x00,0x00,//文字: !
0x00,0x12,0x36,0x24,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//文字: "
0x00,0x00,0x00,0x24,0x24,0x24,0xFE,0x48,0x48,0x48,0xFE,0x48,0x48,0x48,0x00,0x00,//文字: #
0x00,0x00,0x10,0x38,0x54,0x54,0x50,0x30,0x18,0x14,0x14,0x54,0x54,0x38,0x10,0x10,//文字: $
0x00,0x00,0x00,0x44,0xA4,0xA8,0xA8,0xA8,0x54,0x1A,0x2A,0x2A,0x2A,0x44,0x00,0x00,//文字: %
0x00,0x00,0x00,0x30,0x48,0x48,0x48,0x50,0x6E,0xA4,0x94,0x88,0x89,0x76,0x00,0x00,//文字: &
0x00,0x60,0x60,0x20,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//文字: '
0x00,0x02,0x04,0x08,0x08,0x10,0x10,0x10,0x10,0x10,0x10,0x08,0x08,0x04,0x02,0x00,//文字: (
0x00,0x40,0x20,0x10,0x10,0x08,0x08,0x08,0x08,0x08,0x08,0x10,0x10,0x20,0x40,0x00,//文字: )
0x00,0x00,0x00,0x00,0x10,0x10,0xD6,0x38,0x38,0xD6,0x10,0x10,0x00,0x00,0x00,0x00,//文字: *
0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x10,0xFE,0x10,0x10,0x10,0x10,0x00,0x00,0x00,//文字: +
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x20,0xC0,//文字: ,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//文字: -
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,//文字: .
0x00,0x00,0x01,0x02,0x02,0x04,0x04,0x08,0x08,0x10,0x10,0x20,0x20,0x40,0x40,0x00,//文字: /
0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x24,0x18,0x00,0x00,//文字: 0
0x00,0x00,0x00,0x10,0x70,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,//文字: 1
0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x04,0x04,0x08,0x10,0x20,0x42,0x7E,0x00,0x00,//文字: 2
0x00,0x00,0x00,0x3C,0x42,0x42,0x04,0x18,0x04,0x02,0x02,0x42,0x44,0x38,0x00,0x00,//文字: 3
0x00,0x00,0x00,0x04,0x0C,0x14,0x24,0x24,0x44,0x44,0x7E,0x04,0x04,0x1E,0x00,0x00,//文字: 4
0x00,0x00,0x00,0x7E,0x40,0x40,0x40,0x58,0x64,0x02,0x02,0x42,0x44,0x38,0x00,0x00,//文字: 5
0x00,0x00,0x00,0x1C,0x24,0x40,0x40,0x58,0x64,0x42,0x42,0x42,0x24,0x18,0x00,0x00,//文字: 6
0x00,0x00,0x00,0x7E,0x44,0x44,0x08,0x08,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00,//文字: 7
0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x24,0x18,0x24,0x42,0x42,0x42,0x3C,0x00,0x00,//文字: 8
0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x26,0x1A,0x02,0x02,0x24,0x38,0x00,0x00,//文字: 9
0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,//文字: :
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x20,//文字: ;
0x00,0x00,0x00,0x02,0x04,0x08,0x10,0x20,0x40,0x20,0x10,0x08,0x04,0x02,0x00,0x00,//文字: <
0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,//文字: =
0x00,0x00,0x00,0x40,0x20,0x10,0x08,0x04,0x02,0x04,0x08,0x10,0x20,0x40,0x00,0x00,//文字: >
0x00,0x00,0x00,0x3C,0x42,0x42,0x62,0x02,0x04,0x08,0x08,0x00,0x18,0x18,0x00,0x00,//文字: ?
0x00,0x00,0x00,0x38,0x44,0x5A,0xAA,0xAA,0xAA,0xAA,0xB4,0x42,0x44,0x38,0x00,0x00,//文字: @
0x00,0x00,0x00,0x10,0x10,0x18,0x28,0x28,0x24,0x3C,0x44,0x42,0x42,0xE7,0x00,0x00,//文字: A
0x00,0x00,0x00,0xF8,0x44,0x44,0x44,0x78,0x44,0x42,0x42,0x42,0x44,0xF8,0x00,0x00,//文字: B
0x00,0x00,0x00,0x3E,0x42,0x42,0x80,0x80,0x80,0x80,0x80,0x42,0x44,0x38,0x00,0x00,//文字: C
0x00,0x00,0x00,0xF8,0x44,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x44,0xF8,0x00,0x00,//文字: D
0x00,0x00,0x00,0xFC,0x42,0x48,0x48,0x78,0x48,0x48,0x40,0x42,0x42,0xFC,0x00,0x00,//文字: E
0x00,0x00,0x00,0xFC,0x42,0x48,0x48,0x78,0x48,0x48,0x40,0x40,0x40,0xE0,0x00,0x00,//文字: F
0x00,0x00,0x00,0x3C,0x44,0x44,0x80,0x80,0x80,0x8E,0x84,0x44,0x44,0x38,0x00,0x00,//文字: G
0x00,0x00,0x00,0xE7,0x42,0x42,0x42,0x42,0x7E,0x42,0x42,0x42,0x42,0xE7,0x00,0x00,//文字: H
0x00,0x00,0x00,0x7C,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,//文字: I
0x00,0x00,0x00,0x3E,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x88,0xF0,//文字: J
0x00,0x00,0x00,0xEE,0x44,0x48,0x50,0x70,0x50,0x48,0x48,0x44,0x44,0xEE,0x00,0x00,//文字: K
0x00,0x00,0x00,0xE0,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x42,0xFE,0x00,0x00,//文字: L
0x00,0x00,0x00,0xEE,0x6C,0x6C,0x6C,0x6C,0x54,0x54,0x54,0x54,0x54,0xD6,0x00,0x00,//文字: M
0x00,0x00,0x00,0xC7,0x62,0x62,0x52,0x52,0x4A,0x4A,0x4A,0x46,0x46,0xE2,0x00,0x00,//文字: N
0x00,0x00,0x00,0x38,0x44,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x44,0x38,0x00,0x00,//文字: O
0x00,0x00,0x00,0xFC,0x42,0x42,0x42,0x42,0x7C,0x40,0x40,0x40,0x40,0xE0,0x00,0x00,//文字: P
0x00,0x00,0x00,0x38,0x44,0x82,0x82,0x82,0x82,0x82,0xB2,0xCA,0x4C,0x38,0x06,0x00,//文字: Q
0x00,0x00,0x00,0xFC,0x42,0x42,0x42,0x7C,0x48,0x48,0x44,0x44,0x42,0xE3,0x00,0x00,//文字: R
0x00,0x00,0x00,0x3E,0x42,0x42,0x40,0x20,0x18,0x04,0x02,0x42,0x42,0x7C,0x00,0x00,//文字: S
0x00,0x00,0x00,0xFE,0x92,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x38,0x00,0x00,//文字: T
0x00,0x00,0x00,0xE7,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,0x00,//文字: U
0x00,0x00,0x00,0xE7,0x42,0x42,0x44,0x24,0x24,0x28,0x28,0x18,0x10,0x10,0x00,0x00,//文字: V
0x00,0x00,0x00,0xD6,0x92,0x92,0x92,0x92,0xAA,0xAA,0x6C,0x44,0x44,0x44,0x00,0x00,//文字: W
0x00,0x00,0x00,0xE7,0x42,0x24,0x24,0x18,0x18,0x18,0x24,0x24,0x42,0xE7,0x00,0x00,//文字: X
0x00,0x00,0x00,0xEE,0x44,0x44,0x28,0x28,0x10,0x10,0x10,0x10,0x10,0x38,0x00,0x00,//文字: Y
0x00,0x00,0x00,0x7E,0x84,0x04,0x08,0x08,0x10,0x20,0x20,0x42,0x42,0xFC,0x00,0x00,//文字: Z
0x00,0x1E,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x1E,0x00,//文字: [
0x00,0x00,0x40,0x40,0x20,0x20,0x10,0x10,0x10,0x08,0x08,0x04,0x04,0x04,0x02,0x02,//文字: " \ "
0x00,0x78,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x78,0x00,//文字: ]
0x00,0x1C,0x22,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,0xFF,//文字: _
0x00,0x60,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//文字: `
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x42,0x1E,0x22,0x42,0x42,0x3F,0x00,0x00,//文字: a
0x00,0x00,0x00,0xC0,0x40,0x40,0x40,0x58,0x64,0x42,0x42,0x42,0x64,0x58,0x00,0x00,//文字: b
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x22,0x40,0x40,0x40,0x22,0x1C,0x00,0x00,//文字: c
0x00,0x00,0x00,0x06,0x02,0x02,0x02,0x1E,0x22,0x42,0x42,0x42,0x26,0x1B,0x00,0x00,//文字: d
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x42,0x7E,0x40,0x40,0x42,0x3C,0x00,0x00,//文字: e
0x00,0x00,0x00,0x0F,0x11,0x10,0x10,0x7E,0x10,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,//文字: f
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x44,0x44,0x38,0x40,0x3C,0x42,0x42,0x3C,//文字: g
0x00,0x00,0x00,0xC0,0x40,0x40,0x40,0x5C,0x62,0x42,0x42,0x42,0x42,0xE7,0x00,0x00,//文字: h
0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x70,0x10,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,//文字: i
0x00,0x00,0x00,0x0C,0x0C,0x00,0x00,0x1C,0x04,0x04,0x04,0x04,0x04,0x04,0x44,0x78,//文字: j
0x00,0x00,0x00,0xC0,0x40,0x40,0x40,0x4E,0x48,0x50,0x68,0x48,0x44,0xEE,0x00,0x00,//文字: k
0x00,0x00,0x00,0x70,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,//文字: l
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x49,0x49,0x49,0x49,0x49,0xED,0x00,0x00,//文字: m
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xDC,0x62,0x42,0x42,0x42,0x42,0xE7,0x00,0x00,//文字: n
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,0x00,//文字: o
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD8,0x64,0x42,0x42,0x42,0x44,0x78,0x40,0xE0,//文字: p
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x22,0x42,0x42,0x42,0x22,0x1E,0x02,0x07,//文字: q
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xEE,0x32,0x20,0x20,0x20,0x20,0xF8,0x00,0x00,//文字: r
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x42,0x40,0x3C,0x02,0x42,0x7C,0x00,0x00,//文字: s
0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x7C,0x10,0x10,0x10,0x10,0x10,0x0C,0x00,0x00,//文字: t
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC6,0x42,0x42,0x42,0x42,0x46,0x3B,0x00,0x00,//文字: u
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE7,0x42,0x24,0x24,0x28,0x10,0x10,0x00,0x00,//文字: v
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD7,0x92,0x92,0xAA,0xAA,0x44,0x44,0x00,0x00,//文字: w
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6E,0x24,0x18,0x18,0x18,0x24,0x76,0x00,0x00,//文字: x
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE7,0x42,0x24,0x24,0x28,0x18,0x10,0x10,0xE0,//文字: y
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x44,0x08,0x10,0x10,0x22,0x7E,0x00,0x00,//文字: z
0x00,0x03,0x04,0x04,0x04,0x04,0x04,0x08,0x04,0x04,0x04,0x04,0x04,0x04,0x03,0x00,//文字: {
0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,//文字: |
0x00,0x60,0x10,0x10,0x10,0x10,0x10,0x08,0x10,0x10,0x10,0x10,0x10,0x10,0x60,0x00,//文字: }
0x30,0x4C,0x43,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
};
/*
unsigned char LUT8_Color[256 *3] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0xbf, 0x00, 0x00, 0xff,
0x00, 0x20, 0x00, 0x00, 0x20, 0x40, 0x00, 0x20, 0xbf, 0x00, 0x20, 0xff,
0x00, 0x40, 0x00, 0x00, 0x40, 0x40, 0x00, 0x40, 0xbf, 0x00, 0x40, 0xff,
0x00, 0x60, 0x00, 0x00, 0x60, 0x40, 0x00, 0x60, 0xbf, 0x00, 0x60, 0xff,
//
0x00, 0x9f, 0x00, 0x00, 0x9f, 0x40, 0x00, 0x9f, 0xbf, 0x00, 0x9f, 0xff,
0x00, 0xbf, 0x00, 0x00, 0xbf, 0x40, 0x00, 0xbf, 0xbf, 0x00, 0xbf, 0xff,
0x00, 0xdf, 0x00, 0x00, 0xdf, 0x40, 0x00, 0xdf, 0xbf, 0x00, 0xdf, 0xff,
0x00, 0xff, 0x00, 0x00, 0xff, 0x40, 0x00, 0xff, 0xbf, 0x00, 0xff, 0xff,
//
0x20, 0x00, 0x00, 0x20, 0x00, 0x40, 0x20, 0x00, 0xbf, 0x20, 0x00, 0xff,
0x20, 0x20, 0x00, 0x20, 0x20, 0x40, 0x20, 0x20, 0xbf, 0x20, 0x20, 0xff,
0x20, 0x40, 0x00, 0x20, 0x40, 0x40, 0x20, 0x40, 0xbf, 0x20, 0x40, 0xff,
0x20, 0x60, 0x00, 0x20, 0x60, 0x40, 0x20, 0x60, 0xbf, 0x20, 0x60, 0xff,
//
0x20, 0x9f, 0x00, 0x20, 0x9f, 0x40, 0x20, 0x9f, 0xbf, 0x20, 0x9f, 0xff,
0x20, 0xbf, 0x00, 0x20, 0xbf, 0x40, 0x20, 0xbf, 0xbf, 0x20, 0xbf, 0xff,
0x20, 0xdf, 0x00, 0x20, 0xdf, 0x40, 0x20, 0xdf, 0xbf, 0x20, 0xdf, 0xff,
0x20, 0xff, 0x00, 0x20, 0xff, 0x40, 0x20, 0xff, 0xbf, 0x20, 0xff, 0xff,
//
0x40, 0x00, 0x00, 0x40, 0x00, 0x40, 0x40, 0x00, 0xbf, 0x40, 0x00, 0xff,
0x40, 0x20, 0x00, 0x40, 0x20, 0x40, 0x40, 0x20, 0xbf, 0x40, 0x20, 0xff,
0x40, 0x40, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0xbf, 0x40, 0x40, 0xff,
0x40, 0x60, 0x00, 0x40, 0x60, 0x40, 0x40, 0x60, 0xbf, 0x40, 0x60, 0xff,
//
0x40, 0x9f, 0x00, 0x40, 0x9f, 0x40, 0x40, 0x9f, 0xbf, 0x40, 0x9f, 0xff,
0x40, 0xbf, 0x00, 0x40, 0xbf, 0x40, 0x40, 0xbf, 0xbf, 0x40, 0xbf, 0xff,
0x40, 0xdf, 0x00, 0x40, 0xdf, 0x40, 0x40, 0xdf, 0xbf, 0x40, 0xdf, 0xff,
0x40, 0xff, 0x00, 0x40, 0xff, 0x40, 0x40, 0xff, 0xbf, 0x40, 0xff, 0xff,
//
0x60, 0x00, 0x00, 0x60, 0x00, 0x40, 0x60, 0x00, 0xbf, 0x60, 0x00, 0xff,
0x60, 0x20, 0x00, 0x60, 0x20, 0x40, 0x60, 0x20, 0xbf, 0x60, 0x20, 0xff,
0x60, 0x40, 0x00, 0x60, 0x40, 0x40, 0x60, 0x40, 0xbf, 0x60, 0x40, 0xff,
0x60, 0x60, 0x00, 0x60, 0x60, 0x40, 0x60, 0x60, 0xbf, 0x60, 0x60, 0xff,
//
0x60, 0x9f, 0x00, 0x60, 0x9f, 0x40, 0x60, 0x9f, 0xbf, 0x60, 0x9f, 0xff,
0x60, 0xbf, 0x00, 0x60, 0xbf, 0x40, 0x60, 0xbf, 0xbf, 0x60, 0xbf, 0xff,
0x60, 0xdf, 0x00, 0x60, 0xdf, 0x40, 0x60, 0xdf, 0xbf, 0x60, 0xdf, 0xff,
0x60, 0xff, 0x00, 0x60, 0xff, 0x40, 0x60, 0xff, 0xbf, 0x60, 0xff, 0xff,
//
0x9f, 0x00, 0x00, 0x9f, 0x00, 0x40, 0x9f, 0x00, 0xbf, 0x9f, 0x00, 0xff,
0x9f, 0x20, 0x00, 0x9f, 0x20, 0x40, 0x9f, 0x20, 0xbf, 0x9f, 0x20, 0xff,
0x9f, 0x40, 0x00, 0x9f, 0x40, 0x40, 0x9f, 0x40, 0xbf, 0x9f, 0x40, 0xff,
0x9f, 0x60, 0x00, 0x9f, 0x60, 0x40, 0x9f, 0x60, 0xbf, 0x9f, 0x60, 0xff,
//
0x9f, 0x9f, 0x00, 0x9f, 0x9f, 0x40, 0x9f, 0x9f, 0xbf, 0x9f, 0x9f, 0xff,
0x9f, 0xbf, 0x00, 0x9f, 0xbf, 0x40, 0x9f, 0xbf, 0xbf, 0x9f, 0xbf, 0xff,
0x9f, 0xdf, 0x00, 0x9f, 0xdf, 0x40, 0x9f, 0xdf, 0xbf, 0x9f, 0xdf, 0xff,
0x9f, 0xff, 0x00, 0x9f, 0xff, 0x40, 0x9f, 0xff, 0xbf, 0x9f, 0xff, 0xff,
//
0xbf, 0x00, 0x00, 0xbf, 0x00, 0x40, 0xbf, 0x00, 0xbf, 0xbf, 0x00, 0xff,
0xbf, 0x20, 0x00, 0xbf, 0x20, 0x40, 0xbf, 0x20, 0xbf, 0xbf, 0x20, 0xff,
0xbf, 0x40, 0x00, 0xbf, 0x40, 0x40, 0xbf, 0x40, 0xbf, 0xbf, 0x40, 0xff,
0xbf, 0x60, 0x00, 0xbf, 0x60, 0x40, 0xbf, 0x60, 0xbf, 0xbf, 0x60, 0xff,
//
0xbf, 0x9f, 0x00, 0xbf, 0x9f, 0x40, 0xbf, 0x9f, 0xbf, 0xbf, 0x9f, 0xff,
0xbf, 0xbf, 0x00, 0xbf, 0xbf, 0x40, 0xbf, 0xbf, 0xbf, 0xbf, 0xbf, 0xff,
0xbf, 0xdf, 0x00, 0xbf, 0xdf, 0x40, 0xbf, 0xdf, 0xbf, 0xbf, 0xdf, 0xff,
0xbf, 0xff, 0x00, 0xbf, 0xff, 0x40, 0xbf, 0xff, 0xbf, 0xbf, 0xff, 0xff,
//
0xdf, 0x00, 0x00, 0xdf, 0x00, 0x40, 0xdf, 0x00, 0xbf, 0xdf, 0x00, 0xff,
0xdf, 0x20, 0x00, 0xdf, 0x20, 0x40, 0xdf, 0x20, 0xbf, 0xdf, 0x20, 0xff,
0xdf, 0x40, 0x00, 0xdf, 0x40, 0x40, 0xdf, 0x40, 0xbf, 0xdf, 0x40, 0xff,
0xdf, 0x60, 0x00, 0xdf, 0x60, 0x40, 0xdf, 0x60, 0xbf, 0xdf, 0x60, 0xff,
//
0xdf, 0x9f, 0x00, 0xdf, 0x9f, 0x40, 0xdf, 0x9f, 0xbf, 0xdf, 0x9f, 0xff,
0xdf, 0xbf, 0x00, 0xdf, 0xbf, 0x40, 0xdf, 0xbf, 0xbf, 0xdf, 0xbf, 0xff,
0xdf, 0xdf, 0x00, 0xdf, 0xdf, 0x40, 0xdf, 0xdf, 0xbf, 0xdf, 0xdf, 0xff,
0xdf, 0xff, 0x00, 0xdf, 0xff, 0x40, 0xdf, 0xff, 0xbf, 0xdf, 0xff, 0xff,
//
0xff, 0x00, 0x00, 0xff, 0x00, 0x40, 0xff, 0x00, 0xbf, 0xff, 0x00, 0xff,
0xff, 0x20, 0x00, 0xff, 0x20, 0x40, 0xff, 0x20, 0xbf, 0xff, 0x20, 0xff,
0xff, 0x40, 0x00, 0xff, 0x40, 0x40, 0xff, 0x40, 0xbf, 0xff, 0x40, 0xff,
0xff, 0x60, 0x00, 0xff, 0x60, 0x40, 0xff, 0x60, 0xbf, 0xff, 0x60, 0xff,
//
0xff, 0x9f, 0x00, 0xff, 0x9f, 0x40, 0xff, 0x9f, 0xbf, 0xff, 0x9f, 0xff,
0xff, 0xbf, 0x00, 0xff, 0xbf, 0x40, 0xff, 0xbf, 0xbf, 0xff, 0xbf, 0xff,
0xff, 0xdf, 0x00, 0xff, 0xdf, 0x40, 0xff, 0xdf, 0xbf, 0xff, 0xdf, 0xff,
0xff, 0xff, 0x00, 0xff, 0xff, 0x40, 0xff, 0xff, 0xbf, 0xff, 0xff, 0xff
};
*/
/***********************************************************************************************
* vInitLCDAr320240
* Type : void
* Ret val : none
* Argument : void
* Function : Ar320240 LCD initial routine
***********************************************************************************************/
void vInitLCDAr320240(void)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -