6 void UTFT::LCD_Writ_Bus(
char VH,
char VL, byte mode)
11 if (display_serial_mode==SERIAL_4PIN)
17 pulse_low(P_SCL, B_SCL);
31 pulse_low(P_SCL, B_SCL);
36 pulse_low(P_SCL, B_SCL);
41 pulse_low(P_SCL, B_SCL);
46 pulse_low(P_SCL, B_SCL);
51 pulse_low(P_SCL, B_SCL);
56 pulse_low(P_SCL, B_SCL);
61 pulse_low(P_SCL, B_SCL);
66 pulse_low(P_SCL, B_SCL);
70 sport (PORTD, (VH & 0x0F));
72 sport (PORTB, (VH & 0xF0)>>4);
73 pulse_low(P_WR, B_WR);
75 sport (PORTD, (VL & 0x0F));
77 sport (PORTB, (VL & 0xF0)>>4);
78 pulse_low(P_WR, B_WR);
82 sport (PORTD, (VH & 0x0F) | ((VL & 0x03)<<5));
83 PORTB = ((VH & 0xF0)>>4) | ((VL & 0x3C)<<2);
85 sport (PORTA, ((VL & 0x40)<<1) | ((VL & 0x80)>>1));
86 pulse_low(P_WR, B_WR);
90 sport (PORTD, (VH & 0x0F));
92 sport (PORTB, (VH & 0xF0)>>4);
94 pulse_high(P_ALE, B_ALE);
97 sport (PORTD, (VL & 0x0F));
99 sport (PORTB, (VL & 0xF0)>>4);
100 pulse_low(P_WR, B_WR);
106 void UTFT::_set_direction_registers(byte mode)
119 void UTFT::_fast_fill_16(
int ch,
int cl,
long pix)
124 sport (PORTD, (ch & 0x0F) | ((cl & 0x03)<<5));
125 PORTB = ((ch & 0xF0)>>4) | ((cl & 0x3C)<<2);
127 sport (PORTA, ((cl & 0x40)<<1) | ((cl & 0x80)>>1));
130 for (
int i=0; i<blocks; i++)
132 pulse_low(P_WR, B_WR);
133 pulse_low(P_WR, B_WR);
134 pulse_low(P_WR, B_WR);
135 pulse_low(P_WR, B_WR);
136 pulse_low(P_WR, B_WR);
137 pulse_low(P_WR, B_WR);
138 pulse_low(P_WR, B_WR);
139 pulse_low(P_WR, B_WR);
140 pulse_low(P_WR, B_WR);
141 pulse_low(P_WR, B_WR);
142 pulse_low(P_WR, B_WR);
143 pulse_low(P_WR, B_WR);
144 pulse_low(P_WR, B_WR);
145 pulse_low(P_WR, B_WR);
146 pulse_low(P_WR, B_WR);
147 pulse_low(P_WR, B_WR);
150 for (
int i=0; i<(pix % 16)+1; i++)
152 pulse_low(P_WR, B_WR);
156 void UTFT::_fast_fill_8(
int ch,
long pix)
161 sport (PORTD, (ch & 0x0F));
163 sport (PORTB, (ch & 0xF0)>>4);
166 for (
int i=0; i<blocks; i++)
168 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
169 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
170 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
171 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
172 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
173 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
174 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
175 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
176 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
177 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
178 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
179 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
180 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
181 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
182 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
183 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);
186 for (
int i=0; i<(pix % 16)+1; i++)
188 pulse_low(P_WR, B_WR);pulse_low(P_WR, B_WR);