-
Notifications
You must be signed in to change notification settings - Fork 0
/
8544.c
746 lines (637 loc) · 16.2 KB
/
8544.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
#ifndef 8544_C
#define 8544_C
#ifndef SCE
#define SCE pin_b1
#endif
#ifndef RST
#define RST pin_b2
#endif
#ifndef DC
#define DC pin_b3
#endif
#ifndef DIN
#define DIN pin_b4
#endif
#ifndef SCLK
#define SCLK pin_b5
#endif
const char karakter_tablosu[68][5]={
{0x14,0x08,0x3e,0x08,0x14}, // *
{0x00,0x00,0x00,0x00,0x00}, // boşluk
{0x02,0x05,0x05,0x02,0x00}, // ^ derece işareti
{0x40,0x40,0x40,0x40,0x40}, // _
{0x08,0x08,0x3e,0x08,0x08}, // +
{0x08,0x08,0x08,0x08,0x08}, // -
{0x20,0x10,0x08,0x04,0x02}, // /
{0x3e,0x51,0x49,0x45,0x3e}, // 0
{0x00,0x42,0x7f,0x40,0x00}, // 1
{0x42,0x61,0x51,0x49,0x46}, // 2
{0x21,0x41,0x45,0x4b,0x31}, // 3
{0x18,0x14,0x12,0x7f,0x10}, // 4
{0x27,0x45,0x45,0x45,0x39}, // 5
{0x3c,0x4a,0x49,0x49,0x30}, // 6
{0x01,0x71,0x09,0x05,0x03}, // 7
{0x36,0x49,0x49,0x49,0x36}, // 8
{0x06,0x49,0x49,0x29,0x1e}, // 9
{0x7e,0x11,0x11,0x11,0x7e}, // A
{0x7f,0x49,0x49,0x49,0x36}, // B
{0x3e,0x41,0x41,0x41,0x22}, // C
{0x7f,0x41,0x41,0x22,0x1c}, // D
{0x7f,0x49,0x49,0x49,0x41}, // E
{0x7f,0x09,0x09,0x09,0x01}, // F
{0x3e,0x41,0x49,0x49,0x7a}, // G
{0x7f,0x08,0x08,0x08,0x7f}, // H
{0x00,0x41,0x7f,0x41,0x00}, // I
{0x20,0x40,0x41,0x3f,0x01}, // J
{0x7f,0x08,0x14,0x22,0x41}, // K
{0x7f,0x40,0x40,0x40,0x40}, // L
{0x7f,0x02,0x0c,0x02,0x7f}, // M
{0x7f,0x04,0x08,0x10,0x7f}, // N
{0x3e,0x41,0x41,0x41,0x3e}, // O
{0x7f,0x09,0x09,0x09,0x06}, // P
{0x3e,0x41,0x51,0x21,0x5e}, // Q
{0x7f,0x09,0x19,0x29,0x46}, // R
{0x46,0x49,0x49,0x49,0x31}, // S
{0x01,0x01,0x7f,0x01,0x01}, // T
{0x3f,0x40,0x40,0x40,0x3f}, // U
{0x1f,0x20,0x40,0x20,0x1f}, // V
{0x3f,0x40,0x38,0x40,0x3f}, // W
{0x63,0x14,0x08,0x14,0x63}, // X
{0x07,0x08,0x70,0x08,0x07}, // Y
{0x61,0x51,0x49,0x45,0x43}, // Z
{0x20,0x54,0x54,0x54,0x78}, // a
{0x7f,0x48,0x44,0x44,0x38}, // b
{0x38,0x44,0x44,0x44,0x20}, // c
{0x38,0x44,0x44,0x48,0x7f}, // d
{0x38,0x54,0x54,0x54,0x18}, // e
{0x08,0x7e,0x09,0x01,0x02}, // f
{0x0c,0x52,0x52,0x52,0x3e}, // g
{0x7f,0x08,0x04,0x04,0x78}, // h
{0x00,0x44,0x7d,0x40,0x00}, // i
{0x20,0x40,0x44,0x3d,0x00}, // j
{0x7f,0x10,0x28,0x44,0x00}, // k
{0x00,0x41,0x7f,0x40,0x00}, // l
{0x7c,0x04,0x18,0x04,0x78}, // m
{0x7c,0x08,0x04,0x04,0x78}, // n
{0x38,0x44,0x44,0x44,0x38}, // o
{0x7c,0x14,0x14,0x14,0x08}, // p
{0x08,0x14,0x14,0x18,0x7c}, // q
{0x7c,0x08,0x04,0x04,0x08}, // r
{0x48,0x54,0x54,0x54,0x20}, // s
{0x04,0x3f,0x44,0x40,0x20}, // t
{0x3c,0x40,0x40,0x20,0x7c}, // u
{0x1c,0x20,0x40,0x20,0x1c}, // v
{0x44,0x28,0x10,0x28,0x44}, // x
{0x0c,0x50,0x50,0x50,0x3c}, // y
{0x44,0x64,0x54,0x4c,0x44}, // z
};
/*
PCD8544 entegresine reset atar
*/
void reset(void){
output_bit(RST,0);
delay_ms(50);
output_bit(RST,1);
}
/*
Datasheette 12. sayfada yer alan 10.
resme göre her bir byte iletimi
1-SCE pini lojik 0'da olmalıdr.
2-Her bitin DIN pininden gönderimi SCLK pini lojik 1'den lojik 0'geçmesiye başlar.
3-Gönderilecek byte MSB bitinden başlanarak gönderilir.
3-SCLK pini her bit gönderiminin sonunda lojik-0'dan lojik 1 geçer.
writeabyte fonksiyonu datasheete yer alan
*/
void writeabyte(char data){
output_bit(SCE,0);
for(int i=8;i>0;i--){
output_bit(SCLK,0);
delay_us(2);
output_bit(DIN,(data>>(i-1))&(0x01));
output_bit(SCLK,1);
delay_us(2);
}
output_bit(SCE,1);
}
/*
Datasheet sayfa 14'e göre
PCD8544'e göre komut yazımı
için DC pini lojik -0 olmalıdır.
*/
void komutyaz(char komut)
{
output_bit(DC,0) ;
writeabyte(komut);
}
/*
Datasheet sayfa 14'e göre
PCD8544'e göre data yazımı
için DC pini lojik -1 olmalıdır.
*/
void datayaz(char data)
{
output_bit(DC,1) ;
writeabyte(data);
}
//data_sayisi kadar datayı ardarda yazar.
void coklu_datayaz(char data[],int data_sayisi){
output_bit(DC,1) ;
for(int16 i=0;i<data_sayisi;i++){
writeabyte(data[i]);
}
}
void Tek_karakter_yazdir(char c){
//coklu_datayaz
char veri[5];
switch(c){
case '*':
memcpy(veri,karakter_tablosu[0],5);
coklu_datayaz(veri,5);
break;
case ' ':
memcpy(veri,karakter_tablosu[1],5);
coklu_datayaz(veri,5);
break;
case '^':
memcpy(veri,karakter_tablosu[2],5);
coklu_datayaz(veri,5);
break;
case '_':
memcpy(veri,karakter_tablosu[3],5);
coklu_datayaz(veri,5);
break;
case '+':
memcpy(veri,karakter_tablosu[4],5);
coklu_datayaz(veri,5);
break;
case '-':
memcpy(veri,karakter_tablosu[5],5);
coklu_datayaz(veri,5);
break;
case '/':
memcpy(veri,karakter_tablosu[6],5);
coklu_datayaz(veri,5);
break;
case '0':
memcpy(veri,karakter_tablosu[7],5);
coklu_datayaz(veri,5);
break;
case '1':
memcpy(veri,karakter_tablosu[8],5);
coklu_datayaz(veri,5);
break;
case '2':
memcpy(veri,karakter_tablosu[9],5);
coklu_datayaz(veri,5);
break;
case '3':
memcpy(veri,karakter_tablosu[10],5);
coklu_datayaz(veri,5);
break;
case '4':
memcpy(veri,karakter_tablosu[11],5);
coklu_datayaz(veri,5);
break;
case '5':
memcpy(veri,karakter_tablosu[12],5);
coklu_datayaz(veri,5);
break;
case '6':
memcpy(veri,karakter_tablosu[13],5);
coklu_datayaz(veri,5);
break;
case '7':
memcpy(veri,karakter_tablosu[14],5);
coklu_datayaz(veri,5);
break;
case '8':
memcpy(veri,karakter_tablosu[15],5);
coklu_datayaz(veri,5);
break;
case '9':
memcpy(veri,karakter_tablosu[16],5);
coklu_datayaz(veri,5);
break;
case 'A':
memcpy(veri,karakter_tablosu[17],5);
coklu_datayaz(veri,5);
break;
case 'B':
memcpy(veri,karakter_tablosu[18],5);
coklu_datayaz(veri,5);
break;
case 'C':
memcpy(veri,karakter_tablosu[19],5);
coklu_datayaz(veri,5);
break;
case 'D':
memcpy(veri,karakter_tablosu[20],5);
coklu_datayaz(veri,5);
break;
case 'E':
memcpy(veri,karakter_tablosu[21],5);
coklu_datayaz(veri,5);
break;
case 'F':
memcpy(veri,karakter_tablosu[22],5);
coklu_datayaz(veri,5);
break;
case 'G':
memcpy(veri,karakter_tablosu[23],5);
coklu_datayaz(veri,5);
break;
case 'H':
memcpy(veri,karakter_tablosu[24],5);
coklu_datayaz(veri,5);
break;
case 'I':
memcpy(veri,karakter_tablosu[25],5);
coklu_datayaz(veri,5);
break;
case 'J':
memcpy(veri,karakter_tablosu[26],5);
coklu_datayaz(veri,5);
break;
case 'K':
memcpy(veri,karakter_tablosu[27],5);
coklu_datayaz(veri,5);
break;
case 'L':
memcpy(veri,karakter_tablosu[28],5);
coklu_datayaz(veri,5);
break;
case 'M':
memcpy(veri,karakter_tablosu[29],5);
coklu_datayaz(veri,5);
break;
case 'N':
memcpy(veri,karakter_tablosu[30],5);
coklu_datayaz(veri,5);
break;
case 'O':
memcpy(veri,karakter_tablosu[31],5);
coklu_datayaz(veri,5);
break;
case 'P':
memcpy(veri,karakter_tablosu[32],5);
coklu_datayaz(veri,5);
break;
case 'Q':
memcpy(veri,karakter_tablosu[33],5);
coklu_datayaz(veri,5);
break;
case 'R':
memcpy(veri,karakter_tablosu[34],5);
coklu_datayaz(veri,5);
break;
case 'S':
memcpy(veri,karakter_tablosu[35],5);
coklu_datayaz(veri,5);
break;
case 'T':
memcpy(veri,karakter_tablosu[36],5);
coklu_datayaz(veri,5);
break;
case 'U':
memcpy(veri,karakter_tablosu[37],5);
coklu_datayaz(veri,5);
break;
case 'V':
memcpy(veri,karakter_tablosu[38],5);
coklu_datayaz(veri,5);
break;
case 'W':
memcpy(veri,karakter_tablosu[39],5);
coklu_datayaz(veri,5);
break;
case 'X':
memcpy(veri,karakter_tablosu[40],5);
coklu_datayaz(veri,5);
break;
case 'Y':
memcpy(veri,karakter_tablosu[41],5);
coklu_datayaz(veri,5);
break;
case 'Z':
memcpy(veri,karakter_tablosu[42],5);
coklu_datayaz(veri,5);
break;
case 'a':
memcpy(veri,karakter_tablosu[43],5);
coklu_datayaz(veri,5);
break;
case 'b':
memcpy(veri,karakter_tablosu[44],5);
coklu_datayaz(veri,5);
break;
case 'c':
memcpy(veri,karakter_tablosu[45],5);
coklu_datayaz(veri,5);
break;
case 'd':
memcpy(veri,karakter_tablosu[46],5);
coklu_datayaz(veri,5);
break;
case 'e':
memcpy(veri,karakter_tablosu[47],5);
coklu_datayaz(veri,5);
break;
case 'f':
memcpy(veri,karakter_tablosu[48],5);
coklu_datayaz(veri,5);
break;
case 'g':
memcpy(veri,karakter_tablosu[49],5);
coklu_datayaz(veri,5);
break;
case 'h':
memcpy(veri,karakter_tablosu[50],5);
coklu_datayaz(veri,5);
break;
case 'i':
memcpy(veri,karakter_tablosu[51],5);
coklu_datayaz(veri,5);
break;
case 'j':
memcpy(veri,karakter_tablosu[52],5);
coklu_datayaz(veri,5);
break;
case 'k':
memcpy(veri,karakter_tablosu[53],5);
coklu_datayaz(veri,5);
break;
case 'l':
memcpy(veri,karakter_tablosu[54],5);
coklu_datayaz(veri,5);
break;
case 'm':
memcpy(veri,karakter_tablosu[55],5);
coklu_datayaz(veri,5);
break;
case 'n':
memcpy(veri,karakter_tablosu[56],5);
coklu_datayaz(veri,5);
break;
case 'o':
memcpy(veri,karakter_tablosu[57],5);
coklu_datayaz(veri,5);
break;
case 'p':
memcpy(veri,karakter_tablosu[58],5);
coklu_datayaz(veri,5);
break;
case 'q':
memcpy(veri,karakter_tablosu[59],5);
coklu_datayaz(veri,5);
break;
case 'r':
memcpy(veri,karakter_tablosu[60],5);
coklu_datayaz(veri,5);
break;
case 's':
memcpy(veri,karakter_tablosu[61],5);
coklu_datayaz(veri,5);
break;
case 't':
memcpy(veri,karakter_tablosu[62],5);
coklu_datayaz(veri,5);
break;
case 'u':
memcpy(veri,karakter_tablosu[63],5);
coklu_datayaz(veri,5);
break;
case 'v':
memcpy(veri,karakter_tablosu[64],5);
coklu_datayaz(veri,5);
break;
case 'x':
memcpy(veri,karakter_tablosu[65],5);
coklu_datayaz(veri,5);
break;
case 'y':
memcpy(veri,karakter_tablosu[66],5);
coklu_datayaz(veri,5);
break;
case 'z':
memcpy(veri,karakter_tablosu[67],5);
coklu_datayaz(veri,5);
break;
default :
break;
}
}
void ekrana_metin_yaz(char array[]){
int16 size_array=0;
int16 k=50;
for(int16 j=0;j<k;j++){
if(array[j]!=0){
size_array++;
}
}
for(int i=0;i<size_array;i++){
Tek_karakter_yazdir(array[i]);
}
}
/*
Datasheet sayfa 14'e göre
PCD8544'e 01000Y2 Y1 Y0
komutu gönderildiğinde adres pointerının Y2Y1Y0
bitlerinin 0 ile 5 arasındaki decimal
karşılığı olan banka gider.
Aynı şekilde 1X6 X5 X4 X3 X2 X1 X0
komutu gönderildiğinde adres pointerı
X6 X5 X4 X3 X2 X1 X0 bitlerinin karşılık geldiği
decimal değer olan sütuna gider.
*/
void set_XY(int x,int y){
if((0<=x<=83)&&(0<=y<=5)){
komutyaz((0x40)|(y));//set y number
komutyaz((0x80)|(x));//set x number
}
}
/*
Bu fonksiyon DDRAM'in 1 bankındaki(Satır)tüm sütunları 0x00 NULL
doldurarakl ile ekranı temizler.
*/
void display_Bankclean(int yBank){
if(0<yBank<=6){
set_XY(0,yBank-1);
output_bit(DC,1) ;
for(int16 i=0;i<84;i++){
writeabyte(0x00);
}
set_XY(0,yBank-1);
}
}
/*
xy koordinatına kadar olan bölgeyi temizler.
*/
void display_cleanUntill(int x,int y){
if((0<y<=6)&&(0<x<=84)){
set_XY(0,0);
output_bit(DC,1) ;
for(int16 i=0;i<(((y-1)*84)+x);i++){
writeabyte(0x00);
}
set_XY(0,0);
}
}
/*
Bu fonksiyon DDRAM'in 504 bytelık hafızasını 0x00 NULL
doldurarak ile ekranı temizler.
*/
void display_Fullclean(void){
set_XY(0,0);
output_bit(DC,1) ;
for(int16 i=0;i<504;i++){
writeabyte(0x00);
}
set_XY(0,0);
}
/*
Display ekranı Y ekseninde 48 piksel satırı
X ekseninde 83 sütunu vardır.
Aşağıdaki fonksiyon girilen x ve y koordinatlarında
pikseli lojik-1 yaparlar.
*/
void setxy_onepixel(int x,int y,int1 status){
char binarray=0x00;
int ypos=(y-1)/8;
int ypix=(y-1)%8;
set_XY(x,ypos);
if(status){
binarray|=(0x01<<ypix);
}
datayaz(binarray);
}
/*
x ekseninde düz bir çizgi çizer.
*/
void linex(int x_start,int y,int x_end){
for(int k=0;k<(x_end-x_start);k++){
setxy_onepixel(x_start+k,y,1);
}
}
/*
y ekseninde düz bir çizgi çizer.
*/
void liney(int x,int y_start,y_end){
int k;
int l;
if(y_start!=y_end){
if(y_start>y_end){
int temp=y_start;
y_start=y_end;
y_end=temp;
}
char binarray=0x00;
int ypos=(y_start-1)/8;
int ypix=(y_start-1)%8;
set_XY(x,ypos);
for( k=ypix;k<(8);k++){
binarray|=(0x01<<k);
}
datayaz(binarray);
l=ypos+1;
int y_tam=(y_end-y_start-8+ypix)/8;
for( k=0;k<y_tam;k++){
set_XY(x,l);
datayaz(0xff);
l=l+1;
}
set_XY(x,l);
int y_ek=(y_end-y_start-8+ypix)%8;
binarray=0x00;
for( k=0;k<y_ek;k++){
binarray|=(0x01<<k);
}
datayaz(binarray);
}
}
/*
Bir dikdörtgen çizilir.
*/
void rectangle(int x_start,int x_end,int y_start, int y_end){
liney(x_start,y_start,y_end);
liney(x_end,y_start,y_end);
linex(x_start+1,y_start,x_end);
linex(x_start+1,y_end-1,x_end);
}
/*
PCD8544 entegresi başlatılır.
*/
void PCD8544_init(void)
{
/*
PCD8544 çalışmaya başladıktan hemen sonra
mutlaka bir LOW-TO-HIGH şeklinde bir RES darbesi uygulanmalıdır.
Bu darbe uygulanırken dikkatli olunmalıdır aksi halde chip yanar.
Kaynak Datasheet:sayfa 15/8.1
*/
output_bit(RST,0);
delay_ms(1);
output_bit(RST,1);
/*
PCD8544 veri okuma işlemini SCE pini low olduğunda yapmaktadır.
SCE pinini veri yazdırma işlemi dışında lojik-1 olarak tutuyoruz.
mutlaka bir LOW-TO-HIGH şeklinde bir RES darbesi uygulanmalıdır.
Kaynak Datasheet:sayfa 11
*/
output_bit(SCE,1);
delay_us(200);
/*(D/C=0) 0 0 1 0 0 PD V H
PD=0 ; yapıldı power down yok,
V=0 yapıldı yatay adresleme yapılacaktır.
H=1 yapıldı. Display kontrolü dışındaki
yazdırılan komutlar display dışında değerlendirilecektir.
kaynak datasheet sayfa 15-14
*/
komutyaz(0x21);
/*
LCD displayi çalıştırmadan önce luquid Kristallerin beslenme
gerilimlerinin(VLCD) ayarlanması gerekmektedir.
a = 3.06 and b = 0.06 ve V=3V için
VLCD = a + (VOP6 to VOP0) × b
(VOP6 to VOP0)=6 bitliktir. Bu fonksiyonun
çalıştırılması için gönderilen datanın 7. biti 1 olmalıdır.
0xA0 komutu ile 160-128=32 =010000 ise
3.06+32*0.06=4.98
NOT; VLCD 8.5V'tan daha fazla olmamalıdır. Aksi halde chip hasar görür.
kaynak datasheet sayfa 14 ve 16
*/
komutyaz(0xA0);
/*
lcd bias oranı 1:48 yapıldı
*/
komutyaz(0x13);
/*(D/C=0) 0 0 1 0 0 PD V H
PD=0 ; yapıldı power down yok,
V=0 yapıldı yatay adresleme yapılacaktır.
H=0 yapıldı. yazdırılan komutlar display kontrolü için değerlendirilecektir.
Artık LCD displayde gösterilecek olan datalar DDRAM'a yazılabilinir.
kaynak datasheet sayfa 15-14
*/
komutyaz(0x20);
/*
PCD8544 reset aldıktan sonra display konfigürasyon bitleri
D=0 ve E=0 olur. Bu iki bitin 0 olması durumunda "Display Blank"
modunda çalışır. Bu modda DDRAM yani ekrandaki pixellerin 0 veya 1
olma durumunu tutan bellekteki bilgi ekrana verilmez ve display boş gözükür.
DDRAM'deki bilgilerin silinmesi için display_clean fonksiyonu kullanıldığında,
display tekrar normal modda çalışmaya başlayınca ekran boş gözükür.
kaynak datasheet sayfa 14
*/
display_Fullclean();
delay_ms(60);
/*
Display control (D/C=0) 0 0 0 0 1 D0 E sets display configuration
Yukarıda görüldüğü gibi 0x08 yazılırsa display blank moda geçer.
Aşağıda 0x0C komutu gönderilmiştir.
0x0C=0B00000110
D=1 ve E=0 olduğundan Display normal modda
çalışır ve ekrana şekil vermeye hazır hale gelir.
kaynak datasheet sayfa 14
*/
komutyaz(0x0C);
}
#endif//8844_C