微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > 第78节:多个窗口里移动光标设置参数的液晶屏菜单程序

第78节:多个窗口里移动光标设置参数的液晶屏菜单程序

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

  1. r); //显示任意点阵函数
  2. unsigned char *number_to_matrix(unsigned charucBitNumber); //把一位数字转换成字模首地址的函数
  3. void delay_short(unsigned int uiDelayshort); //延时
  4. void delay_long(unsigned int uiDelayLong);
  5. void T0_time(); //定时中断函数
  6. void key_service(void); //按键服务的应用程序
  7. void key_scan(void);//按键扫描函数 放在定时中断里
  8. void initial_myself();
  9. void initial_peripheral();
  10. void lcd_display_service(void); //应用层面的液晶屏显示程序
  11. void clear_all_canvas(void);//把画布全部清零
  12. void wd1(void);//窗口1显示的内容
  13. void wd2(void);//窗口2显示的内容
  14. code unsigned char Zf816_0[]=
  15. {
  16. /*--文字:0--*/
  17. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  18. 0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x24,0x18,0x00,0x00,
  19. };
  20. code unsigned char Zf816_1[]=
  21. {
  22. /*--文字:1--*/
  23. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  24. 0x00,0x00,0x00,0x10,0x70,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,
  25. };
  26. code unsigned char Zf816_2[]=
  27. {
  28. /*--文字:2--*/
  29. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  30. 0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x04,0x04,0x08,0x10,0x20,0x42,0x7E,0x00,0x00,
  31. };
  32. code unsigned char Zf816_3[]=
  33. {
  34. /*--文字:3--*/
  35. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  36. 0x00,0x00,0x00,0x3C,0x42,0x42,0x04,0x18,0x04,0x02,0x02,0x42,0x44,0x38,0x00,0x00,
  37. };
  38. code unsigned char Zf816_4[]=
  39. {
  40. /*--文字:4--*/
  41. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  42. 0x00,0x00,0x00,0x04,0x0C,0x14,0x24,0x24,0x44,0x44,0x7E,0x04,0x04,0x1E,0x00,0x00,
  43. };
  44. code unsigned char Zf816_5[]=
  45. {
  46. /*--文字:5--*/
  47. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  48. 0x00,0x00,0x00,0x7E,0x40,0x40,0x40,0x58,0x64,0x02,0x02,0x42,0x44,0x38,0x00,0x00,
  49. };
  50. code unsigned char Zf816_6[]=
  51. {
  52. /*--文字:6--*/
  53. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  54. 0x00,0x00,0x00,0x1C,0x24,0x40,0x40,0x58,0x64,0x42,0x42,0x42,0x24,0x18,0x00,0x00,
  55. };
  56. code unsigned char Zf816_7[]=
  57. {
  58. /*--文字:7--*/
  59. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  60. 0x00,0x00,0x00,0x7E,0x44,0x44,0x08,0x08,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00,
  61. };
  62. code unsigned char Zf816_8[]=
  63. {
  64. /*--文字:8--*/
  65. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  66. 0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x24,0x18,0x24,0x42,0x42,0x42,0x3C,0x00,0x00,
  67. };
  68. code unsigned char Zf816_9[]=
  69. {
  70. /*--文字:9--*/
  71. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  72. 0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x26,0x1A,0x02,0x02,0x24,0x38,0x00,0x00,
  73. };
  74. code unsigned char Zf816_nc[]=//空字模
  75. {
  76. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  77. };
  78. code unsigned char Zf816_mao_hao[]=//冒号
  79. {
  80. /*--文字::--*/
  81. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  82. 0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,
  83. };
  84. code unsigned char Hz1616_yi[]=
  85. {
  86. /*--文字:一--*/
  87. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  88. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x7F,0xFE,
  89. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  90. };
  91. code unsigned char Hz1616_er[]=
  92. {
  93. /*--文字:二--*/
  94. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  95. 0x00,0x00,0x00,0x10,0x3F,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  96. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x7F,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,
  97. };
  98. code unsigned char Hz1616_san[]=
  99. {
  100. /*--文字:三--*/
  101. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  102. 0x00,0x00,0x00,0x00,0x7F,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0xF8,
  103. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFE,0x00,0x00,0x00,0x00,
  104. };
  105. code unsigned char Hz1616_si[]=
  106. {
  107. /*--文字:四--*/
  108. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  109. 0x00,0x00,0x7F,0xFC,0x44,0x84,0x44,0x84,0x44,0x84,0x44,0x84,0x44,0x84,0x44,0x84,
  110. 0x48,0x84,0x48,0x7C,0x50,0x04,0x60,0x04,0x40,0x04,0x7F,

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

网站地图

Top