微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > 第79节:通过主菜单移动光标来进入子菜单窗口的液晶屏程序

第79节:通过主菜单移动光标来进入子菜单窗口的液晶屏程序

时间:11-22 来源:互联网 点击:

  1. 字体下对应的点阵为:宽x高=16x16 --*/
  2. 0x40,0x00,0x21,0xF0,0x31,0x10,0x21,0x10,0x01,0x10,0x01,0x10,0xE2,0x0E,0x25,0xF8,
  3. 0x21,0x08,0x21,0x08,0x20,0x90,0x20,0x90,0x28,0x60,0x30,0x90,0x23,0x0E,0x0C,0x04,
  4. };
  5. code unsigned char Hz1616_zhi[]=
  6. {
  7. /*--文字:置--*/
  8. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  9. 0x3F,0xF8,0x24,0x48,0x24,0x48,0x3F,0xF8,0x01,0x00,0x7F,0xFC,0x02,0x00,0x1F,0xF0,
  10. 0x10,0x10,0x1F,0xF0,0x10,0x10,0x1F,0xF0,0x10,0x10,0x1F,0xF0,0x10,0x10,0xFF,0xFE,
  11. };
  12. code unsigned char Hz1616_su[]=
  13. {
  14. /*--文字:速--*/
  15. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  16. 0x00,0x80,0x40,0x80,0x2F,0xFC,0x20,0x80,0x00,0x80,0x07,0xF8,0xE4,0x88,0x24,0x88,
  17. 0x27,0xF8,0x21,0xA0,0x22,0x98,0x2C,0x88,0x20,0x80,0x50,0x80,0x8F,0xFE,0x00,0x00,
  18. };
  19. code unsigned char Hz1616_du[]=
  20. {
  21. /*--文字:度--*/
  22. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  23. 0x01,0x00,0x00,0x80,0x3F,0xFE,0x22,0x20,0x22,0x20,0x2F,0xFC,0x22,0x20,0x23,0xE0,
  24. 0x20,0x00,0x27,0xF8,0x22,0x10,0x21,0x20,0x20,0xC0,0x41,0x30,0x46,0x0E,0x98,0x04,
  25. };
  26. code unsigned char Hz1616_shi[]=
  27. {
  28. /*--文字:时--*/
  29. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  30. 0x00,0x10,0x00,0x10,0x7C,0x10,0x44,0x10,0x47,0xFE,0x44,0x10,0x7C,0x10,0x45,0x10,
  31. 0x44,0x90,0x44,0x90,0x7C,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x50,0x00,0x20,
  32. };
  33. code unsigned char Hz1616_jian[]=
  34. {
  35. /*--文字:间--*/
  36. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  37. 0x20,0x00,0x13,0xFC,0x10,0x04,0x40,0x04,0x47,0xE4,0x44,0x24,0x44,0x24,0x47,0xE4,
  38. 0x44,0x24,0x44,0x24,0x47,0xE4,0x40,0x04,0x40,0x04,0x40,0x04,0x40,0x14,0x40,0x08,
  39. };
  40. code unsigned char Hz1616_pin[]=
  41. {
  42. /*--文字:频--*/
  43. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  44. 0x08,0x00,0x08,0xFE,0x4E,0x20,0x48,0x40,0x48,0xFC,0xFE,0x84,0x00,0xA4,0x08,0xA4,
  45. 0x4A,0xA4,0x4A,0xA4,0x84,0xA4,0x08,0x50,0x10,0x48,0x20,0x86,0xC3,0x02,0x00,0x00,
  46. };
  47. code unsigned char Hz1616_lv[]=
  48. {
  49. /*--文字:率--*/
  50. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  51. 0x02,0x00,0x01,0x00,0x7F,0xFE,0x41,0x00,0x22,0x28,0x17,0xD0,0x04,0x80,0x11,0x10,
  52. 0x22,0x48,0x47,0xC4,0x01,0x20,0xFF,0xFE,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,
  53. };
  54. code unsigned char Hz1616_fan[]=
  55. {
  56. /*--文字:范--*/
  57. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  58. 0x04,0x20,0x04,0x20,0xFF,0xFE,0x04,0x60,0x40,0x00,0x31,0xF8,0x91,0x08,0x61,0x08,
  59. 0x49,0x08,0x09,0x38,0x11,0x10,0xE1,0x00,0x21,0x04,0x21,0x04,0x20,0xFC,0x20,0x00,
  60. };
  61. code unsigned char Hz1616_wei[]=
  62. {
  63. /*--文字:围--*/
  64. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  65. 0x7F,0xFC,0x42,0x04,0x42,0x04,0x5F,0xF4,0x42,0x04,0x4F,0xE4,0x42,0x04,0x5F,0xE4,
  66. 0x42,0x24,0x42,0x24,0x42,0x24,0x42,0xA4,0x42,0x44,0x40,0x04,0x7F,0xFC,0x40,0x04,
  67. };
  68. code unsigned char Hz1616_shang[]=
  69. {
  70. /*--文字:上--*/
  71. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  72. 0x00,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0xF8,0x01,0x00,
  73. 0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x04,0x7F,0xFE,0x00,0x00,
  74. };
  75. code unsigned char Hz1616_xia[]=
  76. {
  77. /*--文字:下--*/
  78. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  79. 0x00,0x04,0x7F,0xFE,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0xC0,0x01,0x60,0x01,0x30,
  80. 0x01,0x20,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x00,0x00,
  81. };
  82. code unsigned char Hz1616_xian[]=
  83. {
  84. /*--文字:限--*/
  85. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  86. 0x00,0x00,0xFB,0xF8,0x92,0x08,0x93,0xF8,0xA2,0x08,0xA2,0x08,0x93,0xF8,0x8A,0x80,
  87. 0x8A,0x48,0xAA,0x50,0x92,0x20,0x82,0x20,0x82,0x10,0x82,0x8E,0x83,0x04,0x82,0x00,
  88. };
  89. unsigned char ucCanvasBuffer[]= //画布显示数组。注意,这里没有code关键字,是全局变量。初始化全部填充0x00
  90. {
  91. 0x00,0x00,0x00,0x00,//上半屏
  92. 0x00,0x00,0x00,0x00,
  93. 0x00,0x00,0x00,0x00,
  94. 0x00,0x00,0x00,0x00,
  95. 0x00,0x00,0x00,0x00,
  96. 0x00,0x00,0x00,0x00,
  97. 0x00,0x00,0x00,0x00,
  98. 0x00,0x00,0x00,0x00,
  99. //------------上半屏

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top