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

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

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

  1. unsigned char*ucArray,unsigned char ucFbFlag,unsigned int x_amount,unsigned int y_amount,unsigned int uiOffSetAddr); //显示任意点阵函数
  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. void wd3(void);//窗口3设置速度
  15. void wd4(void);//窗口4设置频率
  16. code unsigned char Zf816_0[]=
  17. {
  18. /*--文字:0--*/
  19. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  20. 0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x24,0x18,0x00,0x00,
  21. };
  22. code unsigned char Zf816_1[]=
  23. {
  24. /*--文字:1--*/
  25. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  26. 0x00,0x00,0x00,0x10,0x70,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,
  27. };
  28. code unsigned char Zf816_2[]=
  29. {
  30. /*--文字:2--*/
  31. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  32. 0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x04,0x04,0x08,0x10,0x20,0x42,0x7E,0x00,0x00,
  33. };
  34. code unsigned char Zf816_3[]=
  35. {
  36. /*--文字:3--*/
  37. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  38. 0x00,0x00,0x00,0x3C,0x42,0x42,0x04,0x18,0x04,0x02,0x02,0x42,0x44,0x38,0x00,0x00,
  39. };
  40. code unsigned char Zf816_4[]=
  41. {
  42. /*--文字:4--*/
  43. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  44. 0x00,0x00,0x00,0x04,0x0C,0x14,0x24,0x24,0x44,0x44,0x7E,0x04,0x04,0x1E,0x00,0x00,
  45. };
  46. code unsigned char Zf816_5[]=
  47. {
  48. /*--文字:5--*/
  49. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  50. 0x00,0x00,0x00,0x7E,0x40,0x40,0x40,0x58,0x64,0x02,0x02,0x42,0x44,0x38,0x00,0x00,
  51. };
  52. code unsigned char Zf816_6[]=
  53. {
  54. /*--文字:6--*/
  55. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  56. 0x00,0x00,0x00,0x1C,0x24,0x40,0x40,0x58,0x64,0x42,0x42,0x42,0x24,0x18,0x00,0x00,
  57. };
  58. code unsigned char Zf816_7[]=
  59. {
  60. /*--文字:7--*/
  61. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  62. 0x00,0x00,0x00,0x7E,0x44,0x44,0x08,0x08,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00,
  63. };
  64. code unsigned char Zf816_8[]=
  65. {
  66. /*--文字:8--*/
  67. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  68. 0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x24,0x18,0x24,0x42,0x42,0x42,0x3C,0x00,0x00,
  69. };
  70. code unsigned char Zf816_9[]=
  71. {
  72. /*--文字:9--*/
  73. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  74. 0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x26,0x1A,0x02,0x02,0x24,0x38,0x00,0x00,
  75. };
  76. code unsigned char Zf816_nc[]=//空字模
  77. {
  78. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  79. };
  80. code unsigned char Zf816_mao_hao[]=//冒号
  81. {
  82. /*--文字::--*/
  83. /*--宋体12;此字体下对应的点阵为:宽x高=8x16 --*/
  84. 0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,
  85. };
  86. code unsigned char Hz1616_zhu[]=
  87. {
  88. /*--文字:主--*/
  89. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  90. 0x02,0x00,0x01,0x80,0x01,0x00,0x00,0x08,0x3F,0xFC,0x01,0x00,0x01,0x00,0x01,0x08,
  91. 0x3F,0xFC,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x04,0x7F,0xFE,0x00,0x00,0x00,0x00,
  92. };
  93. code unsigned char Hz1616_cai[]=
  94. {
  95. /*--文字:菜--*/
  96. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  97. 0x04,0x40,0xFF,0xFE,0x04,0x40,0x04,0x40,0x3F,0xF8,0x22,0x08,0x11,0x10,0x08,0x20,
  98. 0x01,0x00,0x7F,0xFE,0x03,0x80,0x05,0x40,0x09,0x30,0x11,0x1C,0x61,0x08,0x01,0x00,
  99. };
  100. code unsigned char Hz1616_dan[]=
  101. {
  102. /*--文字:单--*/
  103. /*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/
  104. 0x08,0x20,0x06,0x30,0x04,0x40,0x3F,0xF8,0x21,0x08,0x3F,0xF8,0x21,0x08,0x21,0x08,
  105. 0x3F,0xF8,0x21,0x08,0x01,0x00,0xFF,0xFE,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,
  106. };
  107. code unsigned char Hz1616_she[]=
  108. {
  109. /*--文字:设--*/
  110. /*--宋体12;此

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

网站地图

Top