?? +-
字號:
C51 COMPILER V8.05a 溫度圖 04/15/2009 22:04:18 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE 溫度圖
OBJECT MODULE PLACED IN 溫度圖.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE 溫度圖.c BROWSE DEBUG OBJECTEXTEND
line level source
1 //-------下列代碼是一幅溫度的顯示圖------------------
2 //該圖是通過一個字節(jié)一個字節(jié)寫出來的--------------------
3 extern void LPH7366_write_doc(unsigned char symbol_line,unsigned char symbol_row,unsigned char doc); //LPH
-7366任意寫入字節(jié)函數(shù)
4 unsigned char face_flag=1;
5
6 /*******************************溫度主畫面*****************************/
7 /*函數(shù)原型:void pic_temp()
8 /*函數(shù)功能:顯示溫度主畫面
9 /*輸入?yún)?shù):無
10 /*輸出參數(shù):無
11 /*調(diào)用模塊:LPH7366_write_doc()
12
13 /**********************************************************************/
14 void pic_temp()
15 {
16 1 unsigned char i;
17 1 //-----------------1--------------------------
18 1 LPH7366_write_doc(1,2,0xf0);
19 1 LPH7366_write_doc(1,3,0x08);
20 1 LPH7366_write_doc(1,4,0x04);
21 1 LPH7366_write_doc(1,5,0x02);
22 1 LPH7366_write_doc(1,6,0x32);
23 1 LPH7366_write_doc(1,7,0x31);
24 1 LPH7366_write_doc(1,8,0x01);
25 1 LPH7366_write_doc(1,9,0x01);
26 1 LPH7366_write_doc(1,10,0x01);
27 1 LPH7366_write_doc(1,11,0x31);
28 1 LPH7366_write_doc(1,12,0x32);
29 1 LPH7366_write_doc(1,13,0x02);
30 1 LPH7366_write_doc(1,14,0x04);
31 1 LPH7366_write_doc(1,15,0x08);
32 1 LPH7366_write_doc(1,16,0xf0);
33 1 LPH7366_write_doc(1,69,0x10);
34 1 LPH7366_write_doc(1,70,0x50);
35 1 LPH7366_write_doc(1,71,0xf0);
36 1 LPH7366_write_doc(1,74,0xf0);
37 1 LPH7366_write_doc(1,75,0x10);
38 1 LPH7366_write_doc(1,76,0xf0);
39 1 LPH7366_write_doc(1,78,0xf8);
40 1 LPH7366_write_doc(1,79,0x04);
41 1 LPH7366_write_doc(1,80,0x04);
42 1 LPH7366_write_doc(1,81,0x04);
43 1 LPH7366_write_doc(1,82,0xf8);
44 1 //--------------------2---------------------
45 1 LPH7366_write_doc(2,1,0x80);
46 1 LPH7366_write_doc(2,2,0x81);
47 1 LPH7366_write_doc(2,3,0x82);
48 1 LPH7366_write_doc(2,4,0x84);
49 1 LPH7366_write_doc(2,5,0x88);
50 1 LPH7366_write_doc(2,6,0x88);
51 1 LPH7366_write_doc(2,7,0x90);
52 1 LPH7366_write_doc(2,8,0x90);
53 1 LPH7366_write_doc(2,9,0x90);
54 1 LPH7366_write_doc(2,10,0x90);
C51 COMPILER V8.05a 溫度圖 04/15/2009 22:04:18 PAGE 2
55 1 LPH7366_write_doc(2,11,0x90);
56 1 LPH7366_write_doc(2,12,0x88);
57 1 LPH7366_write_doc(2,13,0x88);
58 1 LPH7366_write_doc(2,14,0x44);
59 1 LPH7366_write_doc(2,15,0x22);
60 1 LPH7366_write_doc(2,16,0x31);
61 1 for(i=17;i<58;i++)
62 1 {
63 2 LPH7366_write_doc(2,i,0x30);
64 2 }
65 1 LPH7366_write_doc(2,58,0x20);
66 1 LPH7366_write_doc(2,59,0x40);
67 1 LPH7366_write_doc(2,60,0x80);
68 1 LPH7366_write_doc(2,68,0x80);
69 1 LPH7366_write_doc(2,69,0x45);
70 1 LPH7366_write_doc(2,70,0x45);
71 1 LPH7366_write_doc(2,71,0xc5);
72 1 LPH7366_write_doc(2,72,0x04);
73 1 LPH7366_write_doc(2,73,0x04);
74 1 LPH7366_write_doc(2,74,0xc5);
75 1 LPH7366_write_doc(2,75,0x45);
76 1 LPH7366_write_doc(2,76,0xc5);
77 1 LPH7366_write_doc(2,78,0xff);
78 1 LPH7366_write_doc(2,82,0xff);
79 1 //--------------3-----------------------------
80 1 LPH7366_write_doc(3,61,0x01);
81 1 LPH7366_write_doc(3,62,0xfe);
82 1 LPH7366_write_doc(3,68,0x04);
83 1 LPH7366_write_doc(3,69,0x16);
84 1 LPH7366_write_doc(3,70,0x15);
85 1 LPH7366_write_doc(3,71,0x14);
86 1 LPH7366_write_doc(3,72,0x10);
87 1 LPH7366_write_doc(3,73,0x10);
88 1 LPH7366_write_doc(3,74,0x17);
89 1 LPH7366_write_doc(3,75,0x14);
90 1 LPH7366_write_doc(3,76,0x17);
91 1 LPH7366_write_doc(3,78,0xff);
92 1 LPH7366_write_doc(3,82,0xff);
93 1 //--------------4---------------------------
94 1 LPH7366_write_doc(4,59,0x80);
95 1 LPH7366_write_doc(4,60,0x40);
96 1 LPH7366_write_doc(4,61,0x20);
97 1 LPH7366_write_doc(4,62,0x1f);
98 1 LPH7366_write_doc(4,69,0x51);
99 1 LPH7366_write_doc(4,70,0x5f);
100 1 LPH7366_write_doc(4,71,0x50);
101 1 LPH7366_write_doc(4,72,0x40);
102 1 LPH7366_write_doc(4,73,0x40);
103 1 LPH7366_write_doc(4,74,0x5f);
104 1 LPH7366_write_doc(4,75,0x51);
105 1 LPH7366_write_doc(4,76,0x5f);
106 1 LPH7366_write_doc(4,78,0xff);
107 1 LPH7366_write_doc(4,82,0xff);
108 1 //---------------5---------------------
109 1 for(i=1;i<58;i++)
110 1 {
111 2 LPH7366_write_doc(5,i,0x03);
112 2 }
113 1 LPH7366_write_doc(5,58,0x01);
114 1 LPH7366_write_doc(5,74,0x7c);
115 1 LPH7366_write_doc(5,75,0x44);
116 1 LPH7366_write_doc(5,76,0x7c);
C51 COMPILER V8.05a 溫度圖 04/15/2009 22:04:18 PAGE 3
117 1 LPH7366_write_doc(5,78,0xff);
118 1 LPH7366_write_doc(5,82,0xff);
119 1 //--------------6----------------------
120 1 LPH7366_write_doc(6,73,0x01);
121 1 LPH7366_write_doc(6,74,0x01);
122 1 LPH7366_write_doc(6,75,0x01);
123 1 LPH7366_write_doc(6,76,0x01);
124 1 LPH7366_write_doc(6,78,0x0f);
125 1 LPH7366_write_doc(6,79,0x1f);
126 1 LPH7366_write_doc(6,80,0x1f);
127 1 LPH7366_write_doc(6,81,0x1f);
128 1 LPH7366_write_doc(6,82,0x0f);
129 1 }
130
131 /*******************************臉部表情選擇*****************************/
132 /*函數(shù)原型:void pic_temp_face_move()
133 /*函數(shù)功能:人臉面部表情選擇
134 /*輸入?yún)?shù):無
135 /*輸出參數(shù):無
136 /*調(diào)用模塊:LPH7366_write_doc()
137
138 /**********************************************************************/
139 void pic_temp_face_move() //臉部表情選擇
140 {
141 1 if(face_flag==1) //笑臉
142 1 {
143 2 LPH7366_write_doc(2,7,0x92);
144 2 LPH7366_write_doc(2,8,0x94);
145 2 LPH7366_write_doc(2,9,0x94);
146 2 LPH7366_write_doc(2,10,0x94);
147 2 LPH7366_write_doc(2,11,0x92);
148 2 }
149 1
150 1 if(face_flag==2) //閉嘴
151 1 {
152 2 LPH7366_write_doc(2,7,0x90);
153 2 LPH7366_write_doc(2,8,0x95);
154 2 LPH7366_write_doc(2,9,0x92);
155 2 LPH7366_write_doc(2,10,0x95);
156 2 LPH7366_write_doc(2,11,0x90);
157 2 }
158 1
159 1 if(face_flag==3) //苦惱
160 1 {
161 2 LPH7366_write_doc(2,7,0x94);
162 2 LPH7366_write_doc(2,8,0x92);
163 2 LPH7366_write_doc(2,9,0x94);
164 2 LPH7366_write_doc(2,10,0x92);
165 2 LPH7366_write_doc(2,11,0x94);
166 2 }
167 1
168 1 if(face_flag==4) //講話
169 1 {
170 2 LPH7366_write_doc(2,7,0x97);
171 2 LPH7366_write_doc(2,8,0x95);
172 2 LPH7366_write_doc(2,9,0x95);
173 2 LPH7366_write_doc(2,10,0x95);
174 2 LPH7366_write_doc(2,11,0x97);
175 2 }
176 1
177 1 if(face_flag==5) //傷心
178 1 {
C51 COMPILER V8.05a 溫度圖 04/15/2009 22:04:18 PAGE 4
179 2 LPH7366_write_doc(2,7,0x94);
180 2 LPH7366_write_doc(2,8,0x92);
181 2 LPH7366_write_doc(2,9,0x92);
182 2 LPH7366_write_doc(2,10,0x92);
183 2 LPH7366_write_doc(2,11,0x94);
184 2 }
185 1
186 1 if(face_flag==6) //驚訝
187 1 {
188 2 LPH7366_write_doc(2,7,0x90);
189 2 LPH7366_write_doc(2,8,0x96);
190 2 LPH7366_write_doc(2,9,0x96);
191 2 LPH7366_write_doc(2,10,0x96);
192 2 LPH7366_write_doc(2,11,0x90);
193 2 }
194 1
195 1 if(face_flag==7) //沉默
196 1 {
197 2 LPH7366_write_doc(2,7,0x90);
198 2 LPH7366_write_doc(2,8,0x94);
199 2 LPH7366_write_doc(2,9,0x94);
200 2 LPH7366_write_doc(2,10,0x94);
201 2 LPH7366_write_doc(2,11,0x90);
202 2 }
203 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 1282 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 1 1
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -