基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发

该驱动主要实现了在飞凌ok6410开发版下对诺基亚5110显示器的控制。

驱动名称GIO,直接上代码:

基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发
  1 //#include <s3c6410.h>
  2 
  3 
  4 
  5 #include <windows.h>
  6 #include <s3c6410.h>
  7 //#include <DrvLib.h>
  8 //#include <winuser.h>
  9 #include <ENGLISH_6X8PIXEL.h>
 10 #include <write_chinese_string_pixel.h>
 11 #include "GIO.h"
 12 #include "bmp_pixel.h"
 13 
 14 //#include <nkintr.h>
 15 //#include <ceddk.h>
 16 //#include <memory.h>
 17 
 18 static volatile S3C6410_GPIO_REG  *v_pIOPregs  ;
 19 
 20 BOOL WINAPI GIO_DllEntry(HANDLE hInstDll,DWORD dwReason,LPVOID lpvReserved)
 21 {
 22     return 1;
 23 }
 24 
 25 bool InitializeAddresses(VOID)
 26 {
 27     bool RetValue = TRUE;
 28 
 29     /* IO Register Allocation */
 30     v_pIOPregs = (volatile S3C6410_GPIO_REG *)VirtualAlloc(0, sizeof(S3C6410_GPIO_REG), MEM_RESERVE, PAGE_NOACCESS);
 31     if (v_pIOPregs == NULL) 
 32     {
 33         ERRORMSG(1,(TEXT("For IOPregs : VirtualAlloc faiGPIO!\r\n")));
 34         RetValue = FALSE;
 35     }
 36     else 
 37     {
 38         if (!VirtualCopy((PVOID)v_pIOPregs, (PVOID)(S3C6410_BASE_REG_PA_GPIO >> 8), sizeof(S3C6410_GPIO_REG), PAGE_PHYSICAL | PAGE_READWRITE | PAGE_NOCACHE)) 
 39         {
 40             ERRORMSG(1,(TEXT("For IOPregs: VirtualCopy faiGPIO!\r\n")));
 41             RetValue = FALSE;
 42         }
 43     }
 44 
 45     if (!RetValue) 
 46     {
 47         if (v_pIOPregs) 
 48         {
 49             VirtualFree((PVOID) v_pIOPregs, 0, MEM_RELEASE);
 50         }
 51 
 52         v_pIOPregs = NULL;
 53     }
 54 
 55     return(RetValue);
 56 
 57 } 
 58 
 59  VOID delay_1us(void)                 //1us延时函数
 60 {
 61     unsigned int i;
 62     for(i=0;i<1000;i++);
 63 }
 64 
 65  VOID delay_1ms(VOID)                 //1ms延时函数
 66 {
 67     unsigned int i;
 68     for (i=0;i<1140;i++);
 69 }
 70 
 71  VOID delay_nms(unsigned int n)       //N ms延时函数
 72 {
 73     unsigned int i=0;
 74     for (i=0;i<n;i++)
 75         delay_1ms();
 76 }
 77 
 78 
 79 
 80  VOID RTS_LOW()
 81 {
 82     v_pIOPregs->GPCDAT=v_pIOPregs->GPCDAT&239;
 83 }
 84  VOID RTS_UP()
 85 {
 86     v_pIOPregs->GPCDAT=v_pIOPregs->GPCDAT|16;
 87 }
 88  VOID CE_LOW()
 89 {
 90     v_pIOPregs->GPCDAT=v_pIOPregs->GPCDAT&247;
 91 }
 92  VOID CE_UP()
 93  {
 94      v_pIOPregs->GPCDAT=v_pIOPregs->GPCDAT|8;
 95  }
 96 
 97  VOID DC_LOW()
 98 {
 99     v_pIOPregs->GPCDAT=v_pIOPregs->GPCDAT&251;
100 }
101  VOID DC_UP()
102 {
103     v_pIOPregs->GPCDAT=v_pIOPregs->GPCDAT|4;
104 }
105  VOID SDIN_LOW()
106 {
107     v_pIOPregs->GPCDAT=v_pIOPregs->GPCDAT&253;
108 
109 }
110  VOID SDIN_UP()
111 {
112     v_pIOPregs->GPCDAT=v_pIOPregs->GPCDAT|2;
113 }
114  VOID SCLK_LOW()
115 {
116     v_pIOPregs->GPCDAT=(v_pIOPregs->GPCDAT)&254;
117 }
118  VOID SCLK_UP()
119 {
120     v_pIOPregs->GPCDAT=(v_pIOPregs->GPCDAT)|1;
121 }
122 
123 
124 
125 
126 
127  VOID LCD_write_byte(unsigned char dat, unsigned char command)
128  {
129      unsigned char i;
130      //PORTB &= ~LCD_CE ;                // 使能LCD
131      CE_LOW();//LCD_CE = 0;
132 
133      if (command == 0)
134          // PORTB &= ~LCD_DC ;            // 传送命令
135          DC_LOW();//LCD_DC = 0;
136      else
137          // PORTB |= LCD_DC ;                // 传送数据
138          DC_UP();//LCD_DC = 1;
139      for(i=0;i<8;i++)
140      {
141          if(dat&0x80)
142              SDIN_UP();//SDIN = 1;
143          else
144              SDIN_LOW();//SDIN = 0;
145          SCLK_LOW();//SCLK = 0;
146          dat = dat << 1;
147          SCLK_UP();//SCLK = 1;
148      }
149      // SPDR = data;            // 传送数据到SPI寄存器
150 
151      //while ((SPSR & 0x80) == 0);         // 等待数据传送完毕
152 
153      //PORTB |= LCD_CE ;            // 关闭LCD
154      CE_UP();//LCD_CE = 1;
155  }
156 
157 
158 
159 
160 
161 
162 /*-----------------------------------------------------------------------
163 LCD_write_char    : 显示英文字符
164 
165 输入参数:c       :显示的字符;
166 
167 编写日期          :2004-8-10 
168 最后修改日期      :2004-8-10 
169 -----------------------------------------------------------------------*/
170  VOID LCD_write_char(unsigned char c)
171 {
172     unsigned char line;
173 
174     c -= 32;
175 
176     for (line=0; line<6; line++)
177         LCD_write_byte(font6x8[c][line], 1);
178 }
179 
180  /*-----------------------------------------------------------------------
181  LCD_set_XY        : 设置LCD坐标函数
182 
183  输入参数:X       :0-83
184  Y       :0-5
185 
186  编写日期          :2004-8-10 
187  最后修改日期      :2004-8-10 
188  -----------------------------------------------------------------------*/
189 
190 
191 
192 
193 
194  VOID LCD_set_XY(unsigned char X, unsigned char Y)
195 {
196     LCD_write_byte(0x40 | Y, 0);        // column
197     LCD_write_byte(0x80 | X, 0);              // row
198 }
199 
200 
201 
202  /*-----------------------------------------------------------------------
203  LCD_clear         : LCD清屏函数
204 
205  编写日期          :2004-8-10 
206  最后修改日期      :2004-8-10 
207  -----------------------------------------------------------------------*/
208  VOID LCD_clear(VOID)
209  {
210      unsigned int i;
211 
212      LCD_write_byte(0x0c, 0);            
213      LCD_write_byte(0x80, 0);            
214 
215      for (i=0; i<504; i++)
216          LCD_write_byte(0, 1);            
217  }
218 
219  VOID LCD_init(VOID)
220 {
221     // 产生一个让LCD复位的低电平脉冲
222     RTS_LOW();//LCD_RST = 0;
223     delay_1us();
224 
225     RTS_UP();//LCD_RST = 1;
226 
227     // 关闭LCD
228     CE_LOW();//LCD_CE = 0;
229     delay_1us();
230     // 使能LCD
231     CE_UP();//LCD_CE = 1;
232     delay_1us();
233 
234     LCD_write_byte(0x21, 0);    // 使用扩展命令设置LCD模式
235     LCD_write_byte(0xc8, 0);    // 设置偏置电压 5V(0xa7,0) 3.3V(0xc0,0);
236     LCD_write_byte(0x06, 0);    // 温度校正
237     LCD_write_byte(0x13, 0);    // 1:48
238     LCD_write_byte(0x20, 0);    // 使用基本命令
239     LCD_clear();            // 清屏
240     LCD_write_byte(0x0c, 0);    // 设定显示模式,正常显示
241 
242     // 关闭LCD
243     CE_LOW();//LCD_CE = 0;
244 }
245 
246 
247 /*-----------------------------------------------------------------------
248 LCD_write_english_String  : 英文字符串显示函数
249 
250 输入参数:*s      :英文字符串指针;
251 X、Y    : 显示字符串的位置,x 0-83 ,y 0-5
252 
253 编写日期          :2004-8-10 
254 最后修改日期      :2004-8-10         
255 -----------------------------------------------------------------------*/
256  
257  VOID LCD_write_english_string(unsigned char X,unsigned char Y,char *s)
258 {
259     LCD_set_XY(X,Y);
260     while (*s) 
261     {
262         LCD_write_char(*s);
263         s++;
264     }
265 }
266 
267 /*-----------------------------------------------------------------------
268 LCD_write_chinese_string: 在LCD上显示汉字
269 
270 输入参数:X、Y    :显示汉字的起始X、Y坐标;
271 ch_with :汉字点阵的宽度
272 num     :显示汉字的个数;  
273 line    :汉字点阵数组中的起始行数
274 row     :汉字显示的行间距
275 编写日期          :2004-8-11 
276 最后修改日期      :2004-8-12 
277 测试:
278 LCD_write_chi(0,0,12,7,0,0);
279 LCD_write_chi(0,2,12,7,0,0);
280 LCD_write_chi(0,4,12,7,0,0);    
281 -----------------------------------------------------------------------*/                        
282  VOID LCD_write_chinese_string(unsigned char X, unsigned char Y, 
283                                      unsigned char ch_with,unsigned char num,
284                                      unsigned char line,unsigned char row,unsigned char text[][32])
285 {
286     unsigned char i,n;
287 
288     LCD_set_XY(X,Y);                             //设置初始位置
289 
290     for (i=0;i<num;)
291     {
292         for (n=0; n<ch_with*2; n++)              //写一个汉字
293         { 
294             if (n==ch_with)                      //写汉字的下半部分
295             {
296                 if (i==0) LCD_set_XY(X,Y+1);
297                 else
298                     LCD_set_XY((X+(ch_with+row)*i),Y+1);
299             }
300             LCD_write_byte(text[line+i][n],1);
301         }
302         i++;
303         LCD_set_XY((X+(ch_with+row)*i),Y);
304     }
305 }
306 
307 
308 
309 
310 
311 
312 
313 
314 
315 
316 
317  /*-----------------------------------------------------------------------
318  LCD_draw_map      : 位图绘制函数
319 
320  输入参数:X、Y    :位图绘制的起始X、Y坐标;
321  *map    :位图点阵数据;
322  Pix_x   :位图像素(长)
323  Pix_y   :位图像素(宽)
324 
325  编写日期          :2004-8-13
326  最后修改日期      :2004-8-13 
327  -----------------------------------------------------------------------*/
328  void LCD_draw_bmp_pixel(unsigned char X,unsigned char Y,unsigned char *map,
329      unsigned char Pix_x,unsigned char Pix_y)
330  {
331      unsigned int i,n;
332      unsigned char row;
333 
334      if (Pix_y%8==0) row=Pix_y/8;      //计算位图所占行数
335      else
336          row=Pix_y/8+1;
337 
338      for (n=0;n<row;n++)
339      {
340          LCD_set_XY(X,Y);
341          for(i=0; i<Pix_x; i++)
342          {
343              LCD_write_byte(map[i+n*Pix_x], 1);
344          }
345          Y++;                         //换行
346      }      
347  }
348 
349 
350 
351 DWORD GIO_Init(LPCTSTR pContext, LPCVOID lpvBusContext)
352 {
353     RETAILMSG(1,(TEXT("GPIO INIT.....")));
354     if (!InitializeAddresses())
355     {
356         return (FALSE);
357     }
358     //v_pIOPregs= (volatile S3C6410_GPIO_REG *)DrvLib_MapIoSpace(S3C6410_BASE_REG_PA_GPIO, sizeof(S3C6410_GPIO_REG), FALSE);
359         
360     //////////////////////////////////////////////////////////////////////////
361     //设置GPC0-GPC4引脚为输出状态//
362     //////////////////////////////////////////////////////////////////////////
363     v_pIOPregs->GPCCON=(v_pIOPregs->GPCCON&~(15<<0))|(1<<0);//GPC0
364     v_pIOPregs->GPCCON=(v_pIOPregs->GPCCON&~(15<<4))|(1<<4);//GPC1
365     v_pIOPregs->GPCCON=(v_pIOPregs->GPCCON&~(15<<8))|(1<<8);//GPC2
366     v_pIOPregs->GPCCON=(v_pIOPregs->GPCCON&~(15<<12))|(1<<12);//GPC3
367     v_pIOPregs->GPCCON=(v_pIOPregs->GPCCON&~(15<<16))|(1<<16);//GPC4
368     LCD_init();
369     LCD_write_chinese_string(0,0,12,4,0,6,write_welcome);
370     LCD_write_chinese_string(0,2,12,5,4,6,write_welcome);
371     LCD_write_chinese_string(0,4,12,3,9,6,write_welcome);
372     
373     return 1;
374 
375 }
376 
377 
378 DWORD GIO_Open(DWORD dwData,DWORD dwAddress,DWORD dwShareMode)
379 {
380     RETAILMSG(1,(TEXT("*****GPIO:OPENSUCCESS\r\n")));
381     return 1;
382 }
383 
384 BOOL GIO_Close(DWORD dwData)
385 {
386     RETAILMSG(1,(TEXT("*****GPIO:CloseSUCCESS\r\n")));
387     return (TRUE);
388 }
389 DWORD GIO_Write(DWORD dwData,LPCVOID pBuf,DWORD Len)
390 {
391     return(1);
392 }
393 DWORD GIO_Read(DWORD dwData,LPVOID pBuf,DWORD Len)
394 {
395     RETAILMSG(1,(TEXT("*****GPIO:READSUCCESS\r\n")));
396     return(1);
397 }
398 BOOL GIO_Deinit(DWORD dwData)
399 {
400     if (v_pIOPregs)
401     {
402         VirtualFree((PVOID)v_pIOPregs,0,MEM_RELEASE);
403         v_pIOPregs=NULL;
404         RETAILMSG(1,(TEXT("*****GPIO:DeinitSUCCESS\r\n")));
405         
406     }
407     return(1);
408 }
409 
410 
411 
412 BOOL GIO_IOControl(DWORD Handle,
413                    DWORD dwIoControlCode,
414                    PBYTE pInBuf,
415                    DWORD nInBufSize,
416                    PBYTE pOutBuf,
417                    DWORD nOutBufSize,
418                    PDWORD pBytesReturned,
419                    LPOVERLAPPED lpOverlapped   )
420 {
421     switch(dwIoControlCode)
422     {
423     //case IOCTL_WRITE:
424     //        /*LCD_write_english_string(0,0,"zhoan.net");
425     //        LCD_write_chinese_string(12,1,12,4,0,6); 
426     //        LCD_write_english_string(12,3,"5xue"); */
427     //        LCD_write_chinese_string(0,0,12,4,0,6,write_welcome);
428     //        LCD_write_chinese_string(0,2,12,5,0,6,write_zhoan);
429     //        LCD_write_chinese_string(0,4,12,5,5,6,write_zhoan);
430             
431             //LCD_write_english_string(0,5,"QQ:1055590969"); 
432         //break;
433     case IOCTL_LCD_INIT:
434         LCD_init();
435         break;
436     case IOCTL_LCD_CLEAR:
437         LCD_clear();
438         break;
439     /*case IOCTL_DRAWPIC:
440         LCD_draw_bmp_pixel(0,0,BMP_logo,45,43);
441         break;*/    
442     case IOCTL_WRITE_SUCCESS:
443         LCD_write_chinese_string(0,0,12,4,11,0,Hzk);
444         break;
445     case IOCTL_WRITE_SUCCESS_NOREPEAT:
446         LCD_write_chinese_string(0,0,12,4,11,6,Hzk);
447         LCD_write_chinese_string(0,2,12,4,15,6,Hzk);
448         break;
449     case IOCTL_WRITE_FAIL_AGAIN:        
450         LCD_write_chinese_string(0,0,12,4,19,6,Hzk);
451         LCD_write_chinese_string(0,2,12,5,23,6,Hzk);
452         break;
453     case IOCTL_WRITE_CALCEL:
454         LCD_write_chinese_string(0,0,12,4,32,6,Hzk);
455         LCD_write_chinese_string(0,2,12,5,36,6,Hzk);
456         break;
457     case IOCTL_WRITE_SPECIAL:
458         LCD_write_chinese_string(0,0,12,4,41,6,Hzk);
459         LCD_write_chinese_string(0,2,12,4,45,6,Hzk);
460         break;
461     case IOCTL_WRITE_INIT_SYSTEM_SUCCESS:
462         /*LCD_write_chinese_string(0,0,12,3,0,6,Hzk);
463         LCD_write_chinese_string(0,2,12,5,3,6,Hzk);
464         LCD_write_chinese_string(0,4,12,3,8,6,Hzk);*/
465         LCD_draw_bmp_pixel(0,0,AVR_bmp,84,48);
466         break;
467     case IOCTL_WRITE_NOPERMISSION:
468         LCD_write_chinese_string(0,0,12,4,0,6,NOPERMISSION);
469         LCD_write_chinese_string(0,2,12,4,4,6,NOPERMISSION);
470         LCD_write_chinese_string(0,4,12,4,8,6,NOPERMISSION);
471         break;
472     }
473     return TRUE;  
474 }
GIO.cpp
基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发
 1 #ifndef GIO_H
 2 
 3 #define GIO_H
 4 #define IOCTL_LCD_CLEAR                        0x04001060//LCD清屏
 5 #define IOCTL_LCD_INIT                        0x04001061//LCD初始化
 6 #define IOCTL_WRITE_SUCCESS                    0x04001070//刷卡成功
 7 #define IOCTL_WRITE_INIT_SYSTEM_SUCCESS        0x04001071//系统初始化完成
 8 #define IOCTL_WRITE_SUCCESS_NOREPEAT        0x04001080//刷卡成功,请勿重复刷卡
 9 #define IOCTL_WRITE_FAIL_AGAIN                0x04001081//刷卡失败
10 #define IOCTL_WRITE_CALCEL                    0x04001090//卡已被注销
11 #define IOCTL_WRITE_SPECIAL                    0x04001091//处于特殊调度
12 #define IOCTL_WRITE_NOPERMISSION            0x04001092//禁止刷卡,请您联系调度中心
13 
14 #define S3C6410_BASE_REG_PA_GPIO            0x7F008000
15 #endif
GIO.h
基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发

基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发GIO.def

基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发
TARGETNAME=GIO
FILE_VIEW_ROOT_FOLDER=     ReadMe.txt 
FILE_VIEW_RESOURCE_FOLDER= 
FILE_VIEW_INCLUDES_FOLDER=     ENGLISH_6X8PIXEL.h     write_chinese_string_pixel.h     GIO.h     bmp_pixel.h 
SOURCES=     GIO.cpp 
RELEASETYPE=PLATFORM
TARGETLIBS=     $(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\coredll.lib 
TARGETTYPE=DYNLINK

DEFFILE=GIO.def

DLLENTRY=GIO_DllEntry
sources

一下为字模

基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发
  1  unsigned char write_welcome[][32]={
  2 
  3      //
  4      {0x40,0x42,0x42,0xFE,0x42,0x42,0x42,0xFE,0x42,0x42,0x40,0x00,0x00,0x08,0x06,0x01,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x00},
  5      //
  6      {0x88,0x68,0xFF,0x28,0x40,0xFE,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x00,0x0F,0x08,0x04,0x03,0x00,0x00,0x07,0x08,0x0E,0x00},
  7      //
  8      {0x00,0xFC,0x24,0x24,0xE4,0x04,0xFF,0x04,0x85,0x66,0x04,0x00,0x08,0x07,0x00,0x02,0x0B,0x04,0x02,0x01,0x02,0x04,0x0F,0x00},
  9      //
 10      {0x04,0x04,0xFC,0x04,0x04,0x08,0xFF,0x08,0x08,0x08,0xF8,0x00,0x02,0x02,0x01,0x09,0x05,0x03,0x00,0x00,0x08,0x08,0x07,0x00},
 11      //
 12      {0x00,0x02,0xE2,0x02,0x02,0xFE,0x42,0x42,0x42,0x42,0x00,0x00,0x08,0x08,0x0F,0x08,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x00},
 13      //
 14      {0x84,0x44,0xE4,0x1C,0x07,0x84,0x84,0xF4,0x84,0x84,0x04,0x00,0x00,0x00,0x0F,0x00,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,0x00},
 15      //
 16      {0x84,0x45,0xF6,0x4C,0xA0,0x02,0xFE,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x0F,0x00,0x08,0x06,0x01,0x00,0x08,0x08,0x07,0x00},
 17      //
 18      {0x88,0x78,0x0F,0xF8,0x00,0xD8,0x54,0x53,0x50,0xD8,0x30,0x00,0x08,0x05,0x02,0x0D,0x00,0x0F,0x04,0x04,0x04,0x0F,0x00,0x00},
 19      //
 20      {0x20,0x10,0xFC,0x03,0x00,0x80,0xFF,0x20,0x10,0x08,0x04,0x00,0x00,0x00,0x0F,0x00,0x01,0x00,0x07,0x08,0x08,0x08,0x0E,0x00},
 21      //
 22      {0x00,0x00,0xC0,0x20,0x20,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
 23      //
 24      {0x00,0x00,0xC0,0x20,0x20,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
 25      //
 26      {0x00,0x00,0xC0,0x20,0x20,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
 27     
 28 };
 29 
 30  unsigned char write_zhoan[][32]={
 31 
 32      // 33      //{0x00,0x00,0x00,0x00,0x1C,0x1A,0x00,0x1C,0x1A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
 34      //
 35      {0x00,0xF8,0xA8,0xA8,0xA8,0xAF,0xAA,0xAA,0xAA,0xFA,0x02,0x00,0x02,0x02,0x02,0x02,0x02,0x0F,0x02,0x02,0x02,0x02,0x02,0x00},
 36      //
 37      {0x2C,0x24,0xA4,0x64,0x3D,0x26,0x24,0x24,0xE4,0x24,0x2C,0x00,0x08,0x08,0x09,0x05,0x05,0x02,0x02,0x05,0x04,0x08,0x00,0x00},
 38      // 39      //{0x00,0x00,0x16,0x0E,0x00,0x16,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
 40      //
 41      {0x00,0x02,0x02,0x02,0x02,0xFE,0x02,0x02,0x02,0x02,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x00},
 42      //
 43      {0x12,0xD2,0xFE,0x51,0x80,0x2F,0x29,0xE9,0x29,0x2F,0x00,0x00,0x01,0x00,0x0F,0x00,0x08,0x09,0x09,0x0F,0x09,0x09,0x08,0x00},
 44      //
 45      {0x10,0x11,0xF2,0x00,0x10,0x92,0x52,0x32,0x12,0x92,0x10,0x00,0x08,0x04,0x03,0x04,0x09,0x09,0x09,0x09,0x09,0x09,0x0B,0x00},
 46      //
 47      {0x34,0x2C,0xF7,0xA4,0xE8,0xA4,0xEA,0x09,0xCA,0x04,0xE8,0x00,0x01,0x01,0x0F,0x00,0x0F,0x02,0x0F,0x00,0x03,0x08,0x0F,0x00},
 48      //
 49      {0x1C,0x0B,0xEA,0xAE,0xAA,0xAC,0xAB,0xAA,0xEE,0x0A,0x1A,0x00,0x00,0x00,0x0F,0x0A,0x0A,0x0A,0x0A,0x0A,0x0A,0x0E,0x00,0x00},
 50      //
 51      {0x22,0xFE,0x22,0x00,0x7F,0x49,0x49,0xFF,0x49,0x49,0x7F,0x00,0x04,0x07,0x02,0x08,0x09,0x09,0x09,0x0F,0x09,0x09,0x09,0x00},
 52      //
 53      {0x00,0x82,0x92,0xDA,0xD6,0xB2,0xB1,0x91,0x89,0xC1,0x80,0x00,0x08,0x04,0x02,0x00,0x08,0x0F,0x00,0x00,0x02,0x04,0x09,0x00},
 54      //
 55      {0x98,0xD4,0xB3,0x88,0x00,0x64,0xD4,0x4D,0xC6,0x54,0xE4,0x00,0x04,0x04,0x02,0x02,0x08,0x04,0x03,0x00,0x07,0x08,0x0C,0x00},
 56  };
 57 
 58  /**********************************************************************************************************/
 59  /*序号             文件                含义
 60 
 61      0         0.wav           您好,系统初始化已完成,可以使用了
 62 
 63      1         1.wav           刷卡成功
 64 
 65      2          2..wav           刷卡成功,请勿重刷
 66 
 67      3         3.wav           刷卡失败,请再刷一次
 68 
 69      4                4.wav             对不起,您的卡已被系统注销,无法使用*/
 70 
 71  /**********************************************************************************************************/
 72  unsigned char Hzk[][32]={
 73      //
 74      {0x10,0x08,0xFC,0x03,0x48,0x27,0x84,0xFC,0x04,0x24,0x4C,0x00,0x08,0x06,0x00,0x06,0x08,0x09,0x0A,0x08,0x0C,0x01,0x06,0x00},
 75      //
 76      {0x88,0x78,0x0F,0x88,0x78,0x42,0x42,0xF2,0x4A,0x46,0x40,0x00,0x08,0x05,0x02,0x05,0x08,0x00,0x08,0x0F,0x00,0x00,0x00,0x00},
 77      //
 78      {0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
 79      //
 80      {0x00,0x82,0x92,0xDA,0xD6,0xB2,0xB1,0x91,0x89,0xC1,0x80,0x00,0x08,0x04,0x02,0x00,0x08,0x0F,0x00,0x00,0x02,0x04,0x09,0x00},
 81      //
 82      {0x98,0xD4,0xB3,0x88,0x00,0x64,0xD4,0x4D,0xC6,0x54,0xE4,0x00,0x04,0x04,0x02,0x02,0x08,0x04,0x03,0x00,0x07,0x08,0x0C,0x00},
 83      //
 84      {0x84,0x45,0xF6,0x4C,0xA0,0x02,0xFE,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x0F,0x00,0x08,0x06,0x01,0x00,0x08,0x08,0x07,0x00},
 85      //
 86      {0x88,0x78,0x0F,0xF8,0x00,0xD8,0x54,0x53,0x50,0xD8,0x30,0x00,0x08,0x05,0x02,0x0D,0x00,0x0F,0x04,0x04,0x04,0x0F,0x00,0x00},
 87      //
 88      {0x20,0x10,0xFC,0x03,0x00,0x80,0xFF,0x20,0x10,0x08,0x04,0x00,0x00,0x00,0x0F,0x00,0x01,0x00,0x07,0x08,0x08,0x08,0x0E,0x00},
 89      //
 90      {0x00,0xF2,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x7E,0x00,0x00,0x00,0x07,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x0E,0x00},
 91      //
 92      {0x86,0x82,0x92,0x92,0x92,0x93,0x92,0x92,0x92,0x82,0x86,0x00,0x08,0x08,0x04,0x03,0x00,0x00,0x00,0x07,0x08,0x08,0x0C,0x00},
 93      //
 94      {0x00,0xFC,0x24,0x24,0xE4,0x04,0xFF,0x04,0x85,0x66,0x04,0x00,0x08,0x07,0x00,0x02,0x0B,0x04,0x02,0x01,0x02,0x04,0x0F,0x00},
 95      //
 96      {0x00,0xFF,0xC9,0x49,0xF9,0x49,0xCF,0x00,0xFC,0x00,0xFF,0x00,0x01,0x00,0x07,0x00,0x0F,0x04,0x07,0x00,0x01,0x08,0x0F,0x00},
 97      //
 98      {0x20,0x20,0x20,0x20,0xFF,0xA4,0xA4,0x24,0x24,0x24,0x20,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x01,0x01,0x02,0x00,0x00},
 99      //
100      {0x00,0xFC,0x24,0x24,0xE4,0x04,0xFF,0x04,0x85,0x66,0x04,0x00,0x08,0x07,0x00,0x02,0x0B,0x04,0x02,0x01,0x02,0x04,0x0F,0x00},
101      //
102      {0x04,0x04,0xFC,0x04,0x04,0x08,0xFF,0x08,0x08,0x08,0xF8,0x00,0x02,0x02,0x01,0x09,0x05,0x03,0x00,0x00,0x08,0x08,0x07,0x00},
103      //
104      {0x11,0xF2,0x00,0x22,0xEA,0xAA,0xBF,0xAA,0xAA,0xEA,0x22,0x00,0x00,0x0F,0x04,0x00,0x0F,0x02,0x02,0x02,0x0A,0x0F,0x00,0x00},
105      //
106      {0x20,0x18,0x87,0x64,0x1C,0x04,0x84,0x7C,0x04,0x04,0xFC,0x00,0x02,0x01,0x00,0x08,0x04,0x02,0x01,0x08,0x08,0x08,0x07,0x00},
107      //
108      {0x08,0xFA,0xAA,0xAA,0xAA,0xFE,0xA9,0xA9,0xA9,0xF9,0x08,0x00,0x08,0x0A,0x0A,0x0A,0x0A,0x0F,0x0A,0x0A,0x0A,0x0A,0x08,0x00},
109      //
110      {0x00,0xFF,0xC9,0x49,0xF9,0x49,0xCF,0x00,0xFC,0x00,0xFF,0x00,0x01,0x00,0x07,0x00,0x0F,0x04,0x07,0x00,0x01,0x08,0x0F,0x00},
111      //
112      {0x00,0xFF,0xC9,0x49,0xF9,0x49,0xCF,0x00,0xFC,0x00,0xFF,0x00,0x01,0x00,0x07,0x00,0x0F,0x04,0x07,0x00,0x01,0x08,0x0F,0x00},
113      //
114      {0x20,0x20,0x20,0x20,0xFF,0xA4,0xA4,0x24,0x24,0x24,0x20,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x01,0x01,0x02,0x00,0x00},
115      //
116      {0xA0,0x90,0x8E,0x88,0x88,0xFF,0x88,0x88,0x88,0x80,0x80,0x00,0x08,0x08,0x04,0x02,0x01,0x00,0x01,0x02,0x04,0x08,0x08,0x00},
117      //
118      {0xFE,0x02,0xFA,0x02,0xFE,0x10,0xEC,0x0B,0x08,0xF8,0x08,0x00,0x09,0x04,0x03,0x04,0x09,0x08,0x05,0x02,0x05,0x08,0x08,0x00},
119      //
120      {0x11,0xF2,0x00,0x22,0xEA,0xAA,0xBF,0xAA,0xAA,0xEA,0x22,0x00,0x00,0x0F,0x04,0x00,0x0F,0x02,0x02,0x02,0x0A,0x0F,0x00,0x00},
121      //
122      {0x01,0xFD,0x25,0x25,0x25,0xFF,0x25,0x25,0x25,0xFD,0x01,0x00,0x01,0x0F,0x01,0x01,0x01,0x01,0x01,0x09,0x09,0x0F,0x01,0x00},
123      //
124      {0x00,0xFF,0xC9,0x49,0xF9,0x49,0xCF,0x00,0xFC,0x00,0xFF,0x00,0x01,0x00,0x07,0x00,0x0F,0x04,0x07,0x00,0x01,0x08,0x0F,0x00},
125      //
126      {0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
127      //
128      {0x02,0x04,0x80,0x20,0x18,0x87,0x74,0x84,0x04,0x14,0x0C,0x00,0x02,0x01,0x08,0x04,0x02,0x01,0x00,0x01,0x02,0x04,0x08,0x00},
129      //
130      {0x24,0xC4,0x04,0xC4,0x3C,0x00,0x48,0x88,0x08,0xFF,0x08,0x00,0x08,0x06,0x01,0x02,0x0C,0x00,0x00,0x09,0x08,0x0F,0x00,0x00},
131      //
132      {0x02,0x02,0x82,0x42,0x22,0xF2,0x0E,0x22,0x42,0x82,0x02,0x00,0x01,0x01,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,0x01,0x00},
133      //
134      {0x20,0xA4,0x24,0xFF,0x24,0x00,0xF2,0x12,0x12,0x1E,0x80,0x00,0x08,0x07,0x04,0x0F,0x09,0x08,0x09,0x0A,0x0A,0x0A,0x0B,0x00},
135      //
136      {0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
137      //
138      {0x10,0x08,0xFC,0x03,0x48,0x27,0x84,0xFC,0x04,0x24,0x4C,0x00,0x08,0x06,0x00,0x06,0x08,0x09,0x0A,0x08,0x0C,0x01,0x06,0x00},
139      //
140      {0xFC,0x46,0x45,0x44,0xFC,0x10,0x08,0x27,0xC4,0x04,0xFC,0x00,0x0F,0x04,0x04,0x04,0x0F,0x00,0x00,0x00,0x08,0x08,0x07,0x00},
141      //
142      {0x20,0x20,0x20,0x20,0xFF,0xA4,0xA4,0x24,0x24,0x24,0x20,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x01,0x01,0x02,0x00,0x00},
143      //
144      {0x00,0xF2,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x7E,0x00,0x00,0x00,0x07,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x0E,0x00},
145      //
146      {0x84,0x45,0xF6,0xAC,0x00,0xFC,0x24,0xE4,0x3F,0xE4,0x0C,0x00,0x00,0x00,0x0F,0x08,0x04,0x03,0x08,0x05,0x02,0x05,0x08,0x00},
147      //
148      {0x00,0x82,0x92,0xDA,0xD6,0xB2,0xB1,0x91,0x89,0xC1,0x80,0x00,0x08,0x04,0x02,0x00,0x08,0x0F,0x00,0x00,0x02,0x04,0x09,0x00},
149      //
150      {0x98,0xD4,0xB3,0x88,0x00,0x64,0xD4,0x4D,0xC6,0x54,0xE4,0x00,0x04,0x04,0x02,0x02,0x08,0x04,0x03,0x00,0x07,0x08,0x0C,0x00},
151      //
152      {0x22,0x44,0x00,0x88,0x88,0x89,0xFA,0x88,0x88,0x88,0x00,0x00,0x04,0x02,0x08,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,0x08,0x00},
153      //
154      {0x94,0xF3,0x92,0x00,0xF2,0x54,0x50,0x5F,0x50,0x54,0xF2,0x00,0x00,0x0F,0x04,0x00,0x0F,0x01,0x01,0x01,0x01,0x09,0x0F,0x00},
155      //
156      {0x20,0x10,0xFC,0x03,0x10,0xCF,0x04,0xF4,0x04,0x54,0x8C,0x00,0x00,0x00,0x0F,0x00,0x02,0x01,0x08,0x0F,0x00,0x00,0x03,0x00},
157      //
158      {0x00,0x02,0xE2,0x02,0x02,0xFE,0x42,0x42,0x42,0x42,0x00,0x00,0x08,0x08,0x0F,0x08,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x00},
159      //
160      {0x40,0x30,0xCF,0x04,0xC4,0x3C,0x00,0xFF,0x08,0x10,0x60,0x00,0x08,0x04,0x02,0x01,0x02,0x04,0x08,0x0B,0x08,0x08,0x08,0x00},
161      //
162      {0x20,0x21,0x21,0x21,0x21,0xFF,0x21,0x21,0x21,0x21,0x20,0x00,0x00,0x00,0x00,0x08,0x08,0x0F,0x00,0x00,0x00,0x00,0x00,0x00},
163      //
164      {0x9C,0x88,0xFF,0x48,0x10,0x54,0x54,0x5F,0xF4,0x54,0x50,0x00,0x00,0x00,0x0F,0x00,0x00,0x01,0x0A,0x08,0x0F,0x00,0x00,0x00},
165      //
166      {0x82,0x7E,0x92,0xF2,0x28,0x26,0xA4,0xFF,0xA4,0x24,0x20,0x00,0x08,0x04,0x02,0x01,0x02,0x01,0x00,0x0F,0x00,0x01,0x02,0x00},
167      //
168      {0x11,0xF2,0x00,0x00,0xFF,0x21,0xA9,0xBD,0xA9,0x21,0xFF,0x00,0x00,0x07,0x02,0x08,0x07,0x00,0x03,0x02,0x0B,0x08,0x0F,0x00},
169      //
170      {0x00,0xFE,0x0A,0x8A,0xBE,0xAA,0xAB,0xAA,0xBE,0x8A,0x0A,0x00,0x08,0x07,0x00,0x08,0x09,0x0A,0x04,0x04,0x0A,0x09,0x08,0x00},
171  };
172 
173 unsigned char NOPERMISSION[][32]={
174      //
175      {0x12,0x4A,0x7F,0x4A,0x52,0x40,0x52,0x4A,0x7F,0x4A,0x12,0x00,0x01,0x09,0x05,0x01,0x09,0x0F,0x01,0x01,0x05,0x09,0x01,0x00},
176      //
177      {0x00,0x00,0xF8,0x00,0x00,0x00,0xFF,0x10,0x10,0x10,0x00,0x00,0x08,0x08,0x0F,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,0x08,0x00},
178      //
179      {0x00,0xFF,0xC9,0x49,0xF9,0x49,0xCF,0x00,0xFC,0x00,0xFF,0x00,0x01,0x00,0x07,0x00,0x0F,0x04,0x07,0x00,0x01,0x08,0x0F,0x00},
180      //
181      {0x20,0x20,0x20,0x20,0xFF,0xA4,0xA4,0x24,0x24,0x24,0x20,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x01,0x01,0x02,0x00,0x00},
182      //
183      {0x11,0xF2,0x00,0x22,0xEA,0xAA,0xBF,0xAA,0xAA,0xEA,0x22,0x00,0x00,0x0F,0x04,0x00,0x0F,0x02,0x02,0x02,0x0A,0x0F,0x00,0x00},
184      //
185      {0x10,0x08,0xFC,0x03,0x48,0x27,0x84,0xFC,0x04,0x24,0x4C,0x00,0x08,0x06,0x00,0x06,0x08,0x09,0x0A,0x08,0x0C,0x01,0x06,0x00},
186      //
187      {0x02,0xFE,0x52,0xFE,0x42,0x49,0x4A,0xF8,0x4A,0x49,0x40,0x00,0x02,0x03,0x02,0x0F,0x09,0x04,0x03,0x00,0x03,0x04,0x08,0x00},
188      //
189      {0x00,0x82,0x92,0xDA,0xD6,0xB2,0xB1,0x91,0x89,0xC1,0x80,0x00,0x08,0x04,0x02,0x00,0x08,0x0F,0x00,0x00,0x02,0x04,0x09,0x00},
190      //
191      {0x11,0xF2,0x00,0x00,0xFF,0x21,0xA9,0xBD,0xA9,0x21,0xFF,0x00,0x00,0x07,0x02,0x08,0x07,0x00,0x03,0x02,0x0B,0x08,0x0F,0x00},
192      //
193      {0x00,0xFE,0x0A,0x8A,0xBE,0xAA,0xAB,0xAA,0xBE,0x8A,0x0A,0x00,0x08,0x07,0x00,0x08,0x09,0x0A,0x04,0x04,0x0A,0x09,0x08,0x00},
194      //
195      {0x00,0xF8,0x88,0x88,0x88,0xFF,0x88,0x88,0x88,0xF8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x01,0x00,0x00},
196      //
197      {0x00,0xC0,0x00,0xF0,0x02,0x04,0x18,0x00,0x00,0x20,0xC0,0x00,0x02,0x01,0x00,0x07,0x08,0x08,0x08,0x08,0x0E,0x00,0x01,0x00},
198  };
write_chinese_string_pixel.h
基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发
基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发
 1 // 6 x 8 font
 2 // 1 pixel space at left and bottom
 3 // index = ASCII - 32
 4 unsigned char font6x8[][6] =
 5 {
 6     { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },   // sp
 7     { 0x00, 0x00, 0x00, 0x2f, 0x00, 0x00 },   // !
 8     { 0x00, 0x00, 0x07, 0x00, 0x07, 0x00 },   // "
 9     { 0x00, 0x14, 0x7f, 0x14, 0x7f, 0x14 },   // #
10     { 0x00, 0x24, 0x2a, 0x7f, 0x2a, 0x12 },   // $
11     { 0x00, 0x62, 0x64, 0x08, 0x13, 0x23 },   // %
12     { 0x00, 0x36, 0x49, 0x55, 0x22, 0x50 },   // &
13     { 0x00, 0x00, 0x05, 0x03, 0x00, 0x00 },   //
14     { 0x00, 0x00, 0x1c, 0x22, 0x41, 0x00 },   // (
15     { 0x00, 0x00, 0x41, 0x22, 0x1c, 0x00 },   // )
16     { 0x00, 0x14, 0x08, 0x3E, 0x08, 0x14 },   // *
17     { 0x00, 0x08, 0x08, 0x3E, 0x08, 0x08 },   // +
18     { 0x00, 0x00, 0x00, 0xA0, 0x60, 0x00 },   // ,
19     { 0x00, 0x08, 0x08, 0x08, 0x08, 0x08 },   // -
20     { 0x00, 0x00, 0x60, 0x60, 0x00, 0x00 },   // .
21     { 0x00, 0x20, 0x10, 0x08, 0x04, 0x02 },   // /
22     { 0x00, 0x3E, 0x51, 0x49, 0x45, 0x3E },   // 0
23     { 0x00, 0x00, 0x42, 0x7F, 0x40, 0x00 },   // 1
24     { 0x00, 0x42, 0x61, 0x51, 0x49, 0x46 },   // 2
25     { 0x00, 0x21, 0x41, 0x45, 0x4B, 0x31 },   // 3
26     { 0x00, 0x18, 0x14, 0x12, 0x7F, 0x10 },   // 4
27     { 0x00, 0x27, 0x45, 0x45, 0x45, 0x39 },   // 5
28     { 0x00, 0x3C, 0x4A, 0x49, 0x49, 0x30 },   // 6
29     { 0x00, 0x01, 0x71, 0x09, 0x05, 0x03 },   // 7
30     { 0x00, 0x36, 0x49, 0x49, 0x49, 0x36 },   // 8
31     { 0x00, 0x06, 0x49, 0x49, 0x29, 0x1E },   // 9
32     { 0x00, 0x00, 0x36, 0x36, 0x00, 0x00 },   // :
33     { 0x00, 0x00, 0x56, 0x36, 0x00, 0x00 },   // ;
34     { 0x00, 0x08, 0x14, 0x22, 0x41, 0x00 },   // <
35     { 0x00, 0x14, 0x14, 0x14, 0x14, 0x14 },   // =
36     { 0x00, 0x00, 0x41, 0x22, 0x14, 0x08 },   // >
37     { 0x00, 0x02, 0x01, 0x51, 0x09, 0x06 },   // ?
38     { 0x00, 0x32, 0x49, 0x59, 0x51, 0x3E },   // @
39     { 0x00, 0x7C, 0x12, 0x11, 0x12, 0x7C },   // A
40     { 0x00, 0x7F, 0x49, 0x49, 0x49, 0x36 },   // B
41     { 0x00, 0x3E, 0x41, 0x41, 0x41, 0x22 },   // C
42     { 0x00, 0x7F, 0x41, 0x41, 0x22, 0x1C },   // D
43     { 0x00, 0x7F, 0x49, 0x49, 0x49, 0x41 },   // E
44     { 0x00, 0x7F, 0x09, 0x09, 0x09, 0x01 },   // F
45     { 0x00, 0x3E, 0x41, 0x49, 0x49, 0x7A },   // G
46     { 0x00, 0x7F, 0x08, 0x08, 0x08, 0x7F },   // H
47     { 0x00, 0x00, 0x41, 0x7F, 0x41, 0x00 },   // I
48     { 0x00, 0x20, 0x40, 0x41, 0x3F, 0x01 },   // J
49     { 0x00, 0x7F, 0x08, 0x14, 0x22, 0x41 },   // K
50     { 0x00, 0x7F, 0x40, 0x40, 0x40, 0x40 },   // L
51     { 0x00, 0x7F, 0x02, 0x0C, 0x02, 0x7F },   // M
52     { 0x00, 0x7F, 0x04, 0x08, 0x10, 0x7F },   // N
53     { 0x00, 0x3E, 0x41, 0x41, 0x41, 0x3E },   // O
54     { 0x00, 0x7F, 0x09, 0x09, 0x09, 0x06 },   // P
55     { 0x00, 0x3E, 0x41, 0x51, 0x21, 0x5E },   // Q
56     { 0x00, 0x7F, 0x09, 0x19, 0x29, 0x46 },   // R
57     { 0x00, 0x46, 0x49, 0x49, 0x49, 0x31 },   // S
58     { 0x00, 0x01, 0x01, 0x7F, 0x01, 0x01 },   // T
59     { 0x00, 0x3F, 0x40, 0x40, 0x40, 0x3F },   // U
60     { 0x00, 0x1F, 0x20, 0x40, 0x20, 0x1F },   // V
61     { 0x00, 0x3F, 0x40, 0x38, 0x40, 0x3F },   // W
62     { 0x00, 0x63, 0x14, 0x08, 0x14, 0x63 },   // X
63     { 0x00, 0x07, 0x08, 0x70, 0x08, 0x07 },   // Y
64     { 0x00, 0x61, 0x51, 0x49, 0x45, 0x43 },   // Z
65     { 0x00, 0x00, 0x7F, 0x41, 0x41, 0x00 },   // [
66     { 0x00, 0x55, 0x2A, 0x55, 0x2A, 0x55 },   // 55
67     { 0x00, 0x00, 0x41, 0x41, 0x7F, 0x00 },   // ]
68     { 0x00, 0x04, 0x02, 0x01, 0x02, 0x04 },   // ^
69     { 0x00, 0x40, 0x40, 0x40, 0x40, 0x40 },   // _
70     { 0x00, 0x00, 0x01, 0x02, 0x04, 0x00 },   //
71     { 0x00, 0x20, 0x54, 0x54, 0x54, 0x78 },   // a
72     { 0x00, 0x7F, 0x48, 0x44, 0x44, 0x38 },   // b
73     { 0x00, 0x38, 0x44, 0x44, 0x44, 0x20 },   // c
74     { 0x00, 0x38, 0x44, 0x44, 0x48, 0x7F },   // d
75     { 0x00, 0x38, 0x54, 0x54, 0x54, 0x18 },   // e
76     { 0x00, 0x08, 0x7E, 0x09, 0x01, 0x02 },   // f
77     { 0x00, 0x18, 0xA4, 0xA4, 0xA4, 0x7C },   // g
78     { 0x00, 0x7F, 0x08, 0x04, 0x04, 0x78 },   // h
79     { 0x00, 0x00, 0x44, 0x7D, 0x40, 0x00 },   // i
80     { 0x00, 0x40, 0x80, 0x84, 0x7D, 0x00 },   // j
81     { 0x00, 0x7F, 0x10, 0x28, 0x44, 0x00 },   // k
82     { 0x00, 0x00, 0x41, 0x7F, 0x40, 0x00 },   // l
83     { 0x00, 0x7C, 0x04, 0x18, 0x04, 0x78 },   // m
84     { 0x00, 0x7C, 0x08, 0x04, 0x04, 0x78 },   // n
85     { 0x00, 0x38, 0x44, 0x44, 0x44, 0x38 },   // o
86     { 0x00, 0xFC, 0x24, 0x24, 0x24, 0x18 },   // p
87     { 0x00, 0x18, 0x24, 0x24, 0x18, 0xFC },   // q
88     { 0x00, 0x7C, 0x08, 0x04, 0x04, 0x08 },   // r
89     { 0x00, 0x48, 0x54, 0x54, 0x54, 0x20 },   // s
90     { 0x00, 0x04, 0x3F, 0x44, 0x40, 0x20 },   // t
91     { 0x00, 0x3C, 0x40, 0x40, 0x20, 0x7C },   // u
92     { 0x00, 0x1C, 0x20, 0x40, 0x20, 0x1C },   // v
93     { 0x00, 0x3C, 0x40, 0x30, 0x40, 0x3C },   // w
94     { 0x00, 0x44, 0x28, 0x10, 0x28, 0x44 },   // x
95     { 0x00, 0x1C, 0xA0, 0xA0, 0xA0, 0x7C },   // y
96     { 0x00, 0x44, 0x64, 0x54, 0x4C, 0x44 },   // z
97     { 0x14, 0x14, 0x14, 0x14, 0x14, 0x14 }    // horiz lines
98 };
ENGLISH_6X8PIXEL.h
基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发
/*------------------------------------------------------------------------------
;  源文件 / 文字 : AVR
;  宽×高(像素): 84x48
;  字模格式/大小 : 单色点阵液晶字模,纵向取模,字节倒序/120字节
;  数据转换日期  : 2014-1-15
------------------------------------------------------------------------------*/ 
 unsigned char AVR_bmp[]=


{
    /*--  调入了一幅图像:C:\Users\acer\Desktop\无标题.bmp  --*/
    /*--  宽度x高度=84x48  --*/
    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,0xC0,0xE0,0xF0,0xF8,0xFC,0xFC,0xFE,0xFE,0xFF,0xFF,
    0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFE,0xFC,0xFC,0xF8,0xF0,0xE0,0xC0,
    0x00,0x00,0x00,0x00,0x00,0xF0,0x90,0x90,0x94,0x98,0x90,0x90,0x90,0xF0,0x00,0x40,
    0x48,0xC8,0x48,0x40,0x00,0x20,0xFC,0x20,0x20,0xE0,0x00,0x18,0x08,0x48,0x48,0x48,
    0x4C,0x48,0x48,0x48,0x08,0x18,0x00,0x00,0xF0,0x90,0x90,0x90,0x10,0xFC,0x10,0x14,
    0x98,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFF,0x7F,0x7F,0xBF,0xFF,0xDF,0xEF,
    0xEF,0xFF,0xB7,0xF7,0xF7,0xF7,0xF7,0x37,0x4F,0x7F,0xBF,0xBF,0xBF,0xDF,0xDF,0xDF,
    0xDF,0xDF,0xDF,0xDF,0xDF,0xFC,0x00,0x20,0x18,0x07,0x3E,0x12,0x12,0x12,0x12,0x12,
    0x12,0x3E,0x00,0x0C,0x0B,0x08,0x0A,0x0C,0x20,0x18,0x07,0x20,0x20,0x1F,0x00,0x22,
    0x22,0x12,0x0E,0x02,0x02,0x02,0x1E,0x22,0x22,0x32,0x00,0x20,0x1F,0x00,0x08,0x2F,
    0x10,0x0B,0x04,0x0A,0x11,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x3E,0x7F,0xFF,
    0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0x7F,0x3B,0xBD,0x9E,0x9E,0xCF,0xCF,0xE7,0xE7,
    0xF3,0xF3,0xF1,0xF1,0xF1,0xF1,0xE1,0x61,0x01,0x01,0x00,0x00,0x22,0xE4,0x00,0x44,
    0xD4,0x54,0x7E,0x54,0x54,0xD4,0x44,0x00,0x40,0x20,0xF8,0x06,0xE8,0xA8,0xA8,0xFE,
    0xA8,0xA8,0xE8,0x00,0x00,0xFC,0x24,0x24,0x24,0xFC,0x24,0x24,0x24,0xFC,0x00,0x80,
    0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x01,0x03,0x03,0x0D,0x0D,0x1C,0x0E,0x2E,0x3F,0x37,0x37,0x3B,0x3B,
    0x3B,0x39,0x39,0x19,0x19,0x19,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
    0x00,0x1F,0x08,0x00,0x1F,0x05,0x05,0x05,0x15,0x1F,0x00,0x00,0x00,0x00,0x1F,0x00,
    0x11,0x0A,0x04,0x0B,0x08,0x10,0x10,0x00,0x10,0x0F,0x01,0x01,0x01,0x0F,0x01,0x11,
    0x11,0x1F,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,


};
 unsigned char BMP_logo[]=
 {
     0x0D,0x1D,0x1D,0x1D,0x1D,0x1D,0x5D,0xFD,0xDD,0xFD,0xF5,0xF7,0xF9,0xF9,0xFD,0xFD,
     0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFD,0xFD,
     0xFF,0xF9,0xF5,0xE5,0xFD,0xDD,0xFD,0x1D,0x1D,0x1D,0x1D,0x1D,0x0D,0x00,0x00,0x04,
     0xEF,0xFB,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0xFF,0xBF,0xFF,0xFF,0xDF,0xDF,0xDF,0xFF,
     0xEF,0xEF,0xEF,0xFF,0xEF,0xFF,0xEF,0xFF,0xBF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
     0xFF,0xFF,0xFF,0xFF,0xFF,0xFD,0xF3,0xDF,0x00,0x00,0x00,0x3F,0xFF,0xFB,0x7D,0x7F,
     0xBF,0xDE,0xDE,0xEF,0xFF,0xF7,0xFF,0xFB,0xFD,0xFD,0xFD,0xFF,0xDE,0xFE,0xFE,0x7E,
     0xBF,0xFF,0x7B,0xFF,0xBF,0xFF,0xDF,0xDF,0xEF,0xEB,0xEB,0xF3,0xF7,0xF7,0xF3,0xF3,
     0xF3,0xF7,0xF7,0xF7,0xFF,0xFE,0x07,0x00,0x1B,0x03,0x9E,0x7F,0xFF,0xFF,0xFF,0xFF,
     0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF7,0xFB,0xFD,0x7C,0xBF,0xBE,0x5F,0x7F,
     0xAF,0xBF,0xA7,0xFF,0xDB,0xDB,0xDD,0xED,0xEF,0xEF,0xE0,0xE0,0xE8,0xE8,0xE0,0xD0,
     0x70,0xB0,0x00,0x00,0x00,0x00,0x0D,0x0F,0x0E,0x1D,0x0B,0x2F,0x0F,0x2F,0x2F,0x67,
     0xE7,0xF7,0xF3,0xF7,0x79,0x7B,0x7E,0x3D,0xBF,0x9E,0xDE,0xDF,0xCF,0xCF,0xCF,0xDF,
     0xD7,0xD7,0xB7,0xB7,0xF7,0x57,0xA7,0x07,0x0F,0x0F,0x07,0x1B,0x0D,0x0F,0x03,0x00,
     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
     0x02,0x04,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x05,0x05,
     0x06,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00

 };
bmp_pixel.h

 

基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发

 

基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发

基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发,布布扣,bubuko.com

基础wince6.0的飞凌嵌入式ok6410下 5110LCD GPIO驱动开发

上一篇:项目特质与设计开发流程的策略选择


下一篇:maya粒子动力学——在泥地表面创建脚印实例教程