📄 uc1697.lst
字号:
203 1
204 1 }
205 /*************************************************************/
206
207 /*********************************************/
208 void windowprogram4(void)
209 {
210 1 writei(0x71);
211 1 writei(0x67);
212 1 writei(0x11);
213 1 writei(0x07);
214 1
215 1 writei(0xF4);//set colum address start
216 1 writei(0x18);
217 1
218 1 writei(0xF6);
219 1 writei(0x2f);//set colum address end
220 1
221 1 writei(0xF5);//set row address start
222 1 writei(0x18);
223 1
224 1 writei(0xF7);//set row address end
225 1 writei(0x2f);
226 1
227 1 writei(0xF8);//set window outside mode enable
228 1
229 1
230 1
231 1 }
232 /******************************************************/
233
234 unsigned char code text_pin24[]=
235
236 {
237
238 /* 点阵:24x24
239
240 提取点阵方向:横向(先左->右, 再上->下)
241
C51 COMPILER V7.06 UC1697 12/10/2007 20:51:28 PAGE 5
242 字节掉转:否
243
244 字节方式:C语言 */
245
246 0x00,0x30,0x00,0x00,0x18,0x00,0x00,0x0C,
247 0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,
248 0x18,0x00,0x03,0xFC,0x00,0x00,0x18,0x00,
249 0x00,0x18,0x40,0x01,0x9C,0x70,0x3F,0xDC,
250 0xE0,0x01,0x9B,0x80,0x01,0x9A,0x00,0x01,
251 0x19,0x00,0x03,0x19,0x00,0x02,0x18,0x80,
252 0x06,0x18,0xC0,0x04,0x18,0x60,0x0C,0x18,
253 0x38,0x18,0x18,0x1E,0x20,0x18,0x08,0x41,
254 0xF8,0x00,0x00,0x70,0x00,0x00,0x20,0x00,
255
256
257
258 };
259
260 unsigned char code text_pin25[]=
261
262 {
263
264 /* 点阵:24x24
265
266 提取点阵方向:横向(先左->右, 再上->下)
267
268 字节掉转:否
269
270 字节方式:C语言 */
271 0x02,0x01,0x00,0x03,0x81,0xC0,0x03,0x21,
272 0x88,0x3F,0xEF,0xFC,0x03,0x01,0x80,0x3F,
273 0xEF,0xF8,0x03,0x01,0x84,0x7F,0xEF,0xFE,
274 0x03,0x01,0x80,0x02,0x01,0x30,0x0F,0xFF,
275 0xF8,0x00,0x00,0x30,0x00,0x00,0x30,0x07,
276 0xFF,0xF0,0x00,0x00,0x30,0x00,0x00,0x30,
277 0x0F,0xFF,0xF0,0x02,0x00,0x20,0x13,0x98,
278 0xA0,0x13,0x0C,0x98,0x33,0x08,0x8C,0x33,
279 0x00,0xC4,0x63,0xFF,0xC0,0x01,0xFF,0x80,
280
281
282
283 };
284 /**********************************************************/
285 void dispText1(unsigned char code *text)
286 {
287 1 unsigned char tempText;
288 1 unsigned char i,j;
289 1 for(i=0;i<72;i++)
290 1 {
291 2 tempText = *text;
292 2 for(j=0;j<8;j++)
293 2 {
294 3 if(((tempText)&(0x80))>0)
295 3 {
296 4 writed1(0xff,0xff);
297 4
298 4 }else
299 3 {
300 4 writed1(0x00,0x00);
301 4 }
302 3 tempText = tempText << 1;
303 3 }
C51 COMPILER V7.06 UC1697 12/10/2007 20:51:28 PAGE 6
304 2 text++;
305 2 }
306 1 }
307 /**********************************************************/
308 void init(void)
309 {/*
310 1 writei(0xE2); //system reset
311 1 delay(2000);
312 1 writei(0xEa); //set bias=1/11 这个需要根据你们具体的bias来更改
313 1 writei(0x81); //set vop
314 1 writei(0x45); //set vop=15v,这个参数需要根据你们的VOP来更改
315 1 writei(0x2f); //set pump control
316 1 writei(0x2b); //set panel loading
317 1 writei(0x24); // set TC=-0.05%
318 1 writei(0xa2); // set line rate
319 1 writei(0xd1); //set color pattern
320 1 writei(0xd6); //set color mode 64k
321 1 writei(0xC8); //set n-line inversion
322 1 writei(0x1c);
323 1 writei(0xde); //set com scan function
324 1 writei(0xAf); //set display enable
325 1
326 1 */
327 1 writei(0xE2); //system reset
328 1 delay(2000);
329 1 writei(0xEa); //set bias=1/11 这个需要根据你们具体的bias来更改
330 1 writei(0x81); //set vop
331 1 writei(0x45); //set vop=15v,这个参数需要根据你们的VOP来更改
332 1 writei(0x2f); //set pump control
333 1 writei(0x2b); //set panel loading
334 1 writei(0x24); // set TC=-0.05%
335 1 writei(0xa2); // set line rate
336 1
337 1 writei(0x89); //set color pattern
338 1 writei(0xd1); //set color pattern
339 1 writei(0xd6); //set color mode 64k
340 1 writei(0xC8); //set n-line inversion
341 1 writei(0x18);
342 1
343 1
344 1 writei(0xc2); //set color pattern
345 1
346 1 writei(0x84); //set n-line inversion
347 1 //writei(0x89);
348 1 //writei(0x0f); //set n-line inversion
349 1 //writei(0x65);
350 1
351 1 writei(0xde); //set com scan function
352 1 writei(0xaf); //set display enable
353 1
354 1 }
355
356
357 void windowprogram(void)
358 {
359 1
360 1 writei(0x70);
361 1 writei(0x60);
362 1 writei(0x10);
363 1 writei(0x00);
364 1 writei(0xF4);//set colum address start
365 1 writei(0x00);
C51 COMPILER V7.06 UC1697 12/10/2007 20:51:28 PAGE 7
366 1
367 1 writei(0xF6);
368 1 writei(0x7f);//set colum address end
369 1
370 1 writei(0xF5);//set row address start
371 1 writei(0x00);
372 1
373 1 writei(0xF7);//set row address end
374 1 writei(0x7f);
375 1
376 1 writei(0xF8);//set window outside mode enable
377 1
378 1 }
379
380 void windowprogram1(void)
381 {
382 1
383 1 writei(0x70);
384 1 writei(0x65);
385 1 writei(0x10);
386 1 writei(0x05);
387 1
388 1 writei(0xF4);//set colum address start
389 1 writei(0x05);
390 1
391 1 writei(0xF6);
392 1 writei(0x64);//set colum address end
393 1
394 1 writei(0xF5);//set row address start
395 1 writei(0x05);
396 1
397 1 writei(0xF7);//set row address end
398 1 writei(0x64);
399 1
400 1 writei(0xF8);//set window outside mode enable
401 1
402 1 }
403
404
405 void Pattern8() /* 彩条*/
406 {
407 1 unsigned int i,j;
408 1
409 1 writei(0x70);
410 1 writei(0x60);
411 1 writei(0x10);
412 1 writei(0x00);
413 1 for(j=0x00;j<0x80;j++) /* X-address
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -