你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

【经验分享】stm32库开发实战读书笔记(四)

[复制链接]
STMCU小助手 发布时间:2021-11-13 22:00
前言
通过前面的学习,我们已经了解学习到如下知识

I/O口的输入/输出基本配置,如led点亮,按钮的读取
模拟量的读取以及pwm脉冲的产生
中断的产生与配置
下面是自己做的一个小实训,包括oled显示,按键控制舵机等基本外设操作,逻辑层较为简单。演示如下





20201111104841555.gif




主函数
主函数解读
本代码是按照正点原子的逻辑去实现的,包括一些系统配置以及hardware操作。

读取电压值
OLED 显示
按键读取
pwm驱动舵机
引脚配置示意
主函数的实现
  1. #include "delay.h"
  2. #include "sys.h"
  3. #include "oled.h"
  4. #include "bmp.h"
  5. #include "led.h"
  6. #include "key.h"
  7. #include "adc.h"
  8. #include "usart.h"
  9. #include "pwm.h"
  10. /**
  11.   * @brief
  12.         * 读取外置电压值的值,
  13.         * OLED 显示
  14.         * 舵机控制
  15.   * @param None
  16.   * @retval None
  17.   * @note_time 2020-11-19 小刘同学
  18. **/

  19. /*   
  20.         //模数转换
  21.         PA2 ------->  ADC转换口
  22.         //oled显示
  23.         PA5 -------> SCL
  24.         PA7 -------> SDA
  25.         //pwm,舵机设置
  26.         PB8 -------> PWM输出口
  27.         TIM_SetCompare3(TIM4,x);
  28.         25  -------> 180度
  29.         20  -------> 135度
  30.         15  -------> 90度
  31.         10  -------> 45度
  32.         5  ------->  0度
  33. */
  34. int main(void)
  35. {
  36. /*-----------变量设置------------*/
  37.         u16 adcx;
  38.         float temp ;
  39.         u8 key_value;
  40.         u16 pwm_value = 5;
  41. /*----------初始化设置----------------*/        
  42.         LED_Init();
  43.         delay_init();
  44.         OLED_Init();
  45.         KEY_Init();
  46.         Adc_Init();
  47.         TIM4_Pwm_Init(200-1,7200-1);
  48.         
  49.         uart_init(9600);                 //串口初始化为9600

  50. //        OLED_ColorTurn(0);//0正常显示,1 反色显示
  51. //  OLED_DisplayTurn(0);//0正常显示 1 屏幕翻转显示
  52.         /*--------------OLED默认样式--------------*/
  53.         OLED_ShowPicture(0,0,64,64,BMP7,1);
  54.         OLED_ShowString(64,32,"LED_STATE",16,1);//6*8 “LED”
  55.         OLED_ShowString(64,0,"VOL",16,1);
  56.         OLED_ShowString(64,16,"0.000V",16,0);
  57.         OLED_Refresh();
  58.         TIM_SetCompare3(TIM4,5);
  59.         while(1)
  60.         {   
  61.                 /*--------------模数转换部分-----------*/
  62.                 adcx=Get_Adc_Average(ADC_Channel_2,10);
  63.                 temp=(float)adcx*(3.3/4096);  //完整电压结果
  64.                 adcx=temp;  //个位
  65.                 temp = temp - adcx;
  66.                 temp =temp *1000; //小数位
  67. //                printf("hello:%5.2f\n",temp);
  68. //                delay_ms(500);
  69.                 /*--------------按键操作部分-----------*/
  70.                 key_value = KEY_Scan(0);
  71.                 //on按钮
  72.                 if(key_value == 1){
  73.                         LED0=0;
  74.                         OLED_ShowPicture(0,0,64,64,BMP7,1);
  75.                         OLED_ShowString(64,32,"LED_STATE",16,1);//6*8 “LED”
  76.                         OLED_ShowString(64,48,"ON ",16,0);
  77.                         OLED_ShowString(64,0,"VOL",16,1);
  78.                         OLED_ShowNum(64,16,adcx,1,16,0);
  79.                         OLED_ShowNum(80,16,temp,3,16,0);
  80.                         OLED_ShowString(144,16,"V",16,0);
  81.                         OLED_Refresh();
  82.                         TIM_SetCompare3(TIM4,15);
  83.                         
  84.                 }
  85.                 //off按钮
  86.                 if(key_value == 2){
  87.                         LED0=1;
  88.                         OLED_ShowString(64,0,"VOL",16,1);
  89.                         OLED_ShowString(64,16,"0.000V",16,0);
  90.                         OLED_ShowString(64,48,"OFF",16,0);
  91.                         OLED_Refresh();
  92.                         TIM_SetCompare3(TIM4,25);
  93.                 }

  94. }
  95. }
复制代码

OLED
OLED配置
可以参考STM32F103 OLED显示实验,了解具体的oled实现机理。
由于所写驱动不同,扫描方式不同!!!所以在用PCtoLCD2002bmp转数组的配置也不一样。

汉字配置
PCtoLCD2002软件配置如下:
建议将输出选项勾上
20201111104919425.png



20201111104930823.png



关键代码
  1. OLED_ShowPicture(0,0,16,48,BMP5,1);
  2. unsigned char BMP5[] =
  3. {0x00,0xFC,0x04,0x04,0xFC,0x20,0x50,0x48,0x44,0x43,0x44,0x48,0x50,0x20,0x20,0x00,
  4. 0x00,0x0F,0x04,0x04,0x0F,0x00,0xFE,0x42,0x42,0x42,0x42,0x42,0xFE,0x00,0x00,0x00,/*"哈",0*/

  5. 0x00,0xFC,0x04,0x04,0xFC,0x20,0x50,0x48,0x44,0x43,0x44,0x48,0x50,0x20,0x20,0x00,
  6. 0x00,0x0F,0x04,0x04,0x0F,0x00,0xFE,0x42,0x42,0x42,0x42,0x42,0xFE,0x00,0x00,0x00,/*"哈",1*/

  7. 0x00,0xFC,0x04,0x04,0xFC,0x20,0x50,0x48,0x44,0x43,0x44,0x48,0x50,0x20,0x20,0x00,
  8. 0x00,0x0F,0x04,0x04,0x0F,0x00,0xFE,0x42,0x42,0x42,0x42,0x42,0xFE,0x00,0x00,0x00,};/*"哈",2*/
复制代码

图片配置
使用Image2Lcd 2.9将图片转为BMP格式
20201111104942839.png


20201111104954949.png



关键代码
  1. OLED_ShowPicture(0,0,64,64,BMP5,1);
  2. unsigned char BMP5[] =
  3. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,
  4. 0x00,0x00,0x40,0x00,0x10,0x90,0x30,0x40,0x50,0xD0,0xA0,0x40,0x00,0x00,0x00,0x00,
  5. 0x00,0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x00,0xFF,0xFF,0xFF,0x00,0x03,0xFF,0xFF,
  6. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x82,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  7. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0x20,0x80,0x10,0x00,
  8. 0x08,0x08,0x80,0x06,0x63,0x22,0x21,0xC1,0x00,0x00,0x80,0x00,0x00,0x80,0x00,0x00,
  9. 0x00,0x00,0x04,0x02,0x21,0x21,0x00,0x00,0x05,0x07,0x27,0x0F,0x80,0x00,0xFF,0xFF,
  10. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  11. 0x00,0x00,0x00,0x0F,0x3F,0x7E,0x7E,0xFC,0xF8,0xF8,0xF0,0xE0,0xE0,0xC0,0x80,0x80,
  12. 0x0D,0x11,0x14,0x07,0x21,0x00,0x4E,0x5C,0x02,0x38,0x80,0x20,0x10,0x09,0x00,0x00,
  13. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x38,0xFF,0xFF,
  14. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  15. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x1F,0x83,0x07,0x07,0x0F,0x0F,0x1F,
  16. 0x3F,0x3E,0x72,0x80,0x42,0x42,0x02,0x22,0x20,0x21,0x0F,0x10,0x00,0x00,0x00,0x00,
  17. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x3F,
  18. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  19. 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x81,0x88,0xC0,0x00,0x00,0x00,
  20. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  21. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  22. 0x01,0x03,0x0F,0x1F,0x3F,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  23. 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x21,0x24,0x30,
  24. 0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  25. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,
  26. 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x0F,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  27. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  28. 0x00,0x80,0x80,0x04,0x08,0x00,0x40,0x80,0xB8,0x00,0x00,0x00,0x00,0x00,0x00,0x40,
  29. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  30. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x0F,0x08,0x54,0x30,0x0C,0x00,0x00,
  31. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  32. 0x00,0x0F,0x1F,0x0F,0x07,0x03,0x07,0x07,0x07,0x0E,0x7C,0x7C,0x7C,0x1C,0x06,0x00,
  33. 0x08,0x00,0x30,0x78,0x78,0x7C,0x7C,0x7A,0x61,0x40,0x40,0x00,0x00,0x00,0x20,0x20,
  34. 0x00,0x10,0x00,0x08,0x00,0x04,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*"C:\Users\28681\Pictures\liu.bmp",0*/
  35. /* (64 X 64 )*/
复制代码

OLED驱动
.c实现
  1. #include "oled.h"
  2. #include "stdlib.h"
  3. #include "oledfont.h"           
  4. #include "delay.h"

  5. u8 OLED_GRAM[144][8];


  6. /**
  7.   * @brief 反显函数
  8.   * @param None
  9.   * @retval None
  10.   * @note_time 2020-11-19 小刘同学
  11. **/

  12. void OLED_ColorTurn(u8 i)
  13. {
  14.         if(i==0)
  15.                 {
  16.                         OLED_WR_Byte(0xA6,OLED_CMD);//正常显示
  17.                 }
  18.         if(i==1)
  19.                 {
  20.                         OLED_WR_Byte(0xA7,OLED_CMD);//反色显示
  21.                 }
  22. }

  23. /**
  24.   * @brief 屏幕旋转180度
  25.   * @param
  26.                 @arg 0 正常显示
  27.                 @arg 1 反转显示
  28.   * @retval None
  29.   * @note_time 2020-11-19 小刘同学
  30. **/
  31. void OLED_DisplayTurn(u8 i)
  32. {
  33.         if(i==0)
  34.                 {
  35.                         OLED_WR_Byte(0xC8,OLED_CMD);//正常显示
  36.                         OLED_WR_Byte(0xA1,OLED_CMD);
  37.                 }
  38.         if(i==1)
  39.                 {
  40.                         OLED_WR_Byte(0xC0,OLED_CMD);//反转显示
  41.                         OLED_WR_Byte(0xA0,OLED_CMD);
  42.                 }
  43. }

  44. /**
  45.   * @brief 延时
  46.   * @param None
  47.   * @retval None
  48.   * @note_time 2020-11-19 小刘同学
  49. **/
  50. void IIC_delay(void)
  51. {
  52.         u8 t=3;
  53.         while(t--);
  54. }


  55. /**
  56.   * @brief 起始信号
  57.   * @param None
  58.   * @retval None
  59.   * @note_time 2020-11-19 小刘同学
  60. **/
  61. void I2C_Start(void)
  62. {
  63.         OLED_SDA_Set();
  64.         OLED_SCL_Set();
  65.         IIC_delay();
  66.         OLED_SDA_Clr();
  67.         IIC_delay();
  68.         OLED_SCL_Clr();
  69.         IIC_delay();
  70. }


  71. /**
  72.   * @brief 结束信号
  73.   * @param None
  74.   * @retval None
  75.   * @note_time 2020-11-19 小刘同学
  76. **/
  77. void I2C_Stop(void)
  78. {
  79.         OLED_SDA_Clr();
  80.         OLED_SCL_Set();
  81.         IIC_delay();
  82.         OLED_SDA_Set();
  83. }


  84. /**
  85.   * @brief 等待信号响应
  86.   * @param None
  87.   * @retval None
  88.   * @note_time 2020-11-19 小刘同学
  89. **/
  90. void I2C_WaitAck(void) //测数据信号的电平
  91. {
  92.         OLED_SDA_Set();
  93.         IIC_delay();
  94.         OLED_SCL_Set();
  95.         IIC_delay();
  96.         OLED_SCL_Clr();
  97.         IIC_delay();
  98. }


  99. /**
  100.   * @brief 写入一个字节
  101.   * @param dat 字节
  102.   * @retval None
  103.   * @note_time 2020-11-19 小刘同学
  104. **/
  105. void Send_Byte(u8 dat)
  106. {
  107.         u8 i;
  108.         for(i=0;i<8;i++)
  109.         {
  110.                 if(dat&0x80)//将dat的8位从最高位依次写入
  111.                 {
  112.                         OLED_SDA_Set();
  113.     }
  114.                 else
  115.                 {
  116.                         OLED_SDA_Clr();
  117.     }
  118.                 IIC_delay();
  119.                 OLED_SCL_Set();
  120.                 IIC_delay();
  121.                 OLED_SCL_Clr();//将时钟信号设置为低电平
  122.                 dat<<=1;
  123.   }
  124. }


  125. /**
  126.   * @brief 发送一个字节
  127.   * @param   dat 字节
  128.   * @param mode:数据/命令标志
  129.                 @arg 0,表示命令;
  130.                 @arg 1,表示数据;
  131.   * @retval None
  132.   * @note_time 2020-11-19 小刘同学
  133. **/
  134. void OLED_WR_Byte(u8 dat,u8 mode)
  135. {
  136.         I2C_Start();
  137.         Send_Byte(0x78);
  138.         I2C_WaitAck();
  139.         if(mode){Send_Byte(0x40);}
  140.   else{Send_Byte(0x00);}
  141.         I2C_WaitAck();
  142.         Send_Byte(dat);
  143.         I2C_WaitAck();
  144.         I2C_Stop();
  145. }


  146. /**
  147.   * @brief 开启OLED显示
  148.   * @param None
  149.   * @retval None
  150.   * @note_time 2020-11-19 小刘同学
  151. **/
  152. void OLED_DisPlay_On(void)
  153. {
  154.         OLED_WR_Byte(0x8D,OLED_CMD);//电荷泵使能
  155.         OLED_WR_Byte(0x14,OLED_CMD);//开启电荷泵
  156.         OLED_WR_Byte(0xAF,OLED_CMD);//点亮屏幕
  157. }


  158. /**
  159.   * @brief 关闭OLED显示
  160.   * @param None
  161.   * @retval None
  162.   * @note_time 2020-11-19 小刘同学
  163. **/
  164. void OLED_DisPlay_Off(void)
  165. {
  166.         OLED_WR_Byte(0x8D,OLED_CMD);//电荷泵使能
  167.         OLED_WR_Byte(0x10,OLED_CMD);//关闭电荷泵
  168.         OLED_WR_Byte(0xAE,OLED_CMD);//关闭屏幕
  169. }

  170.         
  171. /**
  172.   * @brief 更新显存到OLED         
  173.   * @param None
  174.   * @retval None
  175.   * @note_time 2020-11-19 小刘同学
  176. **/
  177. void OLED_Refresh(void)
  178. {
  179.         u8 i,n;
  180.         for(i=0;i<8;i++)
  181.         {
  182.                 OLED_WR_Byte(0xb0+i,OLED_CMD); //设置行起始地址
  183.                 OLED_WR_Byte(0x00,OLED_CMD);   //设置低列起始地址
  184.                 OLED_WR_Byte(0x10,OLED_CMD);   //设置高列起始地址
  185.                 I2C_Start();
  186.                 Send_Byte(0x78);
  187.                 I2C_WaitAck();
  188.                 Send_Byte(0x40);
  189.                 I2C_WaitAck();
  190.                 for(n=0;n<128;n++)
  191.                 {
  192.                         Send_Byte(OLED_GRAM[n]<i>);</i>
  193. <i>                        I2C_WaitAck();</i>
  194. <i>                }</i>
  195. <i>                I2C_Stop();</i>
  196.   }
  197. }

  198. /**
  199.   * @brief 清屏函数         
  200.   * @param None
  201.   * @retval None
  202.   * @note_time 2020-11-19 小刘同学
  203. **/
  204. void OLED_Clear(void)
  205. {
  206.         u8 i,n;
  207.         for(i=0;i<8;i++)
  208.         {
  209.            for(n=0;n<128;n++)
  210.                         {
  211.                          OLED_GRAM[n]=0;//清除所有数据
  212.                         }
  213.   }
  214.         OLED_Refresh();//更新显示
  215. }


  216. /**
  217.   * @brief 画点         
  218.   * @param u8 x :0~127
  219.   * @param u8 y :0~63
  220.   * @param u8 t
  221.                 @arg 1 填充
  222.                 @arg 0 清空
  223.   * @retval None
  224.   * @note_time 2020-11-19 小刘同学
  225. **/
  226. void OLED_DrawPoint(u8 x,u8 y,u8 t)
  227. {
  228.         u8 i,m,n;
  229.         i=y/8;
  230.         m=y%8;
  231.         n=1<<m;
  232.         if(t){OLED_GRAM[x]|=n;}
  233.         else
  234.         {
  235.                 OLED_GRAM[x]=~OLED_GRAM[x];
  236.                 OLED_GRAM[x]|=n;
  237.                 OLED_GRAM[x]=~OLED_GRAM[x];
  238.         }
  239. }



  240. /**
  241.   * @brief 画线         
  242.   * @param u8 x1 :0~127
  243.   * @param u8 y1 :0~63
  244.   * @param u8 x2 :0~127
  245.   * @param u8 y2 :0~63
  246.   * @param mode
  247.                 @arg 1 填充
  248.                 @arg 0 清空
  249.   * @retval None
  250.   * @note_time 2020-11-19 小刘同学
  251. **/
  252. void OLED_DrawLine(u8 x1,u8 y1,u8 x2,u8 y2,u8 mode)
  253. {
  254.         u16 t;
  255.         int xerr=0,yerr=0,delta_x,delta_y,distance;
  256.         int incx,incy,uRow,uCol;
  257.         delta_x=x2-x1; //计算坐标增量
  258.         delta_y=y2-y1;
  259.         uRow=x1;//画线起点坐标
  260.         uCol=y1;
  261.         if(delta_x>0)incx=1; //设置单步方向
  262.         else if (delta_x==0)incx=0;//垂直线
  263.         else {incx=-1;delta_x=-delta_x;}
  264.         if(delta_y>0)incy=1;
  265.         else if (delta_y==0)incy=0;//水平线
  266.         else {incy=-1;delta_y=-delta_x;}
  267.         if(delta_x>delta_y)distance=delta_x; //选取基本增量坐标轴
  268.         else distance=delta_y;
  269.         for(t=0;t<distance+1;t++)
  270.         {
  271.                 OLED_DrawPoint(uRow,uCol,mode);//画点
  272.                 xerr+=delta_x;
  273.                 yerr+=delta_y;
  274.                 if(xerr>distance)
  275.                 {
  276.                         xerr-=distance;
  277.                         uRow+=incx;
  278.                 }
  279.                 if(yerr>distance)
  280.                 {
  281.                         yerr-=distance;
  282.                         uCol+=incy;
  283.                 }
  284.         }
  285. }

  286. /**
  287.   * @brief 画圆圈函数         
  288.   * @param u8 x:圆心坐标
  289.   * @param u8 y:圆心坐标
  290.   * @param u8 r:圆的半径
  291.   * @retval None
  292.   * @note_time 2020-11-19 小刘同学
  293. **/
  294. void OLED_DrawCircle(u8 x,u8 y,u8 r)
  295. {
  296.         int a, b,num;
  297.     a = 0;
  298.     b = r;
  299.     while(2 * b * b >= r * r)      
  300.     {
  301.         OLED_DrawPoint(x + a, y - b,1);
  302.         OLED_DrawPoint(x - a, y - b,1);
  303.         OLED_DrawPoint(x - a, y + b,1);
  304.         OLED_DrawPoint(x + a, y + b,1);

  305.         OLED_DrawPoint(x + b, y + a,1);
  306.         OLED_DrawPoint(x + b, y - a,1);
  307.         OLED_DrawPoint(x - b, y - a,1);
  308.         OLED_DrawPoint(x - b, y + a,1);

  309.         a++;
  310.         num = (a * a + b * b) - r*r;//计算画的点离圆心的距离
  311.         if(num > 0)
  312.         {
  313.             b--;
  314.             a--;
  315.         }
  316.     }
  317. }



  318. /**
  319.   * @brief 在指定位置显示一个字符,包括部分字符         
  320.   * @param x:0~127 起点坐标
  321.   * @param y:0~63 起点坐标
  322.   * @param size1:选择字体 6x8/6x12/8x16/12x24
  323.         @param mode 显示模式
  324.                 @arg 0,反色显示;
  325.                 @arg1,正常显示
  326.   * @retval None
  327.   * @note_time 2020-11-19 小刘同学
  328. **/
  329. void OLED_ShowChar(u8 x,u8 y,u8 chr,u8 size1,u8 mode)
  330. {
  331.         u8 i,m,temp,size2,chr1;
  332.         u8 x0=x,y0=y;
  333.         if(size1==8)size2=6;
  334.         else size2=(size1/8+((size1%8)?1:0))*(size1/2);  //得到字体一个字符对应点阵集所占的字节数
  335.         chr1=chr-' ';  //计算偏移后的值
  336.         for(i=0;i<size2;i++)
  337.         {
  338.                 if(size1==8)
  339.                           {temp=asc2_0806[chr1];} //调用0806字体
  340.                 else if(size1==12)
  341.         {temp=asc2_1206[chr1];} //调用1206字体
  342.                 else if(size1==16)
  343.         {temp=asc2_1608[chr1];} //调用1608字体
  344.                 else if(size1==24)
  345.         {temp=asc2_2412[chr1];} //调用2412字体
  346.                 else return;
  347.                 for(m=0;m<8;m++)
  348.                 {
  349.                         if(temp&0x01)OLED_DrawPoint(x,y,mode);
  350.                         else OLED_DrawPoint(x,y,!mode);
  351.                         temp>>=1;
  352.                         y++;
  353.                 }
  354.                 x++;
  355.                 if((size1!=8)&&((x-x0)==size1/2))
  356.                 {x=x0;y0=y0+8;}
  357.                 y=y0;
  358.   }
  359. }



  360. /**
  361.   * @brief 显示字符串
  362.   * @param x:0~127 起点坐标
  363.   * @param y:0~63 起点坐标
  364.   * @param size1:选择字体 6x8/6x12/8x16/12x24
  365.   * @param *chr:字符串起始地址
  366.         @param mode 显示模式
  367.                 @arg 0,反色显示;
  368.                 @arg1,正常显示
  369.   * @retval None
  370.   * @note_time 2020-11-19 小刘同学
  371. **/
  372. void OLED_ShowString(u8 x,u8 y,u8 *chr,u8 size1,u8 mode)
  373. {
  374.         while((*chr>=' ')&&(*chr<='~'))//判断是不是非法字符!
  375.         {
  376.                 OLED_ShowChar(x,y,*chr,size1,mode);
  377.                 if(size1==8)x+=6;
  378.                 else x+=size1/2;
  379.                 chr++;
  380.   }
  381. }


  382. /**
  383.   * @brief 计算幂函数,m^n
  384.   * @param u8 m 底数
  385.   * @param u8 n 指数
  386.   * @retval u32 结果
  387.   * @note_time 2020-11-19 小刘同学
  388. **/
  389. u32 OLED_Pow(u8 m,u8 n)
  390. {
  391.         u32 result=1;
  392.         while(n--)
  393.         {
  394.           result*=m;
  395.         }
  396.         return result;
  397. }



  398. /**
  399.   * @brief 显示数字
  400.   * @param x:0~127 起点坐标
  401.   * @param y:0~63 起点坐标
  402.   * @param num :要显示的数字
  403.   * @param len :数字的位数
  404.   * @param size1:选择字体 6x8/6x12/8x16/12x24
  405.         @param mode 显示模式
  406.                 @arg 0,反色显示;
  407.                 @arg1,正常显示
  408.   * @retval None
  409.   * @note_time 2020-11-19 小刘同学
  410. **/
  411. void OLED_ShowNum(u8 x,u8 y,u32 num,u8 len,u8 size1,u8 mode)
  412. {
  413.         u8 t,temp,m=0;
  414.         if(size1==8)m=2;
  415.         for(t=0;t<len;t++)
  416.         {
  417.                 temp=(num/OLED_Pow(10,len-t-1))%10;
  418.                         if(temp==0)
  419.                         {
  420.                                 OLED_ShowChar(x+(size1/2+m)*t,y,'0',size1,mode);
  421.       }
  422.                         else
  423.                         {
  424.                           OLED_ShowChar(x+(size1/2+m)*t,y,temp+'0',size1,mode);
  425.                         }
  426.   }
  427. }


  428. /**
  429.   * @brief 显示汉字
  430.   * @param x:0~127 起点坐标
  431.   * @param y:0~63 起点坐标
  432.   * @param num:汉字对应的序号
  433.   * @param size1:选择字体 6x8/6x12/8x16/12x24
  434.         @param mode 显示模式
  435.                 @arg 0,反色显示;
  436.                 @arg1,正常显示
  437.   * @retval None
  438.   * @note_time 2020-11-19 小刘同学
  439. **/
  440. void OLED_ShowChinese(u8 x,u8 y,u8 num,u8 size1,u8 mode)
  441. {
  442.         u8 m,temp;
  443.         u8 x0=x,y0=y;
  444.         u16 i,size3=(size1/8+((size1%8)?1:0))*size1;  //得到字体一个字符对应点阵集所占的字节数
  445.         for(i=0;i<size3;i++)
  446.         {
  447.                 if(size1==16)
  448.                                 {temp=Hzk1[num];}//调用16*16字体
  449.                 else if(size1==24)
  450.                                 {temp=Hzk2[num];}//调用24*24字体
  451.                 else if(size1==32)      
  452.                                 {temp=Hzk3[num];}//调用32*32字体
  453.                 else if(size1==64)
  454.                                 {temp=Hzk4[num];}//调用64*64字体
  455.                 else return;
  456.                 for(m=0;m<8;m++)
  457.                 {
  458.                         if(temp&0x01)OLED_DrawPoint(x,y,mode);
  459.                         else OLED_DrawPoint(x,y,!mode);
  460.                         temp>>=1;
  461.                         y++;
  462.                 }
  463.                 x++;
  464.                 if((x-x0)==size1)
  465.                 {x=x0;y0=y0+8;}
  466.                 y=y0;
  467.         }
  468. }


  469. /**
  470.   * @brief 显示汉字的个数
  471.   * @param num 显示汉字的个数
  472.   * @param space 每一遍显示的间隔
  473.         @param mode 显示模式
  474.                 @arg 0,反色显示;
  475.                 @arg1,正常显示
  476.   * @retval None
  477.   * @note_time 2020-11-19 小刘同学
  478. **/
  479. void OLED_ScrollDisplay(u8 num,u8 space,u8 mode)
  480. {
  481.         u8 i,n,t=0,m=0,r;
  482.         while(1)
  483.         {
  484.                 if(m==0)
  485.                 {
  486.             OLED_ShowChinese(128,24,t,16,mode); //写入一个汉字保存在OLED_GRAM[][]数组中
  487.                         t++;
  488.                 }
  489.                 if(t==num)
  490.                         {
  491.                                 for(r=0;r<16*space;r++)      //显示间隔
  492.                                  {
  493.                                         for(i=1;i<144;i++)
  494.                                                 {
  495.                                                         for(n=0;n<8;n++)
  496.                                                         {
  497.                                                                 OLED_GRAM[i-1][n]=OLED_GRAM[n];
  498.                                                         }
  499.                                                 }
  500.            OLED_Refresh();
  501.                                  }
  502.         t=0;
  503.       }
  504.                 m++;
  505.                 if(m==16){m=0;}
  506.                 for(i=1;i<144;i++)   //实现左移
  507.                 {
  508.                         for(n=0;n<8;n++)
  509.                         {
  510.                                 OLED_GRAM[i-1][n]=OLED_GRAM[n];
  511.                         }
  512.                 }
  513.                 OLED_Refresh();
  514.         }
  515. }


  516. /**
  517.   * @brief 显示汉字
  518.   * @param x:0~127 起点坐标
  519.   * @param y:0~63 起点坐标
  520.   * @param sizex 图片长
  521.   * @param sizey 图片宽
  522.   * @param BMP[]:要写入的图片数组
  523.         @param mode 显示模式
  524.                 @arg 0,反色显示;
  525.                 @arg1,正常显示
  526.   * @retval None
  527.   * @note_time 2020-11-19 小刘同学
  528. **/
  529. void OLED_ShowPicture(u8 x,u8 y,u8 sizex,u8 sizey,u8 BMP[],u8 mode)
  530. {
  531.         u16 j=0;
  532.         u8 i,n,temp,m;
  533.         u8 x0=x,y0=y;
  534.         sizey=sizey/8+((sizey%8)?1:0);
  535.         for(n=0;n<sizey;n++)
  536.         {
  537.                  for(i=0;i<sizex;i++)
  538.                  {
  539.                                 temp=BMP[j];
  540.                                 j++;
  541.                                 for(m=0;m<8;m++)
  542.                                 {
  543.                                         if(temp&0x01)OLED_DrawPoint(x,y,mode);
  544.                                         else OLED_DrawPoint(x,y,!mode);
  545.                                         temp>>=1;
  546.                                         y++;
  547.                                 }
  548.                                 x++;
  549.                                 if((x-x0)==sizex)
  550.                                 {
  551.                                         x=x0;
  552.                                         y0=y0+8;
  553.                                 }
  554.                                 y=y0;
  555.      }
  556.          }
  557. }

  558. /**
  559.   * @brief OLED的初始化
  560.   * @param None
  561.   * @retval None
  562.   * @note_time 2020-11-19 小刘同学
  563. **/
  564. void OLED_Init(void)
  565. {
  566.         GPIO_InitTypeDef  GPIO_InitStructure;

  567.         RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_GPIOB|RCC_APB2Periph_GPIOC|RCC_APB2Periph_GPIOD, ENABLE);         //使能A端口时钟
  568.         GPIO_InitStructure.GPIO_Pin = GPIO_Pin_5|GPIO_Pin_7;         
  569.          GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_OD;                  
  570.         GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;//速度50MHz
  571.          GPIO_Init(GPIOA, &GPIO_InitStructure);         
  572.          GPIO_SetBits(GPIOA,GPIO_Pin_5|GPIO_Pin_7);
  573.         
  574.         GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12;
  575.         GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
  576.          GPIO_Init(GPIOC, &GPIO_InitStructure);         
  577.          GPIO_SetBits(GPIOC,GPIO_Pin_12);
  578.         
  579. //        GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
  580. //        GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
  581. //         GPIO_Init(GPIOD, &GPIO_InitStructure);         
  582. //         GPIO_SetBits(GPIOD,GPIO_Pin_2);
  583.         
  584.          GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8;                                 //LED0-->PA.8 端口配置
  585. GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;                  //推挽输出
  586. GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;                 //IO口速度为50MHz
  587. GPIO_Init(GPIOA, &GPIO_InitStructure);                                         //根据设定参数初始化GPIOA.8
  588. // GPIO_ResetBits(GPIOA,GPIO_Pin_8);                                                 //PA.8 输出高

  589.         OLED_RES_Clr();
  590.         delay_ms(200);
  591.         OLED_RES_Set();
  592.         
  593.         OLED_WR_Byte(0xAE,OLED_CMD);//--turn off oled panel
  594.         OLED_WR_Byte(0x00,OLED_CMD);//---set low column address
  595.         OLED_WR_Byte(0x10,OLED_CMD);//---set high column address
  596.         OLED_WR_Byte(0x40,OLED_CMD);//--set start line address  Set Mapping RAM Display Start Line (0x00~0x3F)
  597.         OLED_WR_Byte(0x81,OLED_CMD);//--set contrast control register
  598.         OLED_WR_Byte(0xCF,OLED_CMD);// Set SEG Output Current Brightness
  599.         OLED_WR_Byte(0xA1,OLED_CMD);//--Set SEG/Column Mapping     0xa0左右反置 0xa1正常
  600.         OLED_WR_Byte(0xC8,OLED_CMD);//Set COM/Row Scan Direction   0xc0上下反置 0xc8正常
  601.         OLED_WR_Byte(0xA6,OLED_CMD);//--set normal display
  602.         OLED_WR_Byte(0xA8,OLED_CMD);//--set multiplex ratio(1 to 64)
  603.         OLED_WR_Byte(0x3f,OLED_CMD);//--1/64 duty
  604.         OLED_WR_Byte(0xD3,OLED_CMD);//-set display offset        Shift Mapping RAM Counter (0x00~0x3F)
  605.         OLED_WR_Byte(0x00,OLED_CMD);//-not offset
  606.         OLED_WR_Byte(0xd5,OLED_CMD);//--set display clock divide ratio/oscillator frequency
  607.         OLED_WR_Byte(0x80,OLED_CMD);//--set divide ratio, Set Clock as 100 Frames/Sec
  608.         OLED_WR_Byte(0xD9,OLED_CMD);//--set pre-charge period
  609.         OLED_WR_Byte(0xF1,OLED_CMD);//Set Pre-Charge as 15 Clocks & Discharge as 1 Clock
  610.         OLED_WR_Byte(0xDA,OLED_CMD);//--set com pins hardware configuration
  611.         OLED_WR_Byte(0x12,OLED_CMD);
  612.         OLED_WR_Byte(0xDB,OLED_CMD);//--set vcomh
  613.         OLED_WR_Byte(0x40,OLED_CMD);//Set VCOM Deselect Level
  614.         OLED_WR_Byte(0x20,OLED_CMD);//-Set Page Addressing Mode (0x00/0x01/0x02)
  615.         OLED_WR_Byte(0x02,OLED_CMD);//
  616.         OLED_WR_Byte(0x8D,OLED_CMD);//--set Charge Pump enable/disable
  617.         OLED_WR_Byte(0x14,OLED_CMD);//--set(0x10) disable
  618.         OLED_WR_Byte(0xA4,OLED_CMD);// Disable Entire Display On (0xa4/0xa5)
  619.         OLED_WR_Byte(0xA6,OLED_CMD);// Disable Inverse Display On (0xa6/a7)
  620.         OLED_Clear();
  621.         OLED_WR_Byte(0xAF,OLED_CMD);
  622. }
复制代码

.h实现

  1. oled.h
  2. #ifndef __OLED_H
  3. #define __OLED_H

  4. #include "sys.h"
  5. #include "stdlib.h"        

  6. //-----------------测试LED端口定义----------------

  7. #define LED_ON GPIO_ResetBits(GPIOC,GPIO_Pin_12)
  8. #define LED_OFF GPIO_SetBits(GPIOC,GPIO_Pin_12)

  9. //-----------------OLED端口定义----------------

  10. #define OLED_SCL_Clr() GPIO_ResetBits(GPIOA,GPIO_Pin_5)//SCL
  11. #define OLED_SCL_Set() GPIO_SetBits(GPIOA,GPIO_Pin_5)

  12. #define OLED_SDA_Clr() GPIO_ResetBits(GPIOA,GPIO_Pin_7)//DIN
  13. #define OLED_SDA_Set() GPIO_SetBits(GPIOA,GPIO_Pin_7)

  14. #define OLED_RES_Clr() GPIO_ResetBits(GPIOD,GPIO_Pin_2)//RES
  15. #define OLED_RES_Set() GPIO_SetBits(GPIOD,GPIO_Pin_2)


  16. #define OLED_CMD  0        //写命令
  17. #define OLED_DATA 1        //写数据

  18. void OLED_ClearPoint(u8 x,u8 y);
  19. void OLED_ColorTurn(u8 i);
  20. void OLED_DisplayTurn(u8 i);
  21. void I2C_Start(void);
  22. void I2C_Stop(void);
  23. void I2C_WaitAck(void);
  24. void Send_Byte(u8 dat);
  25. void OLED_WR_Byte(u8 dat,u8 mode);
  26. void OLED_DisPlay_On(void);
  27. void OLED_DisPlay_Off(void);
  28. void OLED_Refresh(void);
  29. void OLED_Clear(void);
  30. void OLED_DrawPoint(u8 x,u8 y,u8 t);
  31. void OLED_DrawLine(u8 x1,u8 y1,u8 x2,u8 y2,u8 mode);
  32. void OLED_DrawCircle(u8 x,u8 y,u8 r);
  33. void OLED_ShowChar(u8 x,u8 y,u8 chr,u8 size1,u8 mode);
  34. void OLED_ShowChar6x8(u8 x,u8 y,u8 chr,u8 mode);
  35. void OLED_ShowString(u8 x,u8 y,u8 *chr,u8 size1,u8 mode);
  36. void OLED_ShowNum(u8 x,u8 y,u32 num,u8 len,u8 size1,u8 mode);
  37. void OLED_ShowChinese(u8 x,u8 y,u8 num,u8 size1,u8 mode);
  38. void OLED_ScrollDisplay(u8 num,u8 space,u8 mode);
  39. void OLED_ShowPicture(u8 x,u8 y,u8 sizex,u8 sizey,u8 BMP[],u8 mode);
  40. void OLED_Init(void);

  41. #endif
复制代码
  1. oledfont.h
  2. #ifndef __OLEDFONT_H
  3. #define __OLEDFONT_H
  4. const unsigned char asc2_0806[][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. };
  99. //12*12 ASCII字符集点阵
  100. const unsigned char asc2_1206[95][12]={
  101. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
  102. {0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00},/*"!",1*/
  103. {0x00,0x0C,0x02,0x0C,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*""",2*/
  104. {0x90,0xD0,0xBC,0xD0,0xBC,0x90,0x00,0x03,0x00,0x03,0x00,0x00},/*"#",3*/
  105. {0x18,0x24,0xFE,0x44,0x8C,0x00,0x03,0x02,0x07,0x02,0x01,0x00},/*"[        DISCUZ_CODE_5        ]quot;,4*/
  106. {0x18,0x24,0xD8,0xB0,0x4C,0x80,0x00,0x03,0x00,0x01,0x02,0x01},/*"%",5*/
  107. {0xC0,0x38,0xE4,0x38,0xE0,0x00,0x01,0x02,0x02,0x01,0x02,0x02},/*"&",6*/
  108. {0x08,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"'",7*/
  109. {0x00,0x00,0x00,0xF8,0x04,0x02,0x00,0x00,0x00,0x01,0x02,0x04},/*"(",8*/
  110. {0x00,0x02,0x04,0xF8,0x00,0x00,0x00,0x04,0x02,0x01,0x00,0x00},/*")",9*/
  111. {0x90,0x60,0xF8,0x60,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00},/*"*",10*/
  112. {0x20,0x20,0xFC,0x20,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00},/*"+",11*/
  113. {0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x06,0x00,0x00,0x00,0x00},/*",",12*/
  114. {0x20,0x20,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"-",13*/
  115. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00},/*".",14*/
  116. {0x00,0x80,0x60,0x1C,0x02,0x00,0x04,0x03,0x00,0x00,0x00,0x00},/*"/",15*/
  117. {0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"0",16*/
  118. {0x00,0x08,0xFC,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"1",17*/
  119. {0x18,0x84,0x44,0x24,0x18,0x00,0x03,0x02,0x02,0x02,0x02,0x00},/*"2",18*/
  120. {0x08,0x04,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"3",19*/
  121. {0x40,0xB0,0x88,0xFC,0x80,0x00,0x00,0x00,0x00,0x03,0x02,0x00},/*"4",20*/
  122. {0x3C,0x24,0x24,0x24,0xC4,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"5",21*/
  123. {0xF8,0x24,0x24,0x2C,0xC0,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"6",22*/
  124. {0x0C,0x04,0xE4,0x1C,0x04,0x00,0x00,0x00,0x03,0x00,0x00,0x00},/*"7",23*/
  125. {0xD8,0x24,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"8",24*/
  126. {0x38,0x44,0x44,0x44,0xF8,0x00,0x00,0x03,0x02,0x02,0x01,0x00},/*"9",25*/
  127. {0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00},/*":",26*/
  128. {0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00},/*";",27*/
  129. {0x00,0x20,0x50,0x88,0x04,0x02,0x00,0x00,0x00,0x00,0x01,0x02},/*"<",28*/
  130. {0x90,0x90,0x90,0x90,0x90,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"=",29*/
  131. {0x00,0x02,0x04,0x88,0x50,0x20,0x00,0x02,0x01,0x00,0x00,0x00},/*">",30*/
  132. {0x18,0x04,0xC4,0x24,0x18,0x00,0x00,0x00,0x02,0x00,0x00,0x00},/*"?",31*/
  133. {0xF8,0x04,0xE4,0x94,0xF8,0x00,0x01,0x02,0x02,0x02,0x02,0x00},/*"@",32*/
  134. {0x00,0xE0,0x9C,0xF0,0x80,0x00,0x02,0x03,0x00,0x00,0x03,0x02},/*"A",33*/
  135. {0x04,0xFC,0x24,0x24,0xD8,0x00,0x02,0x03,0x02,0x02,0x01,0x00},/*"B",34*/
  136. {0xF8,0x04,0x04,0x04,0x0C,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"C",35*/
  137. {0x04,0xFC,0x04,0x04,0xF8,0x00,0x02,0x03,0x02,0x02,0x01,0x00},/*"D",36*/
  138. {0x04,0xFC,0x24,0x74,0x0C,0x00,0x02,0x03,0x02,0x02,0x03,0x00},/*"E",37*/
  139. {0x04,0xFC,0x24,0x74,0x0C,0x00,0x02,0x03,0x02,0x00,0x00,0x00},/*"F",38*/
  140. {0xF0,0x08,0x04,0x44,0xCC,0x40,0x00,0x01,0x02,0x02,0x01,0x00},/*"G",39*/
  141. {0x04,0xFC,0x20,0x20,0xFC,0x04,0x02,0x03,0x00,0x00,0x03,0x02},/*"H",40*/
  142. {0x04,0x04,0xFC,0x04,0x04,0x00,0x02,0x02,0x03,0x02,0x02,0x00},/*"I",41*/
  143. {0x00,0x04,0x04,0xFC,0x04,0x04,0x06,0x04,0x04,0x03,0x00,0x00},/*"J",42*/
  144. {0x04,0xFC,0x24,0xD0,0x0C,0x04,0x02,0x03,0x02,0x00,0x03,0x02},/*"K",43*/
  145. {0x04,0xFC,0x04,0x00,0x00,0x00,0x02,0x03,0x02,0x02,0x02,0x03},/*"L",44*/
  146. {0xFC,0x3C,0xC0,0x3C,0xFC,0x00,0x03,0x00,0x03,0x00,0x03,0x00},/*"M",45*/
  147. {0x04,0xFC,0x30,0xC4,0xFC,0x04,0x02,0x03,0x02,0x00,0x03,0x00},/*"N",46*/
  148. {0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"O",47*/
  149. {0x04,0xFC,0x24,0x24,0x18,0x00,0x02,0x03,0x02,0x00,0x00,0x00},/*"P",48*/
  150. {0xF8,0x84,0x84,0x04,0xF8,0x00,0x01,0x02,0x02,0x07,0x05,0x00},/*"Q",49*/
  151. {0x04,0xFC,0x24,0x64,0x98,0x00,0x02,0x03,0x02,0x00,0x03,0x02},/*"R",50*/
  152. {0x18,0x24,0x24,0x44,0x8C,0x00,0x03,0x02,0x02,0x02,0x01,0x00},/*"S",51*/
  153. {0x0C,0x04,0xFC,0x04,0x0C,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"T",52*/
  154. {0x04,0xFC,0x00,0x00,0xFC,0x04,0x00,0x01,0x02,0x02,0x01,0x00},/*"U",53*/
  155. {0x04,0x7C,0x80,0xE0,0x1C,0x04,0x00,0x00,0x03,0x00,0x00,0x00},/*"V",54*/
  156. {0x1C,0xE0,0x3C,0xE0,0x1C,0x00,0x00,0x03,0x00,0x03,0x00,0x00},/*"W",55*/
  157. {0x04,0x9C,0x60,0x9C,0x04,0x00,0x02,0x03,0x00,0x03,0x02,0x00},/*"X",56*/
  158. {0x04,0x1C,0xE0,0x1C,0x04,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"Y",57*/
  159. {0x0C,0x84,0x64,0x1C,0x04,0x00,0x02,0x03,0x02,0x02,0x03,0x00},/*"Z",58*/
  160. {0x00,0x00,0xFE,0x02,0x02,0x00,0x00,0x00,0x07,0x04,0x04,0x00},/*"[",59*/
  161. {0x00,0x0E,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x00},/*"",60*/
  162. {0x00,0x02,0x02,0xFE,0x00,0x00,0x00,0x04,0x04,0x07,0x00,0x00},/*"]",61*/
  163. {0x00,0x04,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"^",62*/
  164. {0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x08},/*"_",63*/
  165. {0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"`",64*/
  166. {0x00,0x40,0xA0,0xA0,0xC0,0x00,0x00,0x01,0x02,0x02,0x03,0x02},/*"a",65*/
  167. {0x04,0xFC,0x20,0x20,0xC0,0x00,0x00,0x03,0x02,0x02,0x01,0x00},/*"b",66*/
  168. {0x00,0xC0,0x20,0x20,0x60,0x00,0x00,0x01,0x02,0x02,0x02,0x00},/*"c",67*/
  169. {0x00,0xC0,0x20,0x24,0xFC,0x00,0x00,0x01,0x02,0x02,0x03,0x02},/*"d",68*/
  170. {0x00,0xC0,0xA0,0xA0,0xC0,0x00,0x00,0x01,0x02,0x02,0x02,0x00},/*"e",69*/
  171. {0x00,0x20,0xF8,0x24,0x24,0x04,0x00,0x02,0x03,0x02,0x02,0x00},/*"f",70*/
  172. {0x00,0x40,0xA0,0xA0,0x60,0x20,0x00,0x07,0x0A,0x0A,0x0A,0x04},/*"g",71*/
  173. {0x04,0xFC,0x20,0x20,0xC0,0x00,0x02,0x03,0x02,0x00,0x03,0x02},/*"h",72*/
  174. {0x00,0x20,0xE4,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"i",73*/
  175. {0x00,0x00,0x20,0xE4,0x00,0x00,0x08,0x08,0x08,0x07,0x00,0x00},/*"j",74*/
  176. {0x04,0xFC,0x80,0xE0,0x20,0x20,0x02,0x03,0x02,0x00,0x03,0x02},/*"k",75*/
  177. {0x04,0x04,0xFC,0x00,0x00,0x00,0x02,0x02,0x03,0x02,0x02,0x00},/*"l",76*/
  178. {0xE0,0x20,0xE0,0x20,0xC0,0x00,0x03,0x00,0x03,0x00,0x03,0x00},/*"m",77*/
  179. {0x20,0xE0,0x20,0x20,0xC0,0x00,0x02,0x03,0x02,0x00,0x03,0x02},/*"n",78*/
  180. {0x00,0xC0,0x20,0x20,0xC0,0x00,0x00,0x01,0x02,0x02,0x01,0x00},/*"o",79*/
  181. {0x20,0xE0,0x20,0x20,0xC0,0x00,0x08,0x0F,0x0A,0x02,0x01,0x00},/*"p",80*/
  182. {0x00,0xC0,0x20,0x20,0xE0,0x00,0x00,0x01,0x02,0x0A,0x0F,0x08},/*"q",81*/
  183. {0x20,0xE0,0x40,0x20,0x20,0x00,0x02,0x03,0x02,0x00,0x00,0x00},/*"r",82*/
  184. {0x00,0x60,0xA0,0xA0,0x20,0x00,0x00,0x02,0x02,0x02,0x03,0x00},/*"s",83*/
  185. {0x00,0x20,0xF8,0x20,0x00,0x00,0x00,0x00,0x01,0x02,0x02,0x00},/*"t",84*/
  186. {0x20,0xE0,0x00,0x20,0xE0,0x00,0x00,0x01,0x02,0x02,0x03,0x02},/*"u",85*/
  187. {0x20,0xE0,0x20,0x80,0x60,0x20,0x00,0x00,0x03,0x01,0x00,0x00},/*"v",86*/
  188. {0x60,0x80,0xE0,0x80,0x60,0x00,0x00,0x03,0x00,0x03,0x00,0x00},/*"w",87*/
  189. {0x20,0x60,0x80,0x60,0x20,0x00,0x02,0x03,0x00,0x03,0x02,0x00},/*"x",88*/
  190. {0x20,0xE0,0x20,0x80,0x60,0x20,0x08,0x08,0x07,0x01,0x00,0x00},/*"y",89*/
  191. {0x00,0x20,0xA0,0x60,0x20,0x00,0x00,0x02,0x03,0x02,0x02,0x00},/*"z",90*/
  192. {0x00,0x00,0x20,0xDE,0x02,0x00,0x00,0x00,0x00,0x07,0x04,0x00},/*"{",91*/
  193. {0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00},/*"|",92*/
  194. {0x00,0x02,0xDE,0x20,0x00,0x00,0x00,0x04,0x07,0x00,0x00,0x00},/*"}",93*/
  195. {0x02,0x01,0x02,0x04,0x04,0x02,0x00,0x00,0x00,0x00,0x00,0x00},/*"~",94*/
  196. };  
  197. //16*16 ASCII字符集点阵
  198. const unsigned char asc2_1608[][16]={         
  199. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
  200. {0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x30,0x00,0x00,0x00},/*"!",1*/
  201. {0x00,0x10,0x0C,0x06,0x10,0x0C,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*""",2*/
  202. {0x40,0xC0,0x78,0x40,0xC0,0x78,0x40,0x00,0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00},/*"#",3*/
  203. {0x00,0x70,0x88,0xFC,0x08,0x30,0x00,0x00,0x00,0x18,0x20,0xFF,0x21,0x1E,0x00,0x00},/*"[        DISCUZ_CODE_5        ]quot;,4*/
  204. {0xF0,0x08,0xF0,0x00,0xE0,0x18,0x00,0x00,0x00,0x21,0x1C,0x03,0x1E,0x21,0x1E,0x00},/*"%",5*/
  205. {0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,0x1E,0x21,0x23,0x24,0x19,0x27,0x21,0x10},/*"&",6*/
  206. {0x10,0x16,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"'",7*/
  207. {0x00,0x00,0x00,0xE0,0x18,0x04,0x02,0x00,0x00,0x00,0x00,0x07,0x18,0x20,0x40,0x00},/*"(",8*/
  208. {0x00,0x02,0x04,0x18,0xE0,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x07,0x00,0x00,0x00},/*")",9*/
  209. {0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00},/*"*",10*/
  210. {0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x1F,0x01,0x01,0x01,0x00},/*"+",11*/
  211. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xB0,0x70,0x00,0x00,0x00,0x00,0x00},/*",",12*/
  212. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01},/*"-",13*/
  213. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00},/*".",14*/
  214. {0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x04,0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00},/*"/",15*/
  215. {0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00},/*"0",16*/
  216. {0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"1",17*/
  217. {0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00},/*"2",18*/
  218. {0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00},/*"3",19*/
  219. {0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00},/*"4",20*/
  220. {0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00},/*"5",21*/
  221. {0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00},/*"6",22*/
  222. {0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00},/*"7",23*/
  223. {0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00},/*"8",24*/
  224. {0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00},/*"9",25*/
  225. {0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00},/*":",26*/
  226. {0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x60,0x00,0x00,0x00,0x00},/*";",27*/
  227. {0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00},/*"<",28*/
  228. {0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00},/*"=",29*/
  229. {0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00},/*">",30*/
  230. {0x00,0x70,0x48,0x08,0x08,0x08,0xF0,0x00,0x00,0x00,0x00,0x30,0x36,0x01,0x00,0x00},/*"?",31*/
  231. {0xC0,0x30,0xC8,0x28,0xE8,0x10,0xE0,0x00,0x07,0x18,0x27,0x24,0x23,0x14,0x0B,0x00},/*"@",32*/
  232. {0x00,0x00,0xC0,0x38,0xE0,0x00,0x00,0x00,0x20,0x3C,0x23,0x02,0x02,0x27,0x38,0x20},/*"A",33*/
  233. {0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00},/*"B",34*/
  234. {0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00},/*"C",35*/
  235. {0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00},/*"D",36*/
  236. {0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00},/*"E",37*/
  237. {0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00},/*"F",38*/
  238. {0xC0,0x30,0x08,0x08,0x08,0x38,0x00,0x00,0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00},/*"G",39*/
  239. {0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20},/*"H",40*/
  240. {0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"I",41*/
  241. {0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00},/*"J",42*/
  242. {0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00},/*"K",43*/
  243. {0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00},/*"L",44*/
  244. {0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,0x20,0x3F,0x00,0x3F,0x00,0x3F,0x20,0x00},/*"M",45*/
  245. {0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00},/*"N",46*/
  246. {0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00},/*"O",47*/
  247. {0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00},/*"P",48*/
  248. {0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x18,0x24,0x24,0x38,0x50,0x4F,0x00},/*"Q",49*/
  249. {0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20},/*"R",50*/
  250. {0x00,0x70,0x88,0x08,0x08,0x08,0x38,0x00,0x00,0x38,0x20,0x21,0x21,0x22,0x1C,0x00},/*"S",51*/
  251. {0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00},/*"T",52*/
  252. {0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00},/*"U",53*/
  253. {0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x0E,0x01,0x00,0x00},/*"V",54*/
  254. {0xF8,0x08,0x00,0xF8,0x00,0x08,0xF8,0x00,0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00},/*"W",55*/
  255. {0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20},/*"X",56*/
  256. {0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00},/*"Y",57*/
  257. {0x10,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,0x20,0x38,0x26,0x21,0x20,0x20,0x18,0x00},/*"Z",58*/
  258. {0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00},/*"[",59*/
  259. {0x00,0x0C,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x38,0xC0,0x00},/*"",60*/
  260. {0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00},/*"]",61*/
  261. {0x00,0x00,0x04,0x02,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"^",62*/
  262. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},/*"_",63*/
  263. {0x00,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"`",64*/
  264. {0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x3F,0x20},/*"a",65*/
  265. {0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00},/*"b",66*/
  266. {0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00},/*"c",67*/
  267. {0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,0x00,0x0E,0x11,0x20,0x20,0x10,0x3F,0x20},/*"d",68*/
  268. {0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x22,0x22,0x22,0x22,0x13,0x00},/*"e",69*/
  269. {0x00,0x80,0x80,0xF0,0x88,0x88,0x88,0x18,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"f",70*/
  270. {0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00},/*"g",71*/
  271. {0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20},/*"h",72*/
  272. {0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"i",73*/
  273. {0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00},/*"j",74*/
  274. {0x08,0xF8,0x00,0x00,0x80,0x80,0x80,0x00,0x20,0x3F,0x24,0x02,0x2D,0x30,0x20,0x00},/*"k",75*/
  275. {0x00,0x08,0x08,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"l",76*/
  276. {0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F},/*"m",77*/
  277. {0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20},/*"n",78*/
  278. {0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00},/*"o",79*/
  279. {0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x80,0xFF,0xA1,0x20,0x20,0x11,0x0E,0x00},/*"p",80*/
  280. {0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x0E,0x11,0x20,0x20,0xA0,0xFF,0x80},/*"q",81*/
  281. {0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00},/*"r",82*/
  282. {0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x33,0x24,0x24,0x24,0x24,0x19,0x00},/*"s",83*/
  283. {0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x1F,0x20,0x20,0x00,0x00},/*"t",84*/
  284. {0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20},/*"u",85*/
  285. {0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x00,0x01,0x0E,0x30,0x08,0x06,0x01,0x00},/*"v",86*/
  286. {0x80,0x80,0x00,0x80,0x00,0x80,0x80,0x80,0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00},/*"w",87*/
  287. {0x00,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x31,0x2E,0x0E,0x31,0x20,0x00},/*"x",88*/
  288. {0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x81,0x8E,0x70,0x18,0x06,0x01,0x00},/*"y",89*/
  289. {0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00},/*"z",90*/
  290. {0x00,0x00,0x00,0x00,0x80,0x7C,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x3F,0x40,0x40},/*"{",91*/
  291. {0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00},/*"|",92*/
  292. {0x00,0x02,0x02,0x7C,0x80,0x00,0x00,0x00,0x00,0x40,0x40,0x3F,0x00,0x00,0x00,0x00},/*"}",93*/
  293. {0x00,0x06,0x01,0x01,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"~",94*/
  294. };  
  295. //24*24 ASICII字符集点阵
  296. const unsigned char asc2_2412[][36]={         
  297. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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*/
  298. {0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x7F,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00},/*"!",1*/
  299. {0x00,0x00,0x80,0x60,0x30,0x1C,0x8C,0x60,0x30,0x1C,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*""",2*/
  300. {0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x86,0xE6,0x9F,0x86,0x86,0x86,0x86,0xE6,0x9F,0x86,0x00,0x00,0x01,0x1F,0x01,0x01,0x01,0x01,0x01,0x1F,0x01,0x01,0x00},/*"#",3*/
  301. {0x00,0x00,0x80,0xC0,0x60,0x20,0xF8,0x20,0xE0,0xC0,0x00,0x00,0x00,0x00,0x03,0x07,0x0C,0x18,0xFF,0x70,0xE1,0x81,0x00,0x00,0x00,0x00,0x07,0x0F,0x10,0x10,0x7F,0x10,0x0F,0x07,0x00,0x00},/*"[        DISCUZ_CODE_5        ]quot;,4*/
  302. {0x80,0x60,0x20,0x60,0x80,0x00,0x00,0x00,0xE0,0x20,0x00,0x00,0x0F,0x30,0x20,0x30,0x9F,0x70,0xDC,0x37,0x10,0x30,0xC0,0x00,0x00,0x00,0x10,0x0E,0x03,0x00,0x07,0x18,0x10,0x18,0x07,0x00},/*"%",5*/
  303. {0x00,0x00,0xC0,0x20,0x20,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x1F,0x38,0xE8,0x87,0x03,0xC4,0x3C,0x04,0x00,0x00,0x07,0x0F,0x18,0x10,0x10,0x0B,0x07,0x0D,0x10,0x10,0x08,0x00},/*"&",6*/
  304. {0x00,0x80,0x8C,0x4C,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"'",7*/
  305. {0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x30,0x08,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0F,0x18,0x20,0x40,0x00},/*"(",8*/
  306. {0x00,0x04,0x08,0x30,0xE0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x0F,0x03,0x00,0x00,0x00,0x00,0x00,0x00},/*")",9*/
  307. {0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x66,0x66,0x3C,0x18,0xFF,0x18,0x3C,0x66,0x66,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00},/*"*",10*/
  308. {0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00},/*"+",11*/
  309. {0x00,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,0x8C,0x4C,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*",",12*/
  310. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"-",13*/
  311. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*".",14*/
  312. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x38,0x0C,0x00,0x00,0x00,0x00,0x00,0x80,0x70,0x1C,0x03,0x00,0x00,0x00,0x00,0x00,0x60,0x38,0x0E,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"/",15*/
  313. {0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x18,0x0E,0x07,0x01,0x00},/*"0",16*/
  314. {0x00,0x00,0x80,0x80,0x80,0xC0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"1",17*/
  315. {0x00,0x80,0x40,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x03,0x03,0x00,0x80,0x40,0x20,0x38,0x1F,0x07,0x00,0x00,0x00,0x1C,0x1A,0x19,0x18,0x18,0x18,0x18,0x18,0x1F,0x00,0x00},/*"2",18*/
  316. {0x00,0x80,0xC0,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x10,0x10,0x18,0x2F,0xE7,0x80,0x00,0x00,0x00,0x07,0x0F,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00,0x00},/*"3",19*/
  317. {0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xE0,0xF0,0x00,0x00,0x00,0x00,0xC0,0xB0,0x88,0x86,0x81,0x80,0xFF,0xFF,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,0x00},/*"4",20*/
  318. {0x00,0x00,0xE0,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x00,0x00,0x00,0x00,0x3F,0x10,0x08,0x08,0x08,0x18,0xF0,0xE0,0x00,0x00,0x00,0x07,0x0B,0x10,0x10,0x10,0x10,0x1C,0x0F,0x03,0x00,0x00},/*"5",21*/
  319. {0x00,0x00,0x80,0xC0,0x40,0x20,0x20,0x20,0xE0,0xC0,0x00,0x00,0x00,0xFC,0xFF,0x21,0x10,0x08,0x08,0x08,0x18,0xF0,0xE0,0x00,0x00,0x01,0x07,0x0C,0x18,0x10,0x10,0x10,0x08,0x0F,0x03,0x00},/*"6",22*/
  320. {0x00,0x00,0xC0,0xE0,0x60,0x60,0x60,0x60,0x60,0xE0,0x60,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0xE0,0x18,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x00,0x00,0x00,0x00,0x00},/*"7",23*/
  321. {0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x87,0xEF,0x2C,0x18,0x18,0x30,0x30,0x68,0xCF,0x83,0x00,0x00,0x07,0x0F,0x08,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00},/*"8",24*/
  322. {0x00,0x00,0xC0,0xC0,0x20,0x20,0x20,0x20,0xC0,0x80,0x00,0x00,0x00,0x1F,0x3F,0x60,0x40,0x40,0x40,0x20,0x10,0xFF,0xFE,0x00,0x00,0x00,0x0C,0x1C,0x10,0x10,0x10,0x08,0x0F,0x03,0x00,0x00},/*"9",25*/
  323. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x0E,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00},/*":",26*/
  324. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x38,0x00,0x00,0x00,0x00,0x00},/*";",27*/
  325. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x40,0x20,0x10,0x00,0x00,0x00,0x10,0x28,0x44,0x82,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x00},/*"<",28*/
  326. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"=",29*/
  327. {0x00,0x00,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x82,0x44,0x28,0x10,0x00,0x00,0x00,0x10,0x08,0x04,0x02,0x01,0x00,0x00,0x00,0x00,0x00},/*">",30*/
  328. {0x00,0xC0,0x20,0x20,0x10,0x10,0x10,0x10,0x30,0xE0,0xC0,0x00,0x00,0x03,0x03,0x00,0x00,0xF0,0x10,0x08,0x0C,0x07,0x03,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00,0x00},/*"?",31*/
  329. {0x00,0x00,0x00,0xC0,0x40,0x60,0x20,0x20,0x20,0x40,0xC0,0x00,0x00,0xFC,0xFF,0x01,0xF0,0x0E,0x03,0xC1,0xFE,0x03,0x80,0x7F,0x00,0x01,0x07,0x0E,0x08,0x11,0x11,0x10,0x11,0x09,0x04,0x02},/*"@",32*/
  330. {0x00,0x00,0x00,0x00,0x80,0xE0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x7C,0x43,0x40,0x47,0x7F,0xF8,0x80,0x00,0x00,0x10,0x18,0x1F,0x10,0x00,0x00,0x00,0x00,0x13,0x1F,0x1C,0x10},/*"A",33*/
  331. {0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x18,0x2F,0xE7,0x80,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00},/*"B",34*/
  332. {0x00,0x00,0x80,0xC0,0x40,0x20,0x20,0x20,0x20,0x60,0xE0,0x00,0x00,0xFC,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x10,0x08,0x04,0x03,0x00},/*"C",35*/
  333. {0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x40,0xC0,0x80,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x18,0x08,0x0E,0x07,0x01,0x00},/*"D",36*/
  334. {0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x20,0x60,0x80,0x00,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,0x10,0x18,0x06,0x00},/*"E",37*/
  335. {0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0x60,0x80,0x00,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,0x01,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"F",38*/
  336. {0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x40,0xE0,0x00,0x00,0x00,0xFC,0xFF,0x01,0x00,0x00,0x40,0x40,0xC0,0xC1,0x40,0x40,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x10,0x0F,0x0F,0x00,0x00},/*"G",39*/
  337. {0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x20,0xE0,0xE0,0x20,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x10,0x10,0xFF,0xFF,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10},/*"H",40*/
  338. {0x00,0x00,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"I",41*/
  339. {0x00,0x00,0x00,0x00,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x60,0xE0,0x80,0x80,0x80,0xC0,0x7F,0x3F,0x00,0x00,0x00},/*"J",42*/
  340. {0x20,0xE0,0xE0,0x20,0x00,0x00,0x20,0xA0,0x60,0x20,0x20,0x00,0x00,0xFF,0xFF,0x30,0x18,0x7C,0xE3,0xC0,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x01,0x13,0x1F,0x1C,0x18,0x10},/*"K",43*/
  341. {0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,0x10,0x18,0x06,0x00},/*"L",44*/
  342. {0x20,0xE0,0xE0,0xE0,0x00,0x00,0x00,0x00,0xE0,0xE0,0xE0,0x20,0x00,0xFF,0x01,0x3F,0xFE,0xC0,0xE0,0x1E,0x01,0xFF,0xFF,0x00,0x10,0x1F,0x10,0x00,0x03,0x1F,0x03,0x00,0x10,0x1F,0x1F,0x10},/*"M",45*/
  343. {0x20,0xE0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0x20,0x00,0xFF,0x00,0x03,0x07,0x1C,0x78,0xE0,0x80,0x00,0xFF,0x00,0x10,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,0x03,0x0F,0x1F,0x00},/*"N",46*/
  344. {0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x18,0x0C,0x07,0x01,0x00},/*"O",47*/
  345. {0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0xFF,0xFF,0x20,0x20,0x20,0x20,0x20,0x30,0x1F,0x0F,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"P",48*/
  346. {0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x11,0x11,0x13,0x3C,0x7C,0x67,0x21,0x00},/*"Q",49*/
  347. {0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0xFF,0xFF,0x10,0x10,0x30,0xF0,0xD0,0x08,0x0F,0x07,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x03,0x0F,0x1C,0x10,0x10},/*"R",50*/
  348. {0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x20,0x40,0x40,0xE0,0x00,0x00,0x07,0x0F,0x0C,0x18,0x18,0x30,0x30,0x60,0xE0,0x81,0x00,0x00,0x1F,0x0C,0x08,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00},/*"S",51*/
  349. {0x80,0x60,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x60,0x80,0x01,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00},/*"T",52*/
  350. {0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0x20,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x07,0x0F,0x18,0x10,0x10,0x10,0x10,0x10,0x08,0x07,0x00},/*"U",53*/
  351. {0x20,0x60,0xE0,0xE0,0x20,0x00,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x07,0x7F,0xF8,0x80,0x00,0x80,0x7C,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x1F,0x1C,0x07,0x00,0x00,0x00,0x00},/*"V",54*/
  352. {0x20,0xE0,0xE0,0x20,0x00,0xE0,0xE0,0x20,0x00,0x20,0xE0,0x20,0x00,0x07,0xFF,0xF8,0xE0,0x1F,0xFF,0xFC,0xE0,0x1F,0x00,0x00,0x00,0x00,0x03,0x1F,0x03,0x00,0x01,0x1F,0x03,0x00,0x00,0x00},/*"W",55*/
  353. {0x00,0x20,0x60,0xE0,0xA0,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x00,0x00,0x03,0x8F,0x7C,0xF8,0xC6,0x01,0x00,0x00,0x00,0x00,0x10,0x18,0x1E,0x13,0x00,0x01,0x17,0x1F,0x18,0x10,0x00},/*"X",56*/
  354. {0x20,0x60,0xE0,0xE0,0x20,0x00,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x01,0x07,0x3E,0xF8,0xE0,0x18,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,0x00,0x00,0x00},/*"Y",57*/
  355. {0x00,0x80,0x60,0x20,0x20,0x20,0x20,0xA0,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0xC0,0xF0,0x3E,0x0F,0x03,0x00,0x00,0x00,0x00,0x10,0x1C,0x1F,0x17,0x10,0x10,0x10,0x10,0x18,0x06,0x00},/*"Z",58*/
  356. {0x00,0x00,0x00,0x00,0x00,0xFC,0x04,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x40,0x40,0x00},/*"[",59*/
  357. {0x00,0x00,0x10,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x1C,0x60,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x70,0x80,0x00},/*"",60*/
  358. {0x00,0x00,0x04,0x04,0x04,0x04,0x04,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x40,0x40,0x7F,0x00,0x00,0x00,0x00},/*"]",61*/
  359. {0x00,0x00,0x00,0x10,0x08,0x0C,0x04,0x0C,0x08,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"^",62*/
  360. {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,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},/*"_",63*/
  361. {0x00,0x00,0x00,0x04,0x04,0x08,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"`",64*/
  362. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x98,0xD8,0x44,0x64,0x24,0x24,0xFC,0xF8,0x00,0x00,0x00,0x0F,0x1F,0x18,0x10,0x10,0x10,0x08,0x1F,0x1F,0x10,0x18},/*"a",65*/
  363. {0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x18,0x08,0x04,0x04,0x0C,0xF8,0xF0,0x00,0x00,0x00,0x1F,0x0F,0x18,0x10,0x10,0x10,0x18,0x0F,0x03,0x00},/*"b",66*/
  364. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x18,0x04,0x04,0x04,0x3C,0x38,0x00,0x00,0x00,0x00,0x03,0x0F,0x0C,0x10,0x10,0x10,0x10,0x08,0x06,0x00,0x00},/*"c",67*/
  365. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0xE0,0xF8,0x1C,0x04,0x04,0x04,0x08,0xFF,0xFF,0x00,0x00,0x00,0x03,0x0F,0x18,0x10,0x10,0x10,0x08,0x1F,0x0F,0x08,0x00},/*"d",68*/
  366. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x48,0x44,0x44,0x44,0x4C,0x78,0x70,0x00,0x00,0x00,0x03,0x0F,0x0C,0x18,0x10,0x10,0x10,0x08,0x04,0x00},/*"e",69*/
  367. {0x00,0x00,0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0xE0,0xC0,0x00,0x00,0x04,0x04,0x04,0xFF,0xFF,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00,0x00},/*"f",70*/
  368. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0xF8,0x8C,0x04,0x04,0x8C,0xF8,0x74,0x04,0x0C,0x00,0x70,0x76,0xCF,0x8D,0x8D,0x8D,0x89,0xC8,0x78,0x70,0x00},/*"g",71*/
  369. {0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x08,0x04,0x04,0x04,0xFC,0xF8,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00},/*"h",72*/
  370. {0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"i",73*/
  371. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0x80,0x80,0xC0,0x7F,0x3F,0x00,0x00,0x00},/*"j",74*/
  372. {0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x80,0xC0,0xF4,0x1C,0x04,0x04,0x00,0x00,0x00,0x10,0x1F,0x1F,0x11,0x00,0x03,0x1F,0x1C,0x10,0x10,0x00},/*"k",75*/
  373. {0x00,0x00,0x20,0x20,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"l",76*/
  374. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,0x04,0xFC,0xFC,0x08,0x04,0xFC,0xFC,0x00,0x10,0x1F,0x1F,0x10,0x00,0x1F,0x1F,0x10,0x00,0x1F,0x1F,0x10},/*"m",77*/
  375. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,0x08,0x04,0x04,0xFC,0xF8,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00},/*"n",78*/
  376. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0x18,0x0C,0x04,0x04,0x0C,0x18,0xF0,0xE0,0x00,0x00,0x03,0x0F,0x0C,0x10,0x10,0x10,0x10,0x0C,0x0F,0x03,0x00},/*"o",79*/
  377. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,0x04,0x04,0x04,0x0C,0xF8,0xF0,0x00,0x00,0x80,0xFF,0xFF,0x88,0x90,0x10,0x10,0x1C,0x0F,0x03,0x00},/*"p",80*/
  378. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x1C,0x04,0x04,0x04,0x08,0xF8,0xFC,0x00,0x00,0x00,0x03,0x0F,0x18,0x10,0x10,0x90,0x88,0xFF,0xFF,0x80,0x00},/*"q",81*/
  379. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,0xFC,0x10,0x08,0x04,0x04,0x0C,0x0C,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00,0x00,0x00},/*"r",82*/
  380. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x78,0xCC,0xC4,0x84,0x84,0x84,0x0C,0x1C,0x00,0x00,0x00,0x1E,0x18,0x10,0x10,0x10,0x11,0x19,0x0F,0x06,0x00},/*"s",83*/
  381. {0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFF,0xFF,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x1F,0x10,0x10,0x10,0x0C,0x00,0x00},/*"t",84*/
  382. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFE,0x00,0x00,0x00,0x04,0xFC,0xFE,0x00,0x00,0x00,0x00,0x0F,0x1F,0x18,0x10,0x10,0x08,0x1F,0x0F,0x08,0x00},/*"u",85*/
  383. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x3C,0xFC,0xC4,0x00,0x00,0xC4,0x3C,0x0C,0x04,0x00,0x00,0x00,0x00,0x01,0x0F,0x1E,0x0E,0x01,0x00,0x00,0x00},/*"v",86*/
  384. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x3C,0xFC,0xC4,0x00,0xE4,0x7C,0xFC,0x84,0x80,0x7C,0x04,0x00,0x00,0x07,0x1F,0x07,0x00,0x00,0x07,0x1F,0x07,0x00,0x00},/*"w",87*/
  385. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x1C,0x7C,0xE4,0xC0,0x34,0x1C,0x04,0x04,0x00,0x00,0x10,0x10,0x1C,0x16,0x01,0x13,0x1F,0x1C,0x18,0x10,0x00},/*"x",88*/
  386. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x3C,0xFC,0xC4,0x00,0xC4,0x3C,0x04,0x04,0x00,0x00,0x00,0xC0,0x80,0xC1,0x37,0x0E,0x01,0x00,0x00,0x00,0x00},/*"y",89*/
  387. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x04,0x04,0xC4,0xF4,0x7C,0x1C,0x04,0x00,0x00,0x00,0x00,0x10,0x1C,0x1F,0x17,0x11,0x10,0x10,0x18,0x0E,0x00},/*"z",90*/
  388. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x0C,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x28,0xEF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x60,0x40,0x00,0x00},/*"{",91*/
  389. {0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00},/*"|",92*/
  390. {0x00,0x00,0x04,0x0C,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xEF,0x28,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x60,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"}",93*/
  391. {0x00,0x18,0x06,0x02,0x02,0x04,0x08,0x10,0x20,0x20,0x30,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"~",94*/



  392. };
  393. const unsigned char Hzk1[][32]={
  394. {0x00,0x00,0xF0,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0xF0,0x00,0x00,0x00,0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0xFF,0x04,0x04,0x04,0x04,0x0F,0x00,0x00,0x00},/*"中",0*/
  395. {0x40,0x40,0x40,0x5F,0x55,0x55,0x55,0x75,0x55,0x55,0x55,0x5F,0x40,0x40,0x40,0x00,0x00,0x40,0x20,0x0F,0x09,0x49,0x89,0x79,0x09,0x09,0x09,0x0F,0x20,0x40,0x00,0x00},/*"景",1*/
  396. {0x00,0xFE,0x02,0x42,0x4A,0xCA,0x4A,0x4A,0xCA,0x4A,0x4A,0x42,0x02,0xFE,0x00,0x00,0x00,0xFF,0x40,0x50,0x4C,0x43,0x40,0x40,0x4F,0x50,0x50,0x5C,0x40,0xFF,0x00,0x00},/*"园",2*/
  397. {0x00,0x00,0xF8,0x88,0x88,0x88,0x88,0xFF,0x88,0x88,0x88,0x88,0xF8,0x00,0x00,0x00,0x00,0x00,0x1F,0x08,0x08,0x08,0x08,0x7F,0x88,0x88,0x88,0x88,0x9F,0x80,0xF0,0x00},/*"电",3*/
  398. {0x80,0x82,0x82,0x82,0x82,0x82,0x82,0xE2,0xA2,0x92,0x8A,0x86,0x82,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"子",4*/
  399. {0x10,0x10,0x10,0xFF,0x10,0x90,0x08,0x88,0x88,0x88,0xFF,0x88,0x88,0x88,0x08,0x00,0x04,0x44,0x82,0x7F,0x01,0x80,0x80,0x40,0x43,0x2C,0x10,0x28,0x46,0x81,0x80,0x00},/*"技",5*/
  400. {0x00,0x10,0x10,0x10,0x10,0xD0,0x30,0xFF,0x30,0xD0,0x12,0x1C,0x10,0x10,0x00,0x00,0x10,0x08,0x04,0x02,0x01,0x00,0x00,0xFF,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x00},/*"术",6*/
  401. {0x04,0x04,0x04,0x84,0xE4,0x3C,0x27,0x24,0x24,0x24,0x24,0xE4,0x04,0x04,0x04,0x00,0x04,0x02,0x01,0x00,0xFF,0x09,0x09,0x09,0x09,0x49,0x89,0x7F,0x00,0x00,0x00,0x00},/*"有",7*/
  402. {0x00,0xFE,0x22,0x5A,0x86,0x00,0xFE,0x92,0x92,0x92,0x92,0x92,0xFE,0x00,0x00,0x00,0x00,0xFF,0x04,0x08,0x07,0x00,0xFF,0x40,0x20,0x03,0x0C,0x14,0x22,0x41,0x40,0x00},/*"限",8*/
  403. {0x00,0x80,0x40,0x20,0x18,0x06,0x80,0x00,0x07,0x18,0x20,0x40,0x80,0x00,0x00,0x00,0x01,0x00,0x20,0x70,0x28,0x26,0x21,0x20,0x20,0x24,0x38,0x60,0x00,0x01,0x01,0x00},/*"公",9*/
  404. {0x00,0x10,0x12,0x92,0x92,0x92,0x92,0x92,0x92,0x12,0x12,0x02,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x10,0x10,0x10,0x10,0x3F,0x00,0x40,0x80,0x7F,0x00,0x00,0x00},/*"司",10*/



  405. };
  406. const unsigned char Hzk2[][72]={
  407. {0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xFC,0x84,0x80,0x80,0x80,0x80,0x80,0x80,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x7F,0x40,0x40,0x40,0x40,0x40,0x40,0xFF,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0xFF,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"中",0*/

  408. };
  409. const unsigned char Hzk3[][128]={
  410. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0xFF,0xFF,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0xFF,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0xFF,0xFF,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"中",0*/


  411. };

  412. const unsigned char Hzk4[][512]={
  413. {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0xF8,0xF0,0xF0,0x70,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFE,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0xFF,0xFF,0xFF,0xFF,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0xFF,0xFF,0xFF,0xFF,0x07,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0xFF,0xFF,0xFF,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x0F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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*/

  414. };
  415. #endif
复制代码

待续
博客篇幅过长,将PWM驱动舵机这边放到写一篇博客总结
。也可以参考STM32——PWM基本知识及配置过程






收藏 评论0 发布时间:2021-11-13 22:00

举报

0个回答

所属标签

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版