找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5787|回复: 2
收起左侧

st7565R 12864液晶程序和资料_单色COG液晶的规格书

[复制链接]
ID:130231 发表于 2017-5-10 15:48 | 显示全部楼层 |阅读模式
使用st7565R芯片的12864液晶驱动和资料-_单色COG液晶的规格书和源代码例程等
0.png 0.png

单片机源程序:
  1. /**********************************/
  2. /*      IC:ST7565               */
  3. /*      Date:09-07-23             */
  4. /**********************************/
  5. /**********************************/
  6. /*      Head File Define          */
  7. /**********************************/
  8. #include <reg51.h>
  9. #include <E:\driver_prg\image\char.h>
  10. //#include <math.h>
  11. //#include <intrins.h>

  12. /**********************************/
  13. /*      Interface Define          */
  14. /**********************************/
  15. sbit     RESET=P3^0;
  16. sbit     CD=P3^4;
  17. sbit     CS=P3^2;
  18. sbit     SCL=P1^6;
  19. sbit     SDA=P1^7;
  20. sbit     KEY_PRESS=P3^3;
  21. sbit     DEC_KEY=P3^1;
  22. sbit     EXIT_KEY=P3^7;
  23. /**********************************/
  24. /*      Parameter Define          */
  25. /**********************************/
  26. #define  CONTRAST=0x0C
  27. #define  DATA0=0x40
  28. #define  DATA1=0x41
  29. unsigned char  page_width;
  30. unsigned char  seg_width;

  31. unsigned char Buf_1,Buf_2,Buf_3,conversion;
  32. unsigned char *char_point;
  33. int  contrast;
  34. /**********************************/
  35. /*      Picture data              */
  36. /**********************************/
  37. unsigned char code row_table[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};

  38. unsigned char code char_0[]={62,65,65,62,0 };
  39. unsigned char code char_1[]={0,66,127,64,0 };
  40. unsigned char code char_2[]={98,81,73,70,0};
  41. unsigned char code char_3[]={34,73,73,54,0 };
  42. unsigned char code char_4[]={28,18,127,16,0 };
  43. unsigned char code char_5[]={39,69,69,57,0};
  44. unsigned char code char_6[]={62,73,73,50,0};
  45. unsigned char code char_7[]={1,121,7,1,0};
  46. unsigned char code char_8[]={54,73,73,54,0 };
  47. unsigned char code char_9[]={6,73,73,62,0};
  48. unsigned char code orise_tech[]={
  49. /*--  调入了一幅图像:C:\Documents and Settings\xuanquan.wang\My Documents\BMP\Made myself\MONO\orise-12864.bmp  --*/
  50. /*--  宽度x高度=128x64  --*/
  51. 0xFF,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  52. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  53. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  54. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  55. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  56. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  57. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  58. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,
  59. 0xFF,0x00,0xFC,0x02,0x01,0x01,0x01,0x01,0x01,0x01,0x81,0x41,0x41,0x41,0x41,0x41,
  60. 0x41,0x41,0x42,0xFC,0x40,0x40,0x40,0x40,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
  61. 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x20,0xFE,0xFE,0x20,0xE0,0xE0,0x00,0xFC,
  62. 0xFC,0x04,0x04,0x04,0x04,0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x0C,0x3C,0x30,
  63. 0xFE,0xFE,0x70,0x4C,0x6E,0x6E,0xBA,0xB2,0x7E,0xFE,0xCA,0x7A,0x3A,0x32,0x7E,0x7C,
  64. 0x00,0x00,0x00,0x20,0x22,0x22,0xE2,0xFE,0xFE,0xA2,0x20,0x40,0xC6,0x8E,0x1C,0x18,
  65. 0x30,0x20,0xFE,0xFE,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0xFE,0xFE,0x10,0x08,
  66. 0x48,0xC8,0x48,0x48,0x7E,0x7E,0x48,0x48,0xC8,0x88,0x88,0x08,0x00,0x00,0x00,0xFF,
  67. 0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0xC0,
  68. 0x20,0x10,0x90,0x7F,0x10,0x10,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0x20,
  69. 0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0xFF,0x3F,0x00,0xFF,0xFF,0x00,0x7F,
  70. 0x7F,0x41,0x41,0x41,0x41,0x41,0x7F,0x7F,0xC0,0xC0,0x00,0x00,0x00,0x01,0xC1,0xFF,
  71. 0x3F,0xFF,0xFF,0x49,0x4C,0xFF,0xFF,0x53,0x52,0x52,0xFF,0xFF,0x52,0x52,0x52,0x52,
  72. 0x00,0x00,0x00,0x20,0x38,0x1E,0x07,0xFF,0xFF,0x03,0x2C,0x20,0x20,0x21,0x23,0x26,
  73. 0x24,0x20,0xFF,0xFF,0x10,0x10,0x00,0x00,0x00,0x10,0x18,0x08,0xFF,0xFF,0x06,0x02,
  74. 0x00,0x87,0x9E,0x78,0x60,0x60,0xB8,0x9C,0x8F,0x03,0x00,0x00,0x00,0x00,0x00,0xFF,
  75. 0xFF,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x3F,0x41,0x81,0x81,0x81,0x81,0xFF,
  76. 0x81,0x81,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x40,0x3F,0x00,0x00,0x00,0x00,0x00,
  77. 0xFF,0x00,0x00,0x00,0x00,0x00,0x02,0x03,0x01,0x00,0x00,0x00,0xE1,0xE3,0x22,0x22,
  78. 0x22,0x22,0x22,0x22,0x22,0xE2,0xE2,0x03,0x03,0x00,0x00,0x00,0x00,0x03,0x03,0x01,
  79. 0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  80. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  81. 0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x03,0x03,0x03,0x01,
  82. 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x03,0x02,0x00,0x00,0x00,0xFF,
  83. 0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,
  84. 0x10,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x10,
  85. 0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x3F,0x20,0x20,
  86. 0x20,0x20,0x20,0x20,0x20,0x3F,0x3F,0x00,0x00,0x3F,0x3F,0x05,0x0D,0x1D,0x37,0x27,
  87. 0x00,0x00,0x3F,0x3F,0x00,0x00,0x27,0x27,0x25,0x25,0x3D,0x3D,0x00,0x00,0x3F,0x3F,
  88. 0x25,0x25,0x25,0x21,0x00,0x00,0x00,0x00,0x01,0x01,0x3F,0x3F,0x01,0x01,0x00,0x00,
  89. 0x3F,0x3F,0x25,0x25,0x25,0x21,0x00,0x00,0x3F,0x3F,0x21,0x21,0x21,0x33,0x00,0x00,
  90. 0x3F,0x3F,0x04,0x04,0x04,0x3F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
  91. 0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  92. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  93. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  94. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  95. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  96. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  97. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  98. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
  99. 0xFF,0x00,0x00,0xFE,0xFE,0x08,0xF8,0xF0,0x08,0xFC,0xFE,0x08,0xFC,0xFE,0x08,0xF8,
  100. 0xF8,0x08,0xF8,0xF0,0x00,0x08,0x08,0x00,0xE0,0xFE,0x1E,0x00,0xE0,0xFE,0x1E,0x00,
  101. 0x00,0x38,0xF8,0xC0,0x38,0xC0,0xF8,0x38,0x38,0xF8,0xC0,0x38,0xC0,0xF8,0x38,0x38,
  102. 0xF8,0xC0,0x38,0xC0,0xF8,0x38,0x00,0x00,0x00,0xF0,0xF8,0x08,0xF8,0xF0,0x00,0xF8,
  103. 0xF8,0x08,0x08,0xFA,0xFA,0x00,0xB0,0x38,0xC8,0xD0,0x00,0xF0,0xF8,0x28,0xB0,0x08,
  104. 0xFC,0xFE,0x08,0xF0,0xF8,0x28,0xB0,0x00,0xF0,0xF8,0x08,0x90,0x00,0xFE,0xFE,0x08,
  105. 0xF8,0xF0,0x00,0x00,0x00,0x00,0xF0,0xF8,0x08,0x90,0x00,0xF0,0xF8,0x08,0xF8,0xF0,
  106. 0x00,0xF8,0xF8,0x08,0xF8,0xF0,0x08,0xF8,0xF0,0x00,0xE0,0xFE,0x1E,0x00,0x00,0xFF,
  107. 0xFF,0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x87,
  108. 0x87,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x80,
  109. 0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,
  110. 0x81,0x81,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x81,0x80,0x80,0x81,
  111. 0x81,0x80,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x80,0x80,0x81,0x81,0x80,0x80,
  112. 0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,
  113. 0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x81,0x81,0x80,0x80,0x80,0x81,0x81,0x81,0x80,
  114. 0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x81,0x81,0x80,0x80,0x80,0xFF
  115. };

  116. unsigned char code description1[]={
  117. /*--  宽度x高度=128x64  --*/
  118. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  119. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  120. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  121. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  122. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  123. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  124. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  125. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  126. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  127. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  128. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  129. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  130. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  131. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x01,
  132. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x01,
  133. 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x00,0x07,0x00,0x00,0x06,0x00,0x0E,0x00,0x00,0x01,
  134. 0x80,0x00,0x7F,0xFF,0xFC,0x00,0xFF,0xFF,0xFF,0xFC,0x1F,0x00,0x0E,0x00,0x00,0x01,
  135. 0x80,0x00,0x7F,0xFF,0xFC,0x00,0xFF,0xFF,0xFF,0xFC,0x1F,0x00,0x0E,0x00,0x00,0x01,
  136. 0x80,0x00,0x70,0x00,0x1C,0x00,0xFF,0xFF,0xFF,0xFC,0x0F,0x8F,0xFF,0xFE,0x00,0x01,
  137. 0x80,0x00,0x70,0x00,0x1C,0x00,0x00,0x07,0x00,0x00,0x07,0x8F,0xFF,0xFE,0x00,0x01,
  138. 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0xE0,0x07,0xCF,0xFF,0xFE,0x00,0x01,
  139. 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x1F,0xFF,0xFF,0xE0,0x03,0x8F,0x0E,0x0E,0x00,0x01,
  140. 0x80,0x00,0x70,0x00,0x1C,0x00,0x0F,0xFF,0xFF,0xE0,0x03,0x0F,0x0E,0x0E,0x00,0x01,
  141. 0x80,0x00,0x70,0x00,0x1C,0x00,0x0E,0x07,0x01,0xE0,0x00,0x0F,0x0E,0x0E,0x00,0x01,
  142. 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0xE0,0x00,0x0F,0x0E,0x0E,0x00,0x01,
  143. 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0xE0,0x00,0x0F,0x0E,0x0E,0x00,0x01,
  144. 0x80,0x00,0x7F,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0xE0,0x7F,0x8F,0x0E,0x0E,0x00,0x01,
  145. 0x80,0x00,0x00,0x00,0x00,0x00,0x0E,0x07,0x01,0xE0,0x7F,0x8F,0xFF,0xFE,0x00,0x01,
  146. 0x80,0x00,0x00,0x00,0x00,0x00,0x0F,0xFF,0xFF,0xE0,0x7F,0x8F,0xFF,0xFE,0x00,0x01,
  147. 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x0F,0xFF,0xFF,0xE0,0x07,0x8F,0xFF,0xFE,0x00,0x01,
  148. 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x1F,0xFF,0xFF,0xE0,0x07,0x8F,0x0E,0x0E,0x00,0x01,
  149. 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x00,0x07,0x03,0x80,0x07,0x8F,0x0E,0x0E,0x00,0x01,
  150. 0x80,0x07,0x81,0xCF,0x03,0xC0,0x00,0x07,0x07,0xE0,0x07,0x8F,0x0E,0x0E,0x00,0x01,
  151. 0x80,0x07,0x81,0xCF,0x03,0xC0,0x7F,0xFF,0xFF,0xF0,0x07,0x8F,0x0E,0x0E,0x00,0x01,
  152. 0x80,0x07,0x81,0xCF,0x03,0xC0,0x7F,0xFF,0xFF,0xF8,0x07,0x8F,0x0E,0x0E,0x00,0x01,
  153. 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x7F,0xF8,0x00,0x78,0x07,0x8F,0x0E,0x0E,0x00,0x01,
  154. 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x00,0x02,0x00,0x20,0x07,0x8F,0xFF,0xFE,0x00,0x01,
  155. 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x01,0xCF,0x00,0xC0,0x07,0x8F,0xFF,0xFE,0x00,0x01,
  156. 0x80,0x07,0x81,0xCF,0x03,0xC0,0x39,0xC7,0x81,0xE0,0x07,0x8F,0xFF,0xFE,0x00,0x01,
  157. 0x80,0x07,0x81,0xCF,0x03,0xC0,0x79,0xC7,0x80,0xF0,0x0F,0xE0,0x00,0x00,0x00,0x01,
  158. 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x79,0xC3,0x8C,0xF8,0x1F,0xFC,0x00,0x00,0x00,0x01,
  159. 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0x71,0xC1,0x1E,0x7C,0x3C,0x7F,0xFF,0xFF,0xC0,0x01,
  160. 0x80,0x07,0xFF,0xCF,0xFF,0xC0,0xF1,0xE0,0x1E,0x3C,0x7C,0x3F,0xFF,0xFF,0x80,0x01,
  161. 0x80,0x07,0x81,0xCF,0x03,0xC0,0xE1,0xFF,0xFE,0x10,0x18,0x07,0xFF,0xFF,0x80,0x01,
  162. 0x80,0x07,0x81,0xCF,0x03,0xC0,0xE1,0xFF,0xFC,0x00,0x00,0x00,0x7F,0xFF,0x80,0x01,
  163. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  164. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  165. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  166. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  167. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  168. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  169. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  170. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  171. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  172. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  173. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  174. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  175. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  176. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  177. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  178. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  179. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  180. 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  181. 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  182. };

  183. unsigned char code description2[]={
  184. /*--  宽度x高度=128x64  --*/
  185. 0x08,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x20,0x08,0x08,0x00,0x00,0x00,0x00,
  186. 0x04,0xFF,0xC2,0x40,0x80,0x20,0x01,0xFE,0x0F,0xFF,0x84,0x08,0x00,0x00,0x00,0x00,
  187. 0x04,0x80,0x82,0x48,0x9F,0xFF,0xC1,0x02,0x00,0x20,0x06,0x08,0x00,0x00,0x00,0x00,
  188. 0x00,0x24,0x02,0x48,0x80,0x20,0x01,0xFE,0x03,0xFE,0x04,0x08,0x00,0x00,0x00,0x00,
  189. 0x10,0x23,0x1F,0xC8,0x80,0x20,0x01,0x02,0x02,0x22,0x00,0xFF,0x80,0x00,0x00,0x00,
  190. 0x0A,0xC1,0x02,0x48,0x83,0xFF,0x01,0xFE,0x03,0xFE,0x00,0x88,0x80,0x00,0x00,0x00,
  191. 0x0A,0x08,0x02,0x48,0x82,0x21,0x01,0x02,0x02,0x22,0x1C,0x88,0x80,0x00,0x00,0x00,
  192. 0x02,0x08,0x02,0x48,0x82,0x21,0x00,0x00,0x03,0xFE,0x04,0xFF,0x80,0x00,0x00,0x00,
  193. 0x04,0xFF,0x82,0x48,0x82,0x21,0x0F,0xCF,0xC0,0x21,0x04,0x88,0x80,0x00,0x00,0x00,
  194. 0x04,0x08,0x02,0x48,0x82,0x21,0x08,0x48,0x4F,0xFF,0x84,0x88,0x80,0x00,0x00,0x00,
  195. 0x18,0x1C,0x07,0x48,0x82,0x21,0x0F,0xCF,0xC0,0x00,0x84,0x88,0x80,0x00,0x00,0x00,
  196. 0x08,0x2B,0x18,0x88,0x82,0x21,0x08,0x48,0x41,0x20,0x04,0xFF,0x80,0x00,0x00,0x00,
  197. 0x08,0xC9,0xC0,0x88,0x82,0x25,0x08,0x48,0x45,0x11,0x04,0x80,0x80,0x00,0x00,0x00,
  198. 0x0B,0x08,0x81,0x00,0x82,0x22,0x0F,0xCF,0xC5,0x04,0x8A,0x00,0x00,0x00,0x00,0x00,
  199. 0x08,0x08,0x02,0x00,0x80,0x20,0x08,0x48,0x4C,0xFC,0x91,0xFF,0xC0,0x00,0x00,0x00,
  200. 0x08,0x08,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  201. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  202. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  203. 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  204. 0x00,0x00,0x00,0x00,0x02,0x00,0x7F,0xE0,0x02,0x01,0xF7,0xF0,0x08,0x80,0x7F,0xF8,
  205. 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x40,0xFF,0xFD,0x24,0x10,0x0C,0x80,0x00,0x08,
  206. 0x00,0x00,0x00,0x00,0x7F,0xF0,0x00,0x80,0x04,0x01,0x27,0xF0,0x08,0x80,0x00,0x08,
  207. 0x00,0x00,0x00,0x00,0x42,0x10,0x01,0x00,0x08,0x01,0x44,0x10,0x10,0x40,0xFF,0xC8,
  208. 0x00,0x00,0x00,0x00,0x42,0x10,0x02,0x00,0x1F,0xE1,0x44,0x10,0x10,0x20,0x00,0x08,
  209. 0x00,0x00,0x00,0x00,0x7F,0xF0,0x02,0x00,0x30,0x21,0x27,0xF0,0x20,0x30,0x00,0x08,
  210. 0x00,0x00,0x00,0x00,0x42,0x10,0x02,0x08,0x50,0x21,0x15,0x00,0x44,0x1C,0x7F,0x88,
  211. 0x00,0x00,0x00,0x00,0x42,0x11,0xFF,0xFC,0x9F,0xE1,0x14,0x90,0x86,0x08,0x40,0x88,
  212. 0x00,0x00,0x00,0x00,0x42,0x10,0x02,0x01,0x10,0x21,0x54,0xA0,0x04,0x00,0x40,0x88,
  213. 0x00,0x00,0x00,0x00,0x7F,0xF0,0x02,0x00,0x10,0x21,0x24,0x40,0x08,0x40,0x7F,0x88,
  214. 0x00,0x00,0x00,0x00,0x42,0x10,0x02,0x00,0x1F,0xE1,0x04,0x40,0x10,0x20,0x40,0x88,
  215. 0x00,0x00,0x00,0x00,0x02,0x04,0x02,0x00,0x10,0x21,0x04,0x20,0x23,0xF0,0x40,0x08,
  216. 0x00,0x00,0x00,0x00,0x02,0x04,0x02,0x00,0x11,0x21,0x05,0x1C,0x7E,0x30,0x00,0x28,
  217. 0x00,0x00,0x00,0x00,0x01,0xFC,0x0A,0x00,0x10,0xE1,0x06,0x08,0x20,0x20,0x00,0x10,
  218. 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x10,0x41,0x04,0x00,0x00,0x00,0x00,0x00,
  219. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  220. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  221. 0x7D,0xCF,0xF9,0x8E,0xFD,0xCF,0xF9,0x8E,0x7D,0xF6,0x39,0xEE,0x7E,0x77,0xDF,0x1F,
  222. 0x84,0x84,0x84,0xC5,0x08,0x84,0x84,0xC4,0x10,0x43,0x12,0x24,0x24,0x21,0x08,0x84,
  223. 0x84,0x84,0x90,0xC4,0x08,0x84,0x90,0xC4,0x10,0x43,0x12,0x24,0x24,0x21,0x08,0x44,
  224. 0x80,0x84,0x90,0xA4,0x10,0x84,0x90,0xA4,0x10,0x42,0x94,0x04,0x24,0x21,0x08,0x44,
  225. 0x40,0x84,0xF0,0xA4,0x10,0x84,0xF0,0xA4,0x10,0x42,0x94,0x04,0x24,0x21,0x08,0x44,
  226. 0x30,0xFC,0x90,0x94,0x20,0xFC,0x90,0x94,0x10,0x42,0x54,0x07,0xE4,0x21,0x08,0x44,
  227. 0x08,0x84,0x90,0x94,0x40,0x84,0x90,0x94,0x10,0x42,0x54,0x74,0x24,0x21,0x08,0x44,
  228. 0x04,0x84,0x80,0x94,0x40,0x84,0x80,0x94,0x10,0x42,0x54,0x24,0x24,0x21,0x08,0x44,
  229. 0x84,0x84,0x84,0x8C,0x84,0x84,0x84,0x8C,0x10,0x42,0x32,0x24,0x24,0x21,0x08,0x44,
  230. 0x84,0x84,0x84,0x8C,0x84,0x84,0x84,0x8C,0x10,0x42,0x32,0x24,0x24,0x21,0x08,0x84,
  231. 0xF9,0xCF,0xF9,0xC5,0xF9,0xCF,0xF9,0xC4,0x11,0xF7,0x11,0xCE,0x73,0xC7,0xDF,0x1F,
  232. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  233. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  234. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  235. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  236. 0xFE,0xFC,0x3E,0xE7,0xC7,0x38,0xE0,0x38,0x3C,0xEE,0x3E,0x38,0x01,0xC3,0xFB,0xE0,
  237. 0x92,0x42,0x42,0x42,0x62,0x44,0x40,0x44,0x44,0x44,0x42,0x44,0x00,0x82,0x49,0x10,
  238. 0x10,0x48,0x42,0x42,0x62,0x82,0x40,0x82,0x44,0x44,0x42,0x82,0x00,0x80,0x41,0x08,
  239. 0x10,0x48,0x80,0x42,0x52,0x82,0x40,0x82,0x80,0x28,0x80,0x82,0x00,0x80,0x41,0x08,
  240. 0x10,0x78,0x80,0x42,0x52,0x82,0x40,0x82,0x80,0x28,0x80,0x82,0x00,0x80,0x41,0x08,
  241. 0x10,0x48,0x80,0x7E,0x4A,0x82,0x40,0x82,0x80,0x10,0x80,0x82,0x00,0x80,0x41,0x08,
  242. 0x10,0x48,0x80,0x42,0x4A,0x82,0x40,0x82,0x8E,0x10,0x80,0x82,0x00,0x80,0x41,0x08,
  243. 0x10,0x40,0x80,0x42,0x4A,0x82,0x40,0x82,0x84,0x10,0x80,0x82,0x00,0x80,0x41,0x08,
  244. 0x10,0x42,0x42,0x42,0x46,0x82,0x40,0x82,0x44,0x10,0x42,0x82,0x00,0x80,0x41,0x08,
  245. 0x10,0x42,0x44,0x42,0x46,0x44,0x42,0x44,0x44,0x10,0x44,0x44,0xCC,0x84,0x41,0x13,
  246. 0x38,0xFC,0x38,0xE7,0xE2,0x38,0xFE,0x38,0x38,0x38,0x38,0x38,0xCD,0xFC,0xE3,0xE3,
  247. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,
  248. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
  249. };

  250. unsigned char code description3[]={
  251. /*--  宽度x高度=128x64  --*/

  252. 0x40,0x40,0x00,0x00,0x3F,0xFC,0x00,0x00,0x40,0x40,0x00,0x00,0x20,0x90,0x20,0x80,
  253. 0x20,0x20,0x0F,0xF0,0x20,0x04,0x00,0x00,0x20,0x20,0x0F,0xF0,0x20,0x90,0x20,0x80,
  254. 0x27,0xFE,0x08,0x10,0x20,0x04,0x00,0x00,0x27,0xFE,0x08,0x10,0x27,0xFC,0x20,0x80,
  255. 0x09,0x20,0x0F,0xF0,0x3F,0xFC,0x00,0x00,0x09,0x20,0x0F,0xF0,0x20,0x90,0x23,0xF8,
  256. 0x89,0x20,0x08,0x10,0x24,0x10,0x00,0x00,0x89,0x20,0x08,0x10,0xFB,0xF8,0xF8,0x88,
  257. 0x52,0x7C,0x0F,0xF0,0x22,0x20,0x00,0x00,0x52,0x7C,0x0F,0xF0,0x22,0x08,0x20,0x88,
  258. 0x52,0x44,0x08,0x10,0x2F,0xFC,0x00,0x00,0x52,0x44,0x08,0x10,0x73,0xF8,0x20,0x88,
  259. 0x16,0xA8,0x00,0x00,0x22,0x20,0x00,0x00,0x16,0xA8,0x00,0x00,0x6A,0x08,0x20,0x88,
  260. 0x2B,0x98,0x7E,0x7E,0x22,0x20,0x00,0x00,0x2B,0x98,0x7E,0x7E,0xA3,0xF8,0x2F,0xFE,
  261. 0x22,0x50,0x42,0x42,0x3F,0xFE,0x00,0x00,0x22,0x50,0x42,0x42,0xA0,0x40,0x20,0x80,
  262. 0xE2,0x20,0x7E,0x7E,0x22,0x20,0x00,0x00,0xE2,0x20,0x7E,0x7E,0x27,0xFE,0x39,0x40,
  263. 0x22,0x30,0x42,0x42,0x22,0x20,0x60,0x00,0x22,0x30,0x42,0x42,0x20,0x40,0xE1,0x20,
  264. 0x22,0x50,0x42,0x42,0x44,0x20,0x30,0x00,0x22,0x50,0x42,0x42,0x20,0xA0,0x42,0x18,
  265. 0x22,0x88,0x7E,0x7E,0x44,0x20,0x10,0x00,0x22,0x88,0x7E,0x7E,0x20,0x98,0x02,0x0E,
  266. 0x23,0x0E,0x42,0x42,0x88,0x20,0x00,0x00,0x23,0x0E,0x42,0x42,0x21,0x0E,0x04,0x04,
  267. 0x22,0x04,0x00,0x00,0x10,0x20,0x00,0x00,0x22,0x04,0x00,0x00,0x26,0x04,0x08,0x00,
  268. 0x01,0x00,0x04,0x40,0x24,0x04,0x40,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  269. 0x01,0x00,0x04,0x40,0x34,0x04,0x22,0x40,0x3F,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,
  270. 0x3F,0xF8,0x04,0x40,0x24,0x24,0x22,0x40,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  271. 0x02,0x00,0x04,0x44,0x3F,0xA4,0x03,0xFC,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  272. 0x02,0x00,0x44,0x46,0x44,0x24,0x04,0x40,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  273. 0xFF,0xFE,0x24,0x4C,0x04,0x24,0x00,0x40,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  274. 0x04,0x00,0x24,0x48,0x7F,0xA4,0xEF,0xFE,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  275. 0x08,0x20,0x14,0x50,0x04,0x24,0x20,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  276. 0x0F,0xF0,0x1C,0x50,0x3F,0xA4,0x23,0xF8,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  277. 0x00,0x20,0x14,0x60,0x24,0xA4,0x22,0x08,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  278. 0x00,0x40,0x04,0x40,0x24,0xA4,0x22,0x08,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  279. 0x02,0x80,0x04,0x40,0x24,0xA4,0x23,0xF8,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  280. 0x01,0x00,0x04,0x44,0x24,0x84,0x22,0x08,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  281. 0x00,0x80,0xFF,0xFE,0x27,0x84,0x50,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  282. 0x00,0x40,0x00,0x00,0x05,0x14,0x8F,0xFE,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  283. 0x00,0x00,0x00,0x00,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  284. 0x01,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  285. 0x01,0x00,0x20,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  286. 0x01,0x00,0x33,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  287. 0x3F,0xF8,0x20,0x20,0x00,0x00,0x3C,0x18,0x18,0x1C,0x7E,0x1C,0x18,0x7E,0x00,0x00,
  288. 0x21,0x08,0x00,0x20,0x00,0x00,0x42,0x24,0x24,0x24,0x44,0x24,0x24,0x40,0x00,0x00,
  289. 0x21,0x08,0x07,0xFE,0x00,0x00,0x42,0x42,0x42,0x40,0x44,0x40,0x42,0x40,0x00,0x00,
  290. 0x3F,0xF8,0xF0,0x20,0x00,0x00,0x42,0x42,0x42,0x40,0x08,0x40,0x42,0x40,0x00,0x00,
  291. 0x21,0x08,0x10,0x20,0x00,0x00,0x04,0x42,0x42,0x58,0x08,0x58,0x42,0x58,0x00,0x00,
  292. 0x21,0x08,0x10,0x20,0x00,0x00,0x04,0x26,0x42,0x64,0x10,0x64,0x42,0x64,0x00,0x00,
  293. 0x21,0x08,0x11,0xFC,0x30,0x00,0x08,0x1A,0x42,0x42,0x10,0x42,0x42,0x02,0x00,0x00,
  294. 0x3F,0xF8,0x11,0x04,0x30,0x00,0x10,0x02,0x42,0x42,0x10,0x42,0x42,0x02,0x00,0x00,
  295. 0x21,0x08,0x11,0x04,0x00,0x00,0x20,0x02,0x42,0x42,0x10,0x42,0x42,0x42,0x00,0x00,
  296. 0x01,0x02,0x15,0x04,0x30,0x00,0x42,0x24,0x24,0x24,0x10,0x24,0x24,0x44,0x00,0x00,
  297. 0x01,0x02,0x19,0xFC,0x30,0x00,0x7E,0x38,0x18,0x18,0x10,0x18,0x18,0x38,0x00,0x00,
  298. 0x00,0xFE,0x11,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  299. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  300. 0x10,0x40,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  301. 0x18,0x48,0x01,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  302. 0x17,0xFC,0x7F,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  303. 0x20,0x40,0x02,0x00,0x00,0x00,0x3C,0x7E,0x3C,0x1C,0x04,0x3C,0x1C,0x04,0x00,0x00,
  304. 0x20,0x80,0x0F,0xF0,0x00,0x00,0x42,0x44,0x42,0x24,0x0C,0x42,0x24,0x0C,0x00,0x00,
  305. 0x60,0x84,0x08,0x10,0x00,0x00,0x42,0x44,0x42,0x40,0x14,0x42,0x40,0x14,0x00,0x00,
  306. 0xAF,0xFE,0x0F,0xF0,0x00,0x00,0x42,0x08,0x04,0x40,0x24,0x42,0x40,0x24,0x00,0x00,
  307. 0x20,0x80,0x08,0x10,0x00,0x00,0x04,0x08,0x18,0x58,0x24,0x24,0x58,0x24,0x00,0x00,
  308. 0x21,0x08,0x0F,0xF0,0x00,0x00,0x04,0x10,0x04,0x64,0x44,0x18,0x64,0x44,0x00,0x00,
  309. 0x23,0xFC,0x08,0x10,0x30,0x00,0x08,0x10,0x02,0x42,0x44,0x24,0x42,0x44,0x00,0x00,
  310. 0x20,0x08,0x0F,0xF0,0x30,0x00,0x10,0x10,0x02,0x42,0x7E,0x42,0x42,0x7E,0x00,0x00,
  311. 0x21,0x10,0x08,0x10,0x00,0x00,0x20,0x10,0x42,0x42,0x04,0x42,0x42,0x04,0x00,0x00,
  312. 0x20,0xA0,0xFF,0xFE,0x30,0x00,0x42,0x10,0x44,0x24,0x04,0x42,0x24,0x04,0x00,0x00,
  313. 0x20,0x40,0x04,0x40,0x30,0x00,0x7E,0x10,0x38,0x18,0x1E,0x3C,0x18,0x1E,0x00,0x00,
  314. 0x20,0x20,0x18,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  315. 0x00,0x00,0x60,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  316. };

  317. unsigned char code description4[]={
  318. /*--  宽度x高度=128x64  --*/
  319. 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  320. 0x0F,0xFF,0x82,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  321. 0x08,0x00,0x82,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  322. 0x08,0x20,0x82,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  323. 0x0A,0x22,0x82,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  324. 0x09,0x53,0x9F,0xA4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  325. 0x08,0x8A,0x82,0x27,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  326. 0x08,0x84,0x82,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  327. 0x09,0x44,0x82,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  328. 0x09,0x4A,0x82,0x24,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  329. 0x0A,0x32,0x82,0x24,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  330. 0x0C,0x20,0x83,0xA4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  331. 0x08,0x00,0x9E,0x24,0x86,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  332. 0x08,0x03,0x88,0xFF,0xC6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  333. 0x08,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  334. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  335. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  336. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  337. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  338. 0x00,0x00,0x00,0x00,0x00,0x01,0x98,0x00,0xCE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  339. 0x00,0x00,0x00,0x00,0x00,0x01,0x88,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  340. 0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  341. 0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  342. 0x00,0x1A,0xFA,0xFA,0xE0,0x03,0x8B,0x83,0xC2,0x03,0x9F,0xC0,0x03,0x87,0x9F,0xC0,
  343. 0x00,0x12,0x52,0x52,0x40,0x00,0x8C,0x44,0x42,0x04,0x49,0x20,0x04,0x48,0x49,0x20,
  344. 0x00,0x12,0x52,0x52,0x40,0x00,0x88,0x48,0x42,0x08,0x09,0x20,0x08,0x08,0x49,0x20,
  345. 0x00,0x15,0x55,0x55,0x40,0x00,0x88,0x48,0x42,0x08,0x09,0x20,0x08,0x08,0x49,0x20,
  346. 0x00,0x15,0x55,0x55,0x40,0x00,0x88,0x48,0x42,0x08,0x09,0x20,0x08,0x08,0x49,0x20,
  347. 0x00,0x08,0x88,0x88,0x8C,0x00,0x88,0x44,0xC2,0x04,0x49,0x2C,0x04,0x48,0x49,0x20,
  348. 0x00,0x08,0x88,0x88,0x8C,0x00,0x9C,0xE3,0x6F,0x83,0x9D,0xAC,0x03,0x87,0x9D,0xA0,
  349. 0x00,0x00,0x00,0x00,0x00,0x08,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  350. 0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  351. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  352. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  353. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  354. 0x1D,0xC0,0x06,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  355. 0x0D,0x80,0x06,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  356. 0x0D,0x80,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  357. 0x0D,0x80,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  358. 0x0D,0x87,0x8E,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  359. 0x0A,0x88,0x42,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  360. 0x0A,0x83,0xC2,0x02,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  361. 0x0A,0x84,0x42,0x02,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  362. 0x0A,0x88,0x42,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  363. 0x0A,0x88,0x42,0x02,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  364. 0x1A,0xC7,0xEF,0x8F,0x86,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  365. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  366. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  367. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  368. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  369. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  370. 0x00,0x01,0x98,0x00,0xCE,0x00,0x00,0x07,0x02,0x03,0x87,0x80,0x00,0x00,0x00,0x00,
  371. 0x00,0x01,0x88,0x00,0x42,0x00,0x00,0x08,0x8E,0x04,0x88,0x40,0x00,0x00,0x00,0x00,
  372. 0x00,0x00,0x08,0x00,0x42,0x00,0x00,0x0B,0x42,0x08,0x08,0x40,0x00,0x00,0x00,0x00,
  373. 0x00,0x00,0x08,0x00,0x42,0x00,0x00,0x15,0x42,0x08,0x00,0x80,0x00,0x00,0x00,0x00,
  374. 0x00,0x03,0x8B,0x83,0xC2,0x03,0x9F,0xD5,0x42,0x0B,0x03,0x00,0x03,0x87,0x9F,0xC0,
  375. 0x00,0x00,0x8C,0x44,0x42,0x04,0x49,0x35,0x42,0x0C,0x80,0x80,0x04,0x48,0x49,0x20,
  376. 0x00,0x00,0x88,0x48,0x42,0x08,0x09,0x35,0x42,0x08,0x40,0x40,0x08,0x08,0x49,0x20,
  377. 0x00,0x00,0x88,0x48,0x42,0x08,0x09,0x36,0x82,0x08,0x40,0x40,0x08,0x08,0x49,0x20,
  378. 0x00,0x00,0x88,0x48,0x42,0x08,0x09,0x28,0x42,0x08,0x48,0x40,0x08,0x08,0x49,0x20,
  379. 0x00,0x00,0x88,0x44,0xC2,0x04,0x49,0x28,0x82,0x04,0x88,0x8C,0x04,0x48,0x49,0x20,
  380. 0x00,0x00,0x9C,0xE3,0x6F,0x83,0x9D,0xA7,0x0F,0x83,0x07,0x0C,0x03,0x87,0x9D,0xA0,
  381. 0x00,0x08,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  382. 0x00,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  383. };

  384. unsigned char code description5[]={
  385. /*--  宽度x高度=128x64  --*/
  386. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  387. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  388. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  389. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  390. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  391. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  392. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  393. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  394. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  395. 0x00,0x20,0x00,0x20,0x00,0x00,0x40,0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x02,0x00,
  396. 0x11,0x20,0x10,0x20,0x00,0x00,0x27,0xFE,0x12,0x04,0x01,0x00,0x01,0x00,0x01,0x00,
  397. 0x11,0x20,0x10,0x20,0x00,0x00,0x24,0x04,0x12,0x44,0xFF,0xFE,0x7F,0xFE,0x3F,0xFE,
  398. 0x11,0x24,0x10,0x20,0x00,0x00,0x01,0x20,0x12,0x44,0x01,0x00,0x40,0x04,0x20,0x04,
  399. 0xFD,0x3E,0x10,0x20,0x00,0x00,0x81,0x18,0xFE,0x44,0x01,0x00,0x80,0x08,0x44,0x08,
  400. 0x11,0xE4,0xFD,0x20,0x00,0x00,0x56,0x08,0x12,0x44,0x1F,0xF8,0x3F,0xF8,0x06,0x00,
  401. 0x17,0x24,0x11,0x3C,0x00,0x00,0x50,0x40,0x12,0x44,0x11,0x08,0x01,0x00,0x04,0x00,
  402. 0x11,0x24,0x11,0x20,0x00,0x00,0x10,0x40,0x12,0x44,0x11,0x08,0x01,0x00,0xFF,0xFE,
  403. 0x11,0x24,0x11,0x20,0x00,0x00,0x27,0xFC,0x12,0x44,0x11,0x08,0x01,0x00,0x08,0x20,
  404. 0x11,0x34,0x11,0x20,0x30,0x00,0x20,0x40,0x12,0x44,0x11,0x08,0x1F,0xF8,0x08,0x20,
  405. 0x11,0x28,0x11,0x20,0x30,0x00,0xC0,0xE0,0x3A,0x44,0x11,0x08,0x01,0x40,0x08,0x40,
  406. 0x1D,0x20,0x1D,0x20,0x00,0x00,0x41,0x58,0xC4,0x44,0x11,0x08,0x01,0x20,0x06,0x80,
  407. 0x31,0x02,0xF1,0x24,0x30,0x00,0x46,0x4E,0x04,0x44,0x11,0x28,0x01,0x30,0x01,0x00,
  408. 0xC1,0x02,0x47,0xFE,0x30,0x00,0x58,0x44,0x08,0x04,0x11,0x10,0x01,0x20,0x06,0xC0,
  409. 0x00,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x10,0x04,0x01,0x00,0x7F,0xFE,0x18,0x38,
  410. 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x40,0x00,0x00,0x01,0x00,0x00,0x00,0xE0,0x10,
  411. 0x00,0x00,0x00,0x00,0x01,0x00,0x10,0x20,0x42,0x04,0x20,0x00,0x01,0x00,0x00,0x00,
  412. 0x7F,0xFC,0xFF,0xFE,0x01,0x80,0x10,0x40,0x22,0x24,0x27,0xFC,0x01,0x00,0x3F,0xFC,
  413. 0x40,0x20,0x04,0x40,0x03,0x10,0x7F,0xFC,0x22,0x24,0x20,0x00,0x01,0x08,0x01,0x00,
  414. 0x40,0x30,0x04,0x40,0x06,0x18,0x52,0xC4,0x02,0x24,0x30,0x00,0x3F,0xFC,0x01,0x00,
  415. 0x48,0x20,0x7F,0xFC,0x08,0x30,0x18,0xA4,0x92,0x24,0xAB,0xF8,0x01,0x00,0x01,0x00,
  416. 0x46,0x40,0x44,0x44,0x1F,0xE0,0x24,0xA4,0x5B,0x34,0xAA,0x08,0x01,0x10,0x01,0x00,
  417. 0x41,0x40,0x44,0x44,0x00,0x88,0x3E,0x8C,0x56,0xAC,0xA2,0x08,0x3F,0xF8,0x01,0x00,
  418. 0x40,0x80,0x44,0x44,0x03,0x0C,0x68,0x80,0x22,0x24,0x23,0xF8,0x01,0x00,0x01,0x00,
  419. 0x41,0x40,0x44,0x44,0x0C,0x78,0xA8,0xFE,0x22,0x24,0x22,0x08,0x01,0x00,0x01,0x00,
  420. 0x42,0x20,0x48,0x3C,0x1F,0x90,0x3E,0x02,0x22,0x24,0x22,0x08,0x01,0x04,0x01,0x00,
  421. 0x44,0x30,0x50,0x04,0x08,0x10,0x28,0x02,0xC2,0x24,0x23,0xF8,0xFF,0xFE,0x01,0x00,
  422. 0x48,0x18,0x60,0x04,0x00,0x20,0x3E,0xFA,0x44,0x24,0x20,0x00,0x01,0x00,0x01,0x00,
  423. 0x50,0x10,0x40,0x04,0x00,0xC0,0x28,0x02,0x44,0x24,0x20,0x00,0x01,0x00,0x01,0x00,
  424. 0x7F,0xFC,0x7F,0xFC,0x07,0x00,0x28,0x02,0x48,0x24,0x2F,0xFE,0x01,0x00,0xFF,0xFE,
  425. 0x00,0x00,0x40,0x04,0x78,0x00,0x3F,0x0A,0x50,0x24,0x20,0x00,0x01,0x00,0x00,0x00,
  426. 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x04,0x40,0x04,0x00,0x00,0x01,0x00,0x00,0x00,
  427. 0x04,0x40,0x20,0x20,0x00,0x00,0x10,0x40,0x00,0x10,0x20,0x00,0x00,0x00,0x00,0x00,
  428. 0x04,0x40,0x20,0x28,0x00,0x00,0x10,0x40,0x00,0x10,0xA4,0x00,0x7F,0xFC,0x00,0x00,
  429. 0x04,0x40,0x20,0x24,0x00,0x00,0x13,0xFE,0x00,0x10,0x68,0x00,0x40,0x20,0x00,0x00,
  430. 0x04,0x44,0x27,0xFE,0x3E,0x1C,0xFC,0x40,0x3C,0xFD,0xFE,0x3E,0x40,0x30,0x00,0x00,
  431. 0x44,0x46,0xFC,0x20,0x42,0x24,0x10,0x80,0x42,0x10,0x70,0x08,0x48,0x20,0x00,0x00,
  432. 0x24,0x4C,0x24,0x24,0x42,0x40,0x30,0xA0,0x42,0x38,0xA8,0x08,0x46,0x40,0x00,0x00,
  433. 0x24,0x48,0x27,0xA6,0x80,0x40,0x39,0x20,0x42,0x35,0x26,0x08,0x41,0x40,0x00,0x00,
  434. 0x14,0x50,0x24,0xA4,0x80,0x58,0x55,0xFC,0x04,0x50,0x40,0x08,0x40,0x80,0x00,0x00,
  435. 0x1C,0x50,0x24,0xA8,0x80,0x64,0x50,0x20,0x04,0x50,0x40,0x08,0x41,0x40,0x00,0x00,
  436. 0x14,0x60,0x3C,0xA8,0x80,0x42,0x91,0x20,0x08,0x97,0xFE,0x08,0x42,0x20,0x00,0x00,
  437. 0x04,0x40,0xE4,0x90,0x80,0x42,0x11,0x28,0x10,0x10,0x90,0x08,0x44,0x30,0x00,0x00,
  438. 0x04,0x40,0x47,0x92,0x42,0x42,0x12,0x24,0x20,0x11,0x90,0x08,0x48,0x18,0x00,0x00,
  439. 0x04,0x44,0x09,0x2A,0x44,0x24,0x14,0x26,0x42,0x10,0x60,0x08,0x50,0x10,0x00,0x00,
  440. 0xFF,0xFE,0x08,0x4A,0x38,0x18,0x10,0x22,0x7E,0x10,0xD8,0x08,0x7F,0xFC,0x00,0x00,
  441. 0x00,0x00,0x11,0x84,0x00,0x00,0x10,0xA0,0x00,0x17,0x06,0x88,0x00,0x00,0x00,0x00,
  442. 0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x40,0x00,0x10,0x02,0xF0,0x00,0x00,0x00,0x00,
  443. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  444. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  445. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  446. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  447. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  448. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  449. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  450. };

  451. /**********************************/
  452. /*      Time Delay                */
  453. /**********************************/
  454. void Delay(long i)
  455. {
  456.      while(i!=0)
  457.         {
  458.               i--;
  459.          }
  460. }


  461. /**********************************/
  462. /*      Transfer Commmand         */
  463. /**********************************/
  464. void Write_Command(unsigned char command)
  465. {
  466.      int i,j;
  467.      j=0x80;
  468.      CS=0;
  469.      CD=0;
  470.      for(i=0;i<8;i++)
  471.      {
  472.         SCL=0;
  473.         if(command&j)SDA=1;
  474.         else SDA=0;
  475.         SCL=1;
  476.         j=j>>1;
  477.      }
  478.      CS=1;
  479. }

  480. /**********************************/
  481. /*      Transfer Data             */
  482. /**********************************/
  483. void Write_Data(unsigned char data1)
  484. {
  485.      int i,j;
  486.      j=0x80;
  487.      CS=0;
  488.      CD=1;
  489.      for(i=0;i<8;i++)
  490.      {
  491.         SCL=0;
  492.         if(data1&j)SDA=1;
  493.         else SDA=0;
  494.         SCL=1;
  495.         j=j>>1;
  496.      }
  497.      CS=1;
  498. }
  499. //-------------------------------------------------------------------
  500. void Set_column_addr(unsigned char add)
  501. {
  502.      unsigned char temp;
  503.      temp=add;
  504.      add=add>>4;
  505.      add=add&0x0f;
  506.      add=add|0x10;
  507.      Write_Command(add);        //Set upper addr;
  508.      add=temp;
  509.      add=add&0x0F;
  510.      Write_Command(add);        //Set lower addr;
  511. }
  512. //-----------------------------------------------------------------
  513. void Set_row_addr(unsigned char row)
  514. {
  515.      row=row&0x0F;
  516.      row=row|0x0B0;
  517.      Write_Command(row);                //page addr set        
  518. }        
  519. /**********************************/
  520. /*      LCD Initial Code          */
  521. /**********************************/
  522. void Lcd_Set()
  523. {
  524.      RESET=0;
  525.      Delay(1000);
  526.      RESET=1;
  527.      Delay(1000);
  528.      
  529.      Write_Command(0xE2);          //Software Reset
  530.      Write_Command(0xA2);          //Set Bias        0xA2
  531.      Write_Command(0xA0);          //Segment Direction Select ,bit0=1,reverse;=0,normal;
  532.      Write_Command(0xC8);          //Common Direction Select,bit3=1,reverse direction;=0,normal;     
  533.      Write_Command(0x2C);          //Power Control Set
  534.      Delay(10);
  535.      Write_Command(0x2E);          //Power Control Set
  536.      Delay(10);
  537.      Write_Command(0x2F);          //Power Control Set
  538.      Delay(10);
  539.      Write_Command(0x24);          //set ra/rb 0x25
  540.      Write_Command(0x81);          //Set Contrast     
  541.      Write_Command(0x2C);          //29
  542.      Write_Command(0xAF);          //Display ON

  543. }

  544. /**********************************/
  545. /*      Clear Display             */
  546. /**********************************/
  547. void Display_Clear(data1,data2)
  548. {
  549.      int i,j,m;
  550.      m=0xb0;
  551.      for(i=0;i<9;i++)
  552.         {
  553.             Write_Command(m);
  554.             Write_Command(0x10);
  555.             Write_Command(0x00);
  556.             for(j=0;j<66;j++)
  557.                {   
  558.                   Write_Data(data1);
  559.                   Write_Data(data2);
  560.                 }
  561.             m++;
  562.          }
  563. }
  564. /**********************************/
  565. void show_three_h_bar(int row)
  566. {
  567.      int i,page,row_data;
  568.      page=row/8;
  569.      i=row%8;
  570.      row_data=row_table[i];
  571.      
  572.      Set_row_addr(page-1);                //清除前一条横线
  573.      Set_column_addr(00);
  574.      for(i=0;i<132;i++)
  575.         {
  576.             Write_Data(0x00);
  577.          }
  578.      Set_row_addr(page);                //清除前一条横线
  579.      Set_column_addr(00);
  580.      for(i=0;i<132;i++)
  581.         {
  582.             Write_Data(0x00);
  583.          }

  584.      Set_row_addr(page);
  585.      Set_column_addr(00);
  586.      for(i=0;i<132;i++)
  587.         {
  588.             Write_Data(row_data);
  589.          }
  590. }
  591. /**********************************/
  592. /**********************************/
  593. /*      three vertical bar         */
  594. /**********************************/
  595. void show_three_v_bar(int bar)
  596. {
  597.      int i;
  598.      Set_column_addr(bar-1);
  599.      for(i=0;i<9;i++)
  600.         {
  601.             Set_row_addr(i);
  602.             Set_column_addr(bar-1);
  603.             Write_Data(0x00);
  604.          }
  605.      Set_column_addr(bar);
  606.      for(i=0;i<9;i++)
  607.         {
  608.             Set_row_addr(i);
  609.             Set_column_addr(bar);
  610.             Write_Data(0x0ff);
  611.          }
  612.      for(i=0;i<9;i++)
  613.         {
  614.             Set_row_addr(i);
  615.             Set_column_addr(bar+1);
  616.             Write_Data(0x0ff);
  617.          }
  618.      for(i=0;i<9;i++)
  619.         {
  620.             Set_row_addr(i);
  621.             Set_column_addr(bar+2);
  622.             Write_Data(0x0ff);
  623.          }
  624. }
  625. /**********************************/
  626. /**********************************/
  627. /*      one vertical bar         */
  628. /**********************************/
  629. void show_one_v_bar(int bar)
  630. {
  631.      int i;
  632.      Set_column_addr(bar-1);
  633.      for(i=0;i<9;i++)
  634.         {
  635.             Set_row_addr(i);
  636.             Set_column_addr(bar-1);
  637.             Write_Data(0x00);
  638.          }
  639.      Set_column_addr(bar);
  640.      for(i=0;i<9;i++)
  641.         {
  642.             Set_row_addr(i);
  643.             Set_column_addr(bar);
  644.             Write_Data(0x0ff);
  645.          }
  646. }
  647. /**********************************/
  648. /*      one horizontal bar         */
  649. /**********************************/
  650. void show_one_h_bar(int row)
  651. {
  652.      int i,page,row_data;
  653.      page=row/8;
  654.      i=row%8;
  655.      row_data=row_table[i];
  656.      
  657.      Set_row_addr(page-1);                //清除前一条横线
  658.      Set_column_addr(00);
  659.      for(i=0;i<132;i++)
  660.         {
  661.             Write_Data(0x00);
  662.          }
  663.      Set_row_addr(page);                //清除前一条横线
  664.      Set_column_addr(00);
  665.      for(i=0;i<132;i++)
  666.         {
  667.             Write_Data(0x00);
  668.          }

  669.      Set_row_addr(page);
  670.      Set_column_addr(00);
  671.      for(i=0;i<132;i++)
  672.         {
  673.             Write_Data(row_data);
  674.          }
  675. }
  676. /**********************************/
  677. /*      Display Font              */
  678. /**********************************/
  679. void Display_Font(unsigned char page0,seg0,unsigned char *p)
  680. {
  681.      int i,m,n;
  682.      m=((seg0&0xf0)>>4)|0x10;
  683.      n=seg0&0x0f;
  684.      Write_Command(page0);
  685.      Write_Command(m);
  686.      Write_Command(n);
  687.      for(i=0;i<5;i++)
  688.         {
  689.             Write_Data(*p++);
  690.          }
  691. }

  692. /**********************************/
  693. /*      Display Hanzi             */
  694. /**********************************/
  695. void Display_Hanzi(unsigned char page0,seg0,unsigned char *p)
  696. {
  697.      int i,m,n;
  698.      m=((seg0&0xf0)>>4)|0x10;
  699.      n=seg0&0x0f;
  700.      Write_Command(page0);
  701.      Write_Command(m);
  702.      Write_Command(n);
  703.      for(i=0;i<16;i++)
  704.         {
  705.             Write_Data(*p++);
  706.          }
  707.      m=((seg0&0xf0)>>4)|0x10;
  708.      n=seg0&0x0f;
  709.      Write_Command(page0+1);
  710.      Write_Command(m);
  711.      Write_Command(n);
  712.      for(i=0;i<16;i++)
  713.         {
  714.             Write_Data(*p++);
  715.          }
  716. }

  717. /**********************************/
  718. /*      Display Character         */
  719. /**********************************/
  720. void Display_Character(unsigned char page0,seg0,unsigned char *p0)
  721. {
  722.            int step0=10;
  723.            int step1=5;
  724.            Display_Font(page0,seg0,p0);
  725.            seg0=seg0+step0;
  726.            p0=p0+step1;
  727.            Display_Font(page0,seg0,p0);
  728.            seg0=seg0+step0;  
  729.            p0=p0+step1;
  730.            Display_Font(page0,seg0,p0);
  731.            seg0=seg0+step0;
  732.            p0=p0+step1;  
  733.            Display_Font(page0,seg0,p0);
  734.            seg0=seg0+step0;
  735.            p0=p0+step1;   
  736.            Display_Font(page0,seg0,p0);
  737.            seg0=seg0+step0;
  738.            p0=p0+step1;   
  739.            Display_Font(page0,seg0,p0);
  740.            seg0=seg0+step0;
  741.            p0=p0+step1;  
  742.            Display_Font(page0,seg0,p0);
  743.            seg0=seg0+step0;
  744.            p0=p0+step1;
  745.            Display_Font(page0,seg0,p0);
  746.            seg0=seg0+step0;
  747.            p0=p0+step1;  
  748.            Display_Font(page0,seg0,p0);
  749.            seg0=seg0+step0;
  750.            p0=p0+step1;  
  751.            Display_Font(page0,seg0,p0);
  752.            seg0=seg0+step0;
  753.            p0=p0+step1;
  754.            Display_Font(page0,seg0,p0);
  755.            seg0=seg0+step0;
  756.            p0=p0+step1;
  757.            Display_Font(page0,seg0,p0);
  758.            seg0=seg0+step0;
  759.            p0=p0+step1;
  760.            Display_Font(page0,seg0,p0);
  761.            /*
  762.            seg0=seg0+step0;
  763.            p0=p0+step1;  
  764.            Display_Font(page0,seg0,p0);
  765.            seg0=seg0+step0;
  766.            p0=p0+step1;
  767.            Display_Font(page0,seg0,p0);
  768.            seg0=seg0+step0;
  769.            p0=p0+step1;  
  770.            Display_Font(page0,seg0,p0);
  771.            seg0=seg0+step0;
  772.            p0=p0+step1;
  773.            Display_Font(page0,seg0,p0);
  774.            seg0=seg0+step0;
  775.            p0=p0+step1;
  776.            Display_Font(page0,seg0,p0);
  777.            seg0=seg0+step0;
  778.            p0=p0+step1;  
  779.            Display_Font(page0,seg0,p0);
  780.            seg0=seg0+step0;
  781.            p0=p0+step1;  
  782.            Display_Font(page0,seg0,p0);
  783.            seg0=seg0+step0;
  784.            p0=p0+step1;
  785.            Display_Font(page0,seg0,p0);
  786.            seg0=seg0+step0;
  787.            p0=p0+step1;
  788.            Display_Font(page0,seg0,p0);
  789.            seg0=seg0+step0;
  790.            p0=p0+step1;
  791.            Display_Font(page0,seg0,p0);
  792.            seg0=seg0+step0;
  793.            p0=p0+step1;
  794.            Display_Font(page0,seg0,p0);
  795.            seg0=seg0+step0;
  796.            p0=p0+step1;
  797.            Display_Font(page0,seg0,p0);        
  798.            
  799.            seg0=seg0+step0;
  800.            p0=p0+step1;
  801.            Display_Font(page0,seg0,_00);
  802.            */
  803.            
  804. }
  805. //-------------------------------------------------------------------
  806. void Show_one_char(unsigned char xs,unsigned char page,unsigned char *p)
  807. {
  808.      int i;
  809.      Set_column_addr(xs);                //column addr set   
  810.      Set_row_addr(page);
  811.      for(i=0;i<5;i++)                //5X8 font
  812.         {
  813.             Write_Data(*(p++));
  814.             //Write_Data(*(p++));
  815.          }
  816. }
  817. //------------------------------------------------------------------

  818. //------------------------------------------------------------------
  819. void Conversion_T0_char(int number)
  820. {
  821.            Buf_1=number/100;
  822.            conversion=number%100;
  823.            Buf_2=conversion/10;
  824.            Buf_3=conversion%10;           
  825. }        
  826. //-------------------------------------------------------------------
  827. char *Get_addr(int num)
  828. {
  829.                         unsigned char *pt;
  830.                         switch(num)
  831.                         {
  832.                                 case 0: pt=char_0;break;
  833.                                 case 1: pt=char_1;break;
  834.                                 case 2: pt=char_2;break;
  835.                                 case 3: pt=char_3;break;
  836.                                 case 4: pt=char_4;break;
  837.                                 case 5: pt=char_5;break;
  838.                                 case 6: pt=char_6;break;        
  839.                                 case 7: pt=char_7;break;        
  840.                                 case 8: pt=char_8;break;
  841.                                 case 9: pt=char_9;break;
  842.                         }
  843.                         return pt;
  844. }        
  845. //------------------------------------------------------------------
  846. void show_three_number(unsigned char x,y,int n)
  847. {
  848.          Conversion_T0_char(n);
  849.          char_point=Get_addr(Buf_1);
  850.          Show_one_char(x,y,char_point);
  851.          char_point=Get_addr(Buf_2);
  852.          x=x+5;
  853.          Show_one_char(x,y,char_point);
  854.          char_point=Get_addr(Buf_3);
  855.          x=x+5;
  856.          Show_one_char(x,y,char_point);
  857. }
  858. //********************************
  859. /**********************************/
  860. void Wait_Press()
  861. {
  862.         while(KEY_PRESS);
  863.         Delay(0x5000);         
  864. }
  865. /**********************************/
  866. /*      Draw a image              */
  867. /**********************************/
  868. void Display_Image(unsigned char page0,seg0,pagew,segw,unsigned char *p)
  869. {
  870.      int i,j,m,n;
  871.      m=((seg0&0xf0)>>4)|0x10;
  872.      n=seg0&0x0f;
  873.      for(i=0;i<pagew;i++)
  874.         {
  875.             Write_Command(page0);
  876.             Write_Command(m);
  877.             Write_Command(n);
  878.             for(j=0;j<segw;j++)
  879.                {   
  880.                   Write_Data(*(p++));
  881.                 }
  882.             page0++;
  883.          }
  884. }
  885. /**********************************/
  886. //REGULATE CONTRAST
  887. void Regulate_contrast()
  888. {
  889.         
  890.         while(EXIT_KEY&&01)
  891.         {
  892.             if(KEY_PRESS==0)
  893.             {
  894.                     contrast=contrast+1;
  895.                      Write_Command(0x81);          //Set Contrast     
  896.                      Write_Command(contrast);                             
  897.                      Delay(0x5000);
  898.             }
  899.             if(DEC_KEY==0)
  900.             {
  901.                     contrast=contrast-1;
  902.                      Write_Command(0x81);          //Set Contrast     
  903.                      Write_Command(contrast);                             
  904.                 Delay(0x5000);
  905.             }               
  906.         }        
  907. }        
  908. /**********************************/
  909. /*      Main                      */
  910. /**********************************/
  911. void main()
  912. {
  913.      int i;
  914.      int j=0x40;
  915.      contrast=0x0C;
  916.      Lcd_Set();     
  917.      while(1)
  918.         {

  919.            
  920.            Display_Image(0xb0,0x01,8,128,description1);
  921.            Wait_Press();        //Delay(0x5000);
  922.                    Display_Image(0xb0,0x01,8,128,description2);
  923.            Wait_Press();        //Delay(0x5000);
  924.            Display_Image(0xb0,0x01,8,128,description3);
  925.            Wait_Press();        //Delay(0x5000);
  926.                    Display_Image(0xb0,0x01,8,128,description4);
  927.            Wait_Press();        //Delay(0x5000);

  928.                    Display_Image(0xb0,0x01,8,128,description5);
  929.            Wait_Press();        //Delay(0x5000);


  930. //           Regulate_contrast();
  931.           // Display_Image(0xb0,0x01,8,128,orise_tech);
  932.           // Wait_Press();        //Delay(0x5000);
  933.                 Display_Clear(0x00,0x00);
  934.                 Display_Clear(0x55,0xaa);                        //SNOW
  935.                 Wait_Press();
  936.                 Display_Clear(0x00,0x00);
  937.                 Display_Clear(0xFF,0xFF);                        //BLACK
  938.                 Wait_Press();
  939.                
  940.                 Display_Clear(0x00,0x00);
  941.                 Display_Clear(0xff,0x00);                        //V_BAR
  942.                 Wait_Press();
  943.                
  944.                 Display_Clear(0x00,0x00);
  945.                 Display_Clear(0x55,0x55);                        //H_BAR
  946.                 Wait_Press();                  
  947.                
  948.                 Display_Clear(0x00,0x00);
  949.                 //Display_Clear(0xFF,0xFF);                        //BLACK
  950.                 for(i=0;i<65;i++)
  951.                 {
  952.                    show_one_h_bar(i);
  953.                    show_three_number(4,3,i);
  954.                    Wait_Press();
  955.                 }
  956. /*
  957.                 Display_Clear(0x00,0x00);
  958.                 for(i=0;i<132;i++)
  959.                 {
  960.                    show_one_v_bar(i);
  961. //                   show_three_v_bar(i);
  962.                    show_three_number(4,0,i);
  963.                    Wait_Press();
  964.                 }        
  965.                 Display_Clear(0x00,0x00);
  966.                
  967. …………限于本文篇幅 余下代码请从51黑下载附件…………
复制代码

完整资料下载:
使用st7565R芯片的12864液晶驱动和资料-_单色COG液晶的规格书和源代码例程等.zip (970.39 KB, 下载次数: 95)
回复

使用道具 举报

ID:218242 发表于 2017-9-26 10:00 | 显示全部楼层
谢谢楼主的程序
回复

使用道具 举报

ID:87000 发表于 2021-9-13 11:16 | 显示全部楼层
老王店铺里面有这个屏了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表