📄 lgdp4524-2^2-hx8347(2).lst
字号:
142 1 delay(50);
143 1 write_command(0x10);write_data(0x32,0x50);
*** WARNING C209 IN LINE 143 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
144 1 delay(50);
145 1 write_command(0x07);write_data(0x00,0x01);
*** WARNING C209 IN LINE 145 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
146 1 delay(50);
147 1 write_command(0x07);write_data(0x00,0x21);
*** WARNING C209 IN LINE 147 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
148 1 write_command(0x07);write_data(0x00,0x23);
*** WARNING C209 IN LINE 148 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
149 1 delay(50);
150 1 write_command(0x07);write_data(0x00,0x37);
*** WARNING C209 IN LINE 150 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
151 1 delay(50);
152 1 }
153
154
155 void display_rgb(uchar h_data,l_data)
156 {
157 1
158 1 uint i,j;
159 1 //write_command1(0x20);
160 1 for(i=0;i<HSIZE;i++)
161 1 for(j=0;j<VSIZE;j++)
162 1 {
163 2 write_data(h_data,l_data);
164 2 }
165 1 //write_command(0x2c,0x2c);
166 1 }
167
168
169 void main()
170 {
171 1 res=0;
172 1 delay(20);
173 1 res=1;
174 1 delay(200);
175 1 initialization();
176 1 while(1)
177 1 {
178 2 /*display_image();
179 2 delay(200000);
180 2 pause();*/
181 2 dis_bar();
182 2 delay(200000);
183 2 pause();
184 2 display_rgb(0xf8,0x00);
185 2 delay(200000);
186 2 pause();
187 2 display_rgb(0x07,0xe0);
188 2 delay(200000);
189 2 pause();
190 2 display_rgb(0x00,0x1f);
191 2 delay(200000);
192 2 pause();
193 2 display_rgb(0x00,0x00);
C51 COMPILER V7.06 LGDP4524_2_2_HX8347_2_ 02/07/2009 11:22:42 PAGE 5
194 2 delay(200000);
195 2 pause();
196 2 display_rgb(0xff,0xff);
197 2 delay(200000);
198 2 pause();
199 2
200 2 }
201 1 }
202
203 void dis_bar(void)
204 {
205 1 int i,j,k;
206 1
207 1 //write_command1(0x22);
208 1
209 1 for(i=0;i<22;i++) //display line
210 1 {
211 2 for(j=0;j<VSIZE;j++)
212 2 {
213 3 write_data(0xF8,0x00);
214 3 }
215 2 }
216 1
217 1 for(i=0;i<22;i++) //display line
218 1 {
219 2 for(j=0;j<VSIZE;j++)
220 2 {
221 3 write_data(0x07,0xe0);
222 3 }
223 2 }
224 1
225 1 for(i=0;i<22;i++) //display line
226 1 {
227 2 for(j=0;j<VSIZE;j++)
228 2 {
229 3 write_data(0x00,0x1f);
230 3 }
231 2 }
232 1
233 1 for(i=0;i<22;i++) //display line
234 1 {
235 2 for(j=0;j<VSIZE;j++)
236 2 {
237 3 write_data(0xfc,0x08);
238 3
239 3 }
240 2 }
241 1
242 1 for(i=0;i<22;i++) //display line
243 1 {
244 2 for(j=0;j<VSIZE;j++)
245 2 {
246 3 write_data(0xff,0xe0);
247 3
248 3 }
249 2 }
250 1
251 1 for(i=0;i<22;i++) //display line
252 1 {
253 2 for(j=0;j<VSIZE;j++)
254 2 {
255 3 write_data(0xff,0xff);
C51 COMPILER V7.06 LGDP4524_2_2_HX8347_2_ 02/07/2009 11:22:42 PAGE 6
256 3
257 3 }
258 2 }
259 1
260 1 for(i=0;i<22;i++) //display line
261 1 {
262 2 for(j=0;j<VSIZE;j++)
263 2 {
264 3 write_data(0xf8,0x1f);
265 3
266 3 }
267 2 }
268 1
269 1 for(i=0;i<22;i++) //display line
270 1 {
271 2 for(j=0;j<VSIZE;j++)
272 2 {
273 3 write_data(0x00,0x00);
274 3
275 3 }
276 2 }
277 1
278 1 }
*** WARNING C280 IN LINE 205 OF LGDP4524-2^2-HX8347(2).C: 'k': unreferenced local variable
279
280
281 void pause()
282 {
283 1 while(!step);
284 1 }
285
286
287
288
289
290
291
292 /*void display_image(void)
293 {
294 int i;
295 int j;
296 int k=0;
297 write_command1(0x22);
298 for(i=0;i<240;i++)
299 {
300 for(j=0;j<320;j++)
301 {
302 write_data(image[k++],image[k]);
303 k++;
304 }
305 }
306 // for(i=0;i<128*160;i++)
307 // {
308 // write_data(image[i++],image[i]);
309 // }
310
311 // }
312
313 }*/
MODULE INFORMATION: STATIC OVERLAYABLE
C51 COMPILER V7.06 LGDP4524_2_2_HX8347_2_ 02/07/2009 11:22:42 PAGE 7
CODE SIZE = 1029 ----
CONSTANT SIZE = 1 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 4
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 49 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -