Mercurial > public > ostc4
annotate Discovery/Src/display.c @ 879:fe955104901c Evo_2_23
new bluetooth work, bootloader work
author | heinrichsweikamp |
---|---|
date | Thu, 29 Aug 2024 12:03:10 +0200 |
parents | 6b06143cbfea |
children | 8d3f3a635397 |
rev | line source |
---|---|
38 | 1 |
2 #include "stm32f4xx_hal.h" /* for HAL_Delay() */ | |
3 #include "ostc.h" | |
4 #include "display.h" | |
5 | |
871 | 6 #define TFT_ENABLE_EXTENDED_COMMANDS 0xB9 |
7 #define TFT_SET_POWER 0xB1 | |
8 #define TFT_SLEEP_OUT 0x11 | |
9 #define TFT_DISPLAY_INVERSION_OFF 0x20 | |
10 #define TFT_MEMORY_ACCESS_ONTROL 0x36 | |
11 #define TFT_INTERFACE_PIXEL_FORMAT 0x3A | |
12 #define TFT_SET_RGB_INTERFACE_RELATED 0xB3 | |
13 #define TFT_SET_DISPLAY_WAVEFORM 0xB4 | |
14 #define TFT_SET_PANEL 0xCC | |
15 #define TFT_SET_GAMMA_CURVE_RELATED 0xE0 | |
16 #define TFT_DISPLAY_ON 0x29 | |
17 #define TFT_DISPLAY_OFF 0x28 | |
18 #define TFT_SLEEP_IN 0x10 | |
38 | 19 |
871 | 20 #define OLED_SCTE_SET_31h 0x31 // 0x0008 |
21 #define OLED_WCWE_SET_32h 0x32 // 0x0014 | |
22 #define OLED_GATELESS1_30h 0x30 // 0x0002 | |
23 #define OLED_GATELESS2_27h 0x27 // 0x0000 | |
24 #define OLED_OSCILLATOR 0x11 // 0x00A1 | |
25 #define OLED_VBP_SET_12h 0x12 // 0x0008 | |
26 #define OLED_VFP_SET_13h 0x13 // 0x0008 | |
27 #define OLED_DISPLAY_CON_15h 0x15 // 0x0000 | |
28 #define OLED_COLOR_DEPTH_SET_16h 0x16 // 0x0000 | |
29 #define OLED_PENTILE_KEY_EFh 0xEF // 0x00D0 or 0x00E8 | |
30 #define OLED_PENTILE1_A0h 0xA0 // 0x0063 | |
31 #define OLED_PENTILE2_A1h 0xA1 // 0x00C0 | |
32 #define OLED_PENTILE3_A2h 0xA2 // 0x0032 | |
33 #define OLED_PENTILE4_A3h 0xA3 // 0x0002 | |
34 #define OLED_BRIGHTNESS_CTRL_39h 0x39 // 0044h | |
35 // gamma table 0x40 - 0x66 | |
36 #define OLED_BOOSTING_FREQ 0x17 // 0x0022 | |
37 #define OLED_AMP_SET_18h 0x18 // 0x0033 | |
38 #define OLED_GAMMA_AMP_19h 0x19 // 0x0003 | |
39 #define OLED_POWER_CONTROL2_1Ah 0x1A // 0x0001 | |
40 #define OLED_POWER_CONTROL2_1Bh 0x1B // | |
41 #define OLED_POWER_CONTROL2_1Ch 0x1C // | |
42 #define OLED_INTERNAL_LOGIC_VOLTAGE 0x22 // VCC*0,65 = 3,3V * 0,55 = 0x00A2 | |
43 #define OLED_POWER_SET 0x23 // VC1OUT = VCI X 0.98 (default) = 0x00 | |
44 #define OLED_POWER_SET2 0x24 // VREG2OUT = 5,4V, VREG1OUT = 4,2V =0x77 | |
45 #define OLED_DISPLAY_CONDITION_SET_26h 0x26 // 0x00A0 | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
46 #define OLED_STB_BY_OFF_1Dh 0x1D // 00A0 + 300ms wait |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
47 #define OLED_DDISP_ON_14h 0x14 // 0003 |
38 | 48 |
49 static void Display_Error_Handler(void); | |
871 | 50 static void display_power_on__2_of_2__post_RGB_display0(void); |
51 static void display_power_on__2_of_2__post_RGB_display1(void); | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
52 void display_1_brightness_max(void); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
53 void display_1_brightness_high(void); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
54 void display_1_brightness_std(void); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
55 void display_1_brightness_eco(void); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
56 void display_1_brightness_cave(void); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
57 |
871 | 58 static uint8_t receive_screen(); |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
59 uint8_t brightness_screen1; |
38 | 60 |
61 void display_power_on__1_of_2__pre_RGB(void) | |
62 { | |
871 | 63 uint8_t aTxBuffer[3]; |
64 /* reset system */ | |
38 | 65 HAL_GPIO_WritePin(DISPLAY_CSB_GPIO_PORT,DISPLAY_CSB_PIN,GPIO_PIN_SET); // chip select |
66 | |
67 HAL_GPIO_WritePin(DISPLAY_RESETB_GPIO_PORT,DISPLAY_RESETB_PIN,GPIO_PIN_RESET); | |
68 HAL_Delay(10); | |
69 HAL_GPIO_WritePin(DISPLAY_RESETB_GPIO_PORT,DISPLAY_RESETB_PIN,GPIO_PIN_SET); | |
871 | 70 HAL_Delay(25); |
71 // check for new screen | |
72 hardwareDisplay=0; // default is old screen | |
73 aTxBuffer[0] = 0x71; // Read internal register | |
74 if (receive_screen((uint8_t*)aTxBuffer) == 0x27) // chip Index (=0x27 for new screen) | |
75 { | |
76 hardwareDisplay=1; | |
77 } | |
873 | 78 else |
79 { // re-reset the screen to be sure the 0x71 command did nothing | |
80 HAL_GPIO_WritePin(DISPLAY_RESETB_GPIO_PORT,DISPLAY_RESETB_PIN,GPIO_PIN_RESET); | |
81 HAL_Delay(10); | |
82 HAL_GPIO_WritePin(DISPLAY_RESETB_GPIO_PORT,DISPLAY_RESETB_PIN,GPIO_PIN_SET); | |
83 HAL_Delay(25); | |
84 | |
85 } | |
38 | 86 |
87 /* RGB signals should be now for 2 frames or more (datasheet) */ | |
88 } | |
89 | |
90 | |
300
5ca177d2df5d
cleanup: remove commented/unused code, make static
Jan Mulder <jlmulder@xs4all.nl>
parents:
38
diff
changeset
|
91 static void send(uint8_t *pData, uint16_t inputlength) |
38 | 92 { |
93 HAL_GPIO_WritePin(DISPLAY_CSB_GPIO_PORT,DISPLAY_CSB_PIN,GPIO_PIN_RESET); // chip select | |
94 | |
95 if(HAL_SPI_Transmit(&hspiDisplay,(uint8_t*)pData, inputlength, 10000) != HAL_OK) | |
96 Display_Error_Handler(); | |
97 | |
98 while (HAL_SPI_GetState(&hspiDisplay) != HAL_SPI_STATE_READY) | |
99 { | |
100 } | |
101 HAL_GPIO_WritePin(DISPLAY_CSB_GPIO_PORT,DISPLAY_CSB_PIN,GPIO_PIN_SET); // chip select | |
102 } | |
103 | |
871 | 104 static uint8_t receive_screen(uint8_t *pData) |
105 { | |
106 uint8_t byte; | |
107 HAL_GPIO_WritePin(DISPLAY_CSB_GPIO_PORT,DISPLAY_CSB_PIN,GPIO_PIN_RESET); // chip select | |
108 if(HAL_SPI_Transmit(&hspiDisplay,(uint8_t*)pData, 1, 10000) != HAL_OK) | |
109 Display_Error_Handler(); | |
110 while (HAL_SPI_GetState(&hspiDisplay) != HAL_SPI_STATE_READY) | |
111 { | |
112 } | |
113 if(HAL_SPI_Receive(&hspiDisplay, &byte, 1, 10000) != HAL_OK) | |
114 Display_Error_Handler(); | |
115 while (HAL_SPI_GetState(&hspiDisplay) != HAL_SPI_STATE_READY) | |
116 { | |
117 } | |
118 HAL_GPIO_WritePin(DISPLAY_CSB_GPIO_PORT,DISPLAY_CSB_PIN,GPIO_PIN_SET); // chip select | |
119 return byte; | |
120 } | |
121 | |
38 | 122 |
300
5ca177d2df5d
cleanup: remove commented/unused code, make static
Jan Mulder <jlmulder@xs4all.nl>
parents:
38
diff
changeset
|
123 static uint16_t convert8to9to8(uint8_t *pInput, uint8_t *pOutput,uint16_t inputlength) |
38 | 124 { |
125 uint16_t outputlength; | |
126 uint8_t readbit = 0x80;//0b1000000; | |
127 uint8_t writebit = 0x40;//0b0100000; | |
128 uint16_t i,j,k; | |
129 | |
130 outputlength = ((inputlength+7)/8)*9; | |
131 | |
132 for(i=0;i<outputlength;i++) | |
133 pOutput[i] = 0; | |
134 | |
135 k = 0; | |
136 for(i=0;i<inputlength;i++) | |
137 { | |
138 if(i != 0) | |
139 { | |
140 pOutput[k] |= writebit; // 9. bit | |
141 writebit = writebit >> 1; | |
142 if(writebit == 0) | |
143 { | |
144 writebit = 0x80; | |
145 k++; | |
146 } | |
147 } | |
148 for(j=0;j<8;j++) | |
149 { | |
150 if((pInput[i] & readbit) != 0) | |
151 { | |
152 pOutput[k] |= writebit; | |
153 } | |
154 readbit = readbit >> 1; | |
155 if(readbit == 0) | |
156 readbit = 0x80; | |
157 writebit = writebit >> 1; | |
158 if(writebit == 0) | |
159 { | |
160 writebit = 0x80; | |
161 k++; | |
162 } | |
163 } | |
164 } | |
165 return outputlength; | |
166 } | |
167 | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
168 void display_power_off(void) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
169 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
170 if (hardwareDisplay == 1) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
171 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
172 uint8_t aTxBuffer[3]; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
173 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
174 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
175 aTxBuffer[1] = OLED_DDISP_ON_14h; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
176 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
177 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
178 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
179 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
180 HAL_Delay(25); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
181 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
182 aTxBuffer[1] = OLED_STB_BY_OFF_1Dh; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
183 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
184 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
185 aTxBuffer[1] = 0xA1; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
186 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
187 HAL_Delay(200); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
188 HAL_GPIO_WritePin(DISPLAY_RESETB_GPIO_PORT,DISPLAY_RESETB_PIN,GPIO_PIN_RESET); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
189 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
190 else |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
191 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
192 // display 0 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
193 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
194 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
195 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
196 |
38 | 197 void display_power_on__2_of_2__post_RGB(void) |
198 { | |
871 | 199 if (hardwareDisplay == 1) |
200 { | |
201 display_power_on__2_of_2__post_RGB_display1(); | |
202 } | |
203 else | |
204 { | |
205 display_power_on__2_of_2__post_RGB_display0(); | |
206 } | |
207 } | |
208 | |
209 void display_power_on__2_of_2__post_RGB_display0(void) | |
210 { | |
211 | |
38 | 212 uint8_t aTxBuffer[32]; |
213 uint8_t bTxBuffer[36]; | |
214 uint16_t i,length; | |
215 | |
216 for(i=0;i<32;i++) | |
217 aTxBuffer[i] = 0; | |
218 for(i=0;i<36;i++) | |
219 bTxBuffer[i] = 0; | |
220 | |
871 | 221 aTxBuffer[0] = TFT_ENABLE_EXTENDED_COMMANDS; |
38 | 222 aTxBuffer[1] = 0xFF; |
223 aTxBuffer[2] = 0x83; | |
224 aTxBuffer[3] = 0x63; | |
225 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,4); | |
226 send((uint8_t*)bTxBuffer, length); | |
227 | |
871 | 228 aTxBuffer[0] = TFT_SET_POWER; |
38 | 229 aTxBuffer[1] = 0x81; |
230 aTxBuffer[2] = 0x24; | |
231 aTxBuffer[3] = 0x04; | |
232 aTxBuffer[4] = 0x02; | |
233 aTxBuffer[5] = 0x02; | |
234 aTxBuffer[6] = 0x03; | |
235 aTxBuffer[7] = 0x10; | |
236 aTxBuffer[8] = 0x10; | |
237 aTxBuffer[9] = 0x34; | |
238 aTxBuffer[10] = 0x3C; | |
239 aTxBuffer[11] = 0x3F; | |
240 aTxBuffer[12] = 0x3F; | |
241 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,13); | |
242 send((uint8_t*)bTxBuffer, length); | |
243 | |
871 | 244 aTxBuffer[0] = TFT_SLEEP_OUT; |
38 | 245 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,1); |
246 send((uint8_t*)bTxBuffer, length); | |
247 HAL_Delay(5+1); | |
248 | |
871 | 249 aTxBuffer[0] = TFT_DISPLAY_INVERSION_OFF; |
38 | 250 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,1); |
251 send((uint8_t*)bTxBuffer, length); | |
252 | |
871 | 253 aTxBuffer[0] = TFT_MEMORY_ACCESS_ONTROL; |
38 | 254 aTxBuffer[1] = 0x00; |
255 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,2); | |
256 send((uint8_t*)bTxBuffer, length); | |
257 | |
871 | 258 aTxBuffer[0] = TFT_INTERFACE_PIXEL_FORMAT; |
38 | 259 aTxBuffer[1] = 0x70; |
260 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,2); | |
261 send((uint8_t*)bTxBuffer, length); | |
262 HAL_Delay(120+20); | |
263 | |
871 | 264 aTxBuffer[0] = TFT_SET_POWER; |
38 | 265 aTxBuffer[1] = 0x78; |
266 aTxBuffer[2] = 0x24; | |
267 aTxBuffer[3] = 0x04, | |
268 aTxBuffer[4] = 0x02; | |
269 aTxBuffer[5] = 0x02; | |
270 aTxBuffer[6] = 0x03; | |
271 aTxBuffer[7] = 0x10; | |
272 aTxBuffer[8] = 0x10; | |
273 aTxBuffer[9] = 0x34; | |
274 aTxBuffer[10] = 0x3C; | |
275 aTxBuffer[11] = 0x3F; | |
276 aTxBuffer[12] = 0x3F; | |
277 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,13); | |
278 send((uint8_t*)bTxBuffer, length); | |
279 | |
871 | 280 aTxBuffer[0] = TFT_SET_RGB_INTERFACE_RELATED; |
38 | 281 aTxBuffer[1] = 0x01; |
282 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,2); | |
283 send((uint8_t*)bTxBuffer, length); | |
284 | |
871 | 285 aTxBuffer[0] = TFT_SET_DISPLAY_WAVEFORM; |
38 | 286 aTxBuffer[1] = 0x00; |
287 aTxBuffer[2] = 0x08; | |
288 aTxBuffer[3] = 0x56; | |
289 aTxBuffer[4] = 0x07; | |
290 aTxBuffer[5] = 0x01; | |
291 aTxBuffer[6] = 0x01; | |
292 aTxBuffer[7] = 0x4D; | |
293 aTxBuffer[8] = 0x01; | |
294 aTxBuffer[9] = 0x42; | |
295 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,10); | |
296 send((uint8_t*)bTxBuffer, length); | |
297 | |
871 | 298 aTxBuffer[0] = TFT_SET_PANEL; |
38 | 299 aTxBuffer[1] = 0x0B; |
300 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,2); | |
301 send((uint8_t*)bTxBuffer, length); | |
302 | |
871 | 303 aTxBuffer[0] = TFT_SET_GAMMA_CURVE_RELATED; |
38 | 304 aTxBuffer[1] = 0x01; |
305 aTxBuffer[2] = 0x48; | |
306 aTxBuffer[3] = 0x4D; | |
307 aTxBuffer[4] = 0x4E; | |
308 aTxBuffer[5] = 0x58; | |
309 aTxBuffer[6] = 0xF6; | |
310 aTxBuffer[7] = 0x0B; | |
311 aTxBuffer[8] = 0x4E; | |
312 aTxBuffer[9] = 0x12; | |
313 aTxBuffer[10] = 0xD5; | |
314 aTxBuffer[11] = 0x15; | |
315 aTxBuffer[12] = 0x95; | |
316 aTxBuffer[13] = 0x55; | |
317 aTxBuffer[14] = 0x8E; | |
318 aTxBuffer[15] = 0x11; | |
319 aTxBuffer[16] = 0x01; | |
320 aTxBuffer[17] = 0x48; | |
321 aTxBuffer[18] = 0x4D; | |
322 aTxBuffer[19] = 0x55; | |
323 aTxBuffer[20] = 0x5F; | |
324 aTxBuffer[21] = 0xFD; | |
325 aTxBuffer[22] = 0x0A; | |
326 aTxBuffer[23] = 0x4E; | |
327 aTxBuffer[24] = 0x51; | |
328 aTxBuffer[25] = 0xD3; | |
329 aTxBuffer[26] = 0x17; | |
330 aTxBuffer[27] = 0x95; | |
331 aTxBuffer[28] = 0x96; | |
332 aTxBuffer[29] = 0x4E; | |
333 aTxBuffer[30] = 0x11; | |
334 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,31); | |
335 send((uint8_t*)bTxBuffer, length); | |
336 HAL_Delay(5+1); | |
337 | |
871 | 338 aTxBuffer[0] = TFT_DISPLAY_ON; |
38 | 339 length = convert8to9to8((uint8_t*)aTxBuffer,(uint8_t*)bTxBuffer,1); |
340 send((uint8_t*)bTxBuffer, length); | |
341 } | |
342 | |
343 | |
871 | 344 void display_power_on__2_of_2__post_RGB_display1(void) |
345 { | |
346 uint8_t aTxBuffer[3]; | |
347 | |
348 aTxBuffer[0] = 0x71; // Read chip Index & revision number | |
349 aTxBuffer[1] = 0x00; // Dummy write - reads out 0x27 | |
350 aTxBuffer[1] = 0x00; // Dummy write - reads out 0x96 | |
351 send((uint8_t*)aTxBuffer, 3); | |
352 | |
353 aTxBuffer[0] = 0x70; | |
354 aTxBuffer[1] = OLED_OSCILLATOR; | |
355 send((uint8_t*)aTxBuffer, 2); | |
356 aTxBuffer[0] = 0x72; | |
357 aTxBuffer[1] = 0xA4; | |
358 send((uint8_t*)aTxBuffer, 2); | |
359 | |
360 aTxBuffer[0] = 0x70; | |
361 aTxBuffer[1] = OLED_SCTE_SET_31h; | |
362 send((uint8_t*)aTxBuffer, 2); | |
363 aTxBuffer[0] = 0x72; | |
364 aTxBuffer[1] = 0x08;//8 | |
365 send((uint8_t*)aTxBuffer, 2); | |
366 | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
367 /*//debug read |
871 | 368 aTxBuffer[0] = 0x70; |
369 aTxBuffer[1] = OLED_SCTE_SET_31h; | |
370 send((uint8_t*)aTxBuffer, 2); | |
371 aTxBuffer[0] = 0x73; // Read internal register | |
372 aTxBuffer[1] = 0x00; // Dummy write - reads out 0x08 (The just-set OLED_SCTE_SET value) | |
373 send((uint8_t*)aTxBuffer, 2); | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
374 */ |
871 | 375 |
376 aTxBuffer[0] = 0x70; | |
377 aTxBuffer[1] = OLED_WCWE_SET_32h; | |
378 send((uint8_t*)aTxBuffer, 2); | |
379 aTxBuffer[0] = 0x72; | |
380 aTxBuffer[1] = 0x14;//14 | |
381 send((uint8_t*)aTxBuffer, 2); | |
382 | |
383 aTxBuffer[0] = 0x70; | |
384 aTxBuffer[1] = OLED_GATELESS1_30h; | |
385 send((uint8_t*)aTxBuffer, 2); | |
386 aTxBuffer[0] = 0x72; | |
387 aTxBuffer[1] = 0x02; | |
388 send((uint8_t*)aTxBuffer, 2); | |
389 | |
390 aTxBuffer[0] = 0x70; | |
391 aTxBuffer[1] = OLED_GATELESS2_27h; | |
392 send((uint8_t*)aTxBuffer, 2); | |
393 aTxBuffer[0] = 0x72; | |
394 aTxBuffer[1] = 0x01; | |
395 send((uint8_t*)aTxBuffer, 2); | |
396 | |
397 | |
398 aTxBuffer[0] = 0x70; | |
399 aTxBuffer[1] = OLED_VBP_SET_12h; | |
400 send((uint8_t*)aTxBuffer, 2); | |
401 aTxBuffer[0] = 0x72; | |
402 aTxBuffer[1] = 0x08; | |
403 send((uint8_t*)aTxBuffer, 2); | |
404 | |
405 aTxBuffer[0] = 0x70; | |
406 aTxBuffer[1] = OLED_VFP_SET_13h; | |
407 send((uint8_t*)aTxBuffer, 2); | |
408 aTxBuffer[0] = 0x72; | |
409 aTxBuffer[1] = 0x08; | |
410 send((uint8_t*)aTxBuffer, 2); | |
411 | |
412 aTxBuffer[0] = 0x70; | |
413 aTxBuffer[1] = OLED_DISPLAY_CON_15h; | |
414 send((uint8_t*)aTxBuffer, 2); | |
415 aTxBuffer[0] = 0x72; | |
416 aTxBuffer[1] = 0x01; //SS=0 | |
417 //aTxBuffer[1] = 0x11; //SS=1 | |
418 send((uint8_t*)aTxBuffer, 2); | |
419 | |
420 aTxBuffer[0] = 0x70; | |
421 aTxBuffer[1] = OLED_COLOR_DEPTH_SET_16h; | |
422 send((uint8_t*)aTxBuffer, 2); | |
423 aTxBuffer[0] = 0x72; | |
424 aTxBuffer[1] = 0x00; | |
425 send((uint8_t*)aTxBuffer, 2); | |
426 | |
427 aTxBuffer[0] = 0x70; | |
428 aTxBuffer[1] = OLED_PENTILE_KEY_EFh; // write-only register... | |
429 send((uint8_t*)aTxBuffer, 2); | |
430 aTxBuffer[0] = 0x72; | |
431 aTxBuffer[1] = 0xD0; | |
432 send((uint8_t*)aTxBuffer, 2); | |
433 aTxBuffer[0] = 0x72; | |
434 aTxBuffer[1] = 0xE8; | |
435 send((uint8_t*)aTxBuffer, 2); | |
436 | |
437 aTxBuffer[0] = 0x70; | |
438 aTxBuffer[1] = OLED_PENTILE1_A0h; // write-only register... | |
439 send((uint8_t*)aTxBuffer, 2); | |
440 aTxBuffer[0] = 0x72; | |
441 aTxBuffer[1] = 0x00; | |
442 send((uint8_t*)aTxBuffer, 2); | |
443 aTxBuffer[0] = 0x72; | |
444 aTxBuffer[1] = 0x63; | |
445 send((uint8_t*)aTxBuffer, 2); | |
446 | |
447 aTxBuffer[0] = 0x70; | |
448 aTxBuffer[1] = OLED_PENTILE2_A1h; // write-only register... | |
449 send((uint8_t*)aTxBuffer, 2); | |
450 aTxBuffer[0] = 0x72; | |
451 aTxBuffer[1] = 0x00; | |
452 send((uint8_t*)aTxBuffer, 2); | |
453 aTxBuffer[0] = 0x72; | |
454 aTxBuffer[1] = 0xC0; // SID1&SID0=00 | |
455 // aTxBuffer[1] = 0xC4; // SID1&SID0=01 CC C8 C4 C0 | |
456 send((uint8_t*)aTxBuffer, 2); | |
457 | |
458 aTxBuffer[0] = 0x70; | |
459 aTxBuffer[1] = OLED_PENTILE3_A2h; // write-only register... | |
460 send((uint8_t*)aTxBuffer, 2); | |
461 aTxBuffer[0] = 0x72; | |
462 aTxBuffer[1] = 0x00; | |
463 send((uint8_t*)aTxBuffer, 2); | |
464 aTxBuffer[0] = 0x72; | |
465 aTxBuffer[1] = 0x32; | |
466 send((uint8_t*)aTxBuffer, 2); | |
467 | |
468 aTxBuffer[0] = 0x70; | |
469 aTxBuffer[1] = OLED_PENTILE4_A3h; // write-only register... | |
470 send((uint8_t*)aTxBuffer, 2); | |
471 aTxBuffer[0] = 0x72; | |
472 aTxBuffer[1] = 0x00; | |
473 send((uint8_t*)aTxBuffer, 2); | |
474 aTxBuffer[0] = 0x72; | |
475 aTxBuffer[1] = 0x02; | |
476 send((uint8_t*)aTxBuffer, 2); | |
477 | |
478 aTxBuffer[0] = 0x70; | |
479 aTxBuffer[1] = OLED_BRIGHTNESS_CTRL_39h; | |
480 send((uint8_t*)aTxBuffer, 2); | |
481 aTxBuffer[0] = 0x72; | |
482 aTxBuffer[1] = 0x44;//44 | |
483 send((uint8_t*)aTxBuffer, 2); | |
484 | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
485 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
486 display_1_brightness_std(); // boot brightness |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
487 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
488 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
489 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
490 aTxBuffer[1] = OLED_BOOSTING_FREQ; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
491 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
492 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
493 aTxBuffer[1] = 0x22; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
494 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
495 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
496 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
497 aTxBuffer[1] = OLED_AMP_SET_18h; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
498 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
499 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
500 aTxBuffer[1] = 0x22; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
501 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
502 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
503 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
504 aTxBuffer[1] = OLED_GAMMA_AMP_19h; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
505 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
506 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
507 aTxBuffer[1] = 0x02; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
508 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
509 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
510 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
511 aTxBuffer[1] = OLED_POWER_CONTROL2_1Ah; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
512 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
513 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
514 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
515 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
516 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
517 /* |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
518 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
519 aTxBuffer[1] = OLED_POWER_CONTROL2_1Bh; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
520 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
521 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
522 aTxBuffer[1] = 0x4B; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
523 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
524 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
525 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
526 aTxBuffer[1] = OLED_POWER_CONTROL2_1Ch; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
527 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
528 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
529 aTxBuffer[1] = 0x05; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
530 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
531 */ |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
532 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
533 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
534 aTxBuffer[1] = OLED_INTERNAL_LOGIC_VOLTAGE; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
535 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
536 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
537 aTxBuffer[1] = 0xA2; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
538 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
539 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
540 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
541 aTxBuffer[1] = OLED_POWER_SET; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
542 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
543 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
544 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
545 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
546 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
547 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
548 aTxBuffer[1] = OLED_POWER_SET2; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
549 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
550 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
551 aTxBuffer[1] = 0x77; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
552 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
553 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
554 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
555 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
556 aTxBuffer[1] = OLED_DISPLAY_CONDITION_SET_26h; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
557 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
558 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
559 aTxBuffer[1] = 0xA0; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
560 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
561 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
562 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
563 aTxBuffer[1] = OLED_STB_BY_OFF_1Dh; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
564 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
565 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
566 aTxBuffer[1] = 0xA0; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
567 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
568 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
569 HAL_Delay(250); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
570 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
571 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
572 aTxBuffer[1] = OLED_DDISP_ON_14h; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
573 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
574 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
575 aTxBuffer[1] = 0x03; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
576 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
577 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
578 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
579 void display_1_brightness_max(void) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
580 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
581 uint8_t aTxBuffer[3]; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
582 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
583 if (brightness_screen1 == 4) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
584 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
585 // do nothing |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
586 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
587 else |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
588 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
589 // GAMMA L=250 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
590 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
591 aTxBuffer[1] = 0x40; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
592 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
593 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
594 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
595 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
596 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
597 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
598 aTxBuffer[1] = 0x41; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
599 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
600 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
601 aTxBuffer[1] = 0x3F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
602 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
603 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
604 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
605 aTxBuffer[1] = 0x42; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
606 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
607 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
608 aTxBuffer[1] = 0x2A; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
609 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
610 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
611 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
612 aTxBuffer[1] = 0x43; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
613 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
614 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
615 aTxBuffer[1] = 0x27; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
616 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
617 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
618 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
619 aTxBuffer[1] = 0x44; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
620 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
621 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
622 aTxBuffer[1] = 0x27; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
623 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
624 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
625 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
626 aTxBuffer[1] = 0x45; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
627 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
628 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
629 aTxBuffer[1] = 0x1F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
630 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
631 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
632 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
633 aTxBuffer[1] = 0x46; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
634 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
635 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
636 aTxBuffer[1] = 0x44; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
637 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
638 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
639 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
640 aTxBuffer[1] = 0x50; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
641 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
642 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
643 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
644 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
645 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
646 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
647 aTxBuffer[1] = 0x51; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
648 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
649 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
650 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
651 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
652 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
653 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
654 aTxBuffer[1] = 0x52; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
655 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
656 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
657 aTxBuffer[1] = 0x17; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
658 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
659 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
660 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
661 aTxBuffer[1] = 0x53; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
662 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
663 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
664 aTxBuffer[1] = 0x24; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
665 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
666 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
667 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
668 aTxBuffer[1] = 0x54; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
669 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
670 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
671 aTxBuffer[1] = 0x26; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
672 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
673 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
674 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
675 aTxBuffer[1] = 0x55; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
676 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
677 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
678 aTxBuffer[1] = 0x1F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
679 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
680 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
681 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
682 aTxBuffer[1] = 0x56; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
683 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
684 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
685 aTxBuffer[1] = 0x43; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
686 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
687 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
688 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
689 aTxBuffer[1] = 0x60; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
690 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
691 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
692 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
693 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
694 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
695 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
696 aTxBuffer[1] = 0x61; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
697 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
698 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
699 aTxBuffer[1] = 0x3F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
700 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
701 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
702 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
703 aTxBuffer[1] = 0x62; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
704 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
705 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
706 aTxBuffer[1] = 0x2A; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
707 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
708 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
709 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
710 aTxBuffer[1] = 0x63; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
711 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
712 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
713 aTxBuffer[1] = 0x25; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
714 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
715 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
716 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
717 aTxBuffer[1] = 0x64; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
718 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
719 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
720 aTxBuffer[1] = 0x24; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
721 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
722 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
723 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
724 aTxBuffer[1] = 0x65; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
725 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
726 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
727 aTxBuffer[1] = 0x1B; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
728 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
729 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
730 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
731 aTxBuffer[1] = 0x66; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
732 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
733 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
734 aTxBuffer[1] = 0x5C; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
735 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
736 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
737 brightness_screen1=4; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
738 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
739 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
740 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
741 void display_1_brightness_high(void) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
742 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
743 uint8_t aTxBuffer[3]; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
744 if (brightness_screen1 == 3) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
745 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
746 // do nothing |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
747 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
748 else |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
749 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
750 // GAMMA L=200 |
871 | 751 aTxBuffer[0] = 0x70; |
752 aTxBuffer[1] = 0x40; | |
753 send((uint8_t*)aTxBuffer, 2); | |
754 aTxBuffer[0] = 0x72; | |
755 aTxBuffer[1] = 0x00; | |
756 send((uint8_t*)aTxBuffer, 2); | |
757 | |
758 aTxBuffer[0] = 0x70; | |
759 aTxBuffer[1] = 0x41; | |
760 send((uint8_t*)aTxBuffer, 2); | |
761 aTxBuffer[0] = 0x72; | |
762 aTxBuffer[1] = 0x3F; | |
763 send((uint8_t*)aTxBuffer, 2); | |
764 | |
765 aTxBuffer[0] = 0x70; | |
766 aTxBuffer[1] = 0x42; | |
767 send((uint8_t*)aTxBuffer, 2); | |
768 aTxBuffer[0] = 0x72; | |
769 aTxBuffer[1] = 0x2A; | |
770 send((uint8_t*)aTxBuffer, 2); | |
771 | |
772 aTxBuffer[0] = 0x70; | |
773 aTxBuffer[1] = 0x43; | |
774 send((uint8_t*)aTxBuffer, 2); | |
775 aTxBuffer[0] = 0x72; | |
776 aTxBuffer[1] = 0x27; | |
777 send((uint8_t*)aTxBuffer, 2); | |
778 | |
779 aTxBuffer[0] = 0x70; | |
780 aTxBuffer[1] = 0x44; | |
781 send((uint8_t*)aTxBuffer, 2); | |
782 aTxBuffer[0] = 0x72; | |
783 aTxBuffer[1] = 0x27; | |
784 send((uint8_t*)aTxBuffer, 2); | |
785 | |
786 aTxBuffer[0] = 0x70; | |
787 aTxBuffer[1] = 0x45; | |
788 send((uint8_t*)aTxBuffer, 2); | |
789 aTxBuffer[0] = 0x72; | |
790 aTxBuffer[1] = 0x1F; | |
791 send((uint8_t*)aTxBuffer, 2); | |
792 | |
793 aTxBuffer[0] = 0x70; | |
794 aTxBuffer[1] = 0x46; | |
795 send((uint8_t*)aTxBuffer, 2); | |
796 aTxBuffer[0] = 0x72; | |
797 aTxBuffer[1] = 0x44; | |
798 send((uint8_t*)aTxBuffer, 2); | |
799 | |
800 aTxBuffer[0] = 0x70; | |
801 aTxBuffer[1] = 0x50; | |
802 send((uint8_t*)aTxBuffer, 2); | |
803 aTxBuffer[0] = 0x72; | |
804 aTxBuffer[1] = 0x00; | |
805 send((uint8_t*)aTxBuffer, 2); | |
806 | |
807 aTxBuffer[0] = 0x70; | |
808 aTxBuffer[1] = 0x51; | |
809 send((uint8_t*)aTxBuffer, 2); | |
810 aTxBuffer[0] = 0x72; | |
811 aTxBuffer[1] = 0x00; | |
812 send((uint8_t*)aTxBuffer, 2); | |
813 | |
814 aTxBuffer[0] = 0x70; | |
815 aTxBuffer[1] = 0x52; | |
816 send((uint8_t*)aTxBuffer, 2); | |
817 aTxBuffer[0] = 0x72; | |
818 aTxBuffer[1] = 0x17; | |
819 send((uint8_t*)aTxBuffer, 2); | |
820 | |
821 aTxBuffer[0] = 0x70; | |
822 aTxBuffer[1] = 0x53; | |
823 send((uint8_t*)aTxBuffer, 2); | |
824 aTxBuffer[0] = 0x72; | |
825 aTxBuffer[1] = 0x24; | |
826 send((uint8_t*)aTxBuffer, 2); | |
827 | |
828 aTxBuffer[0] = 0x70; | |
829 aTxBuffer[1] = 0x54; | |
830 send((uint8_t*)aTxBuffer, 2); | |
831 aTxBuffer[0] = 0x72; | |
832 aTxBuffer[1] = 0x26; | |
833 send((uint8_t*)aTxBuffer, 2); | |
834 | |
835 aTxBuffer[0] = 0x70; | |
836 aTxBuffer[1] = 0x55; | |
837 send((uint8_t*)aTxBuffer, 2); | |
838 aTxBuffer[0] = 0x72; | |
839 aTxBuffer[1] = 0x1F; | |
840 send((uint8_t*)aTxBuffer, 2); | |
841 | |
842 aTxBuffer[0] = 0x70; | |
843 aTxBuffer[1] = 0x56; | |
844 send((uint8_t*)aTxBuffer, 2); | |
845 aTxBuffer[0] = 0x72; | |
846 aTxBuffer[1] = 0x43; | |
847 send((uint8_t*)aTxBuffer, 2); | |
848 | |
849 aTxBuffer[0] = 0x70; | |
850 aTxBuffer[1] = 0x60; | |
851 send((uint8_t*)aTxBuffer, 2); | |
852 aTxBuffer[0] = 0x72; | |
853 aTxBuffer[1] = 0x00; | |
854 send((uint8_t*)aTxBuffer, 2); | |
855 | |
856 aTxBuffer[0] = 0x70; | |
857 aTxBuffer[1] = 0x61; | |
858 send((uint8_t*)aTxBuffer, 2); | |
859 aTxBuffer[0] = 0x72; | |
860 aTxBuffer[1] = 0x3F; | |
861 send((uint8_t*)aTxBuffer, 2); | |
862 | |
863 aTxBuffer[0] = 0x70; | |
864 aTxBuffer[1] = 0x62; | |
865 send((uint8_t*)aTxBuffer, 2); | |
866 aTxBuffer[0] = 0x72; | |
867 aTxBuffer[1] = 0x2A; | |
868 send((uint8_t*)aTxBuffer, 2); | |
869 | |
870 aTxBuffer[0] = 0x70; | |
871 aTxBuffer[1] = 0x63; | |
872 send((uint8_t*)aTxBuffer, 2); | |
873 aTxBuffer[0] = 0x72; | |
874 aTxBuffer[1] = 0x25; | |
875 send((uint8_t*)aTxBuffer, 2); | |
876 | |
877 aTxBuffer[0] = 0x70; | |
878 aTxBuffer[1] = 0x64; | |
879 send((uint8_t*)aTxBuffer, 2); | |
880 aTxBuffer[0] = 0x72; | |
881 aTxBuffer[1] = 0x24; | |
882 send((uint8_t*)aTxBuffer, 2); | |
883 | |
884 aTxBuffer[0] = 0x70; | |
885 aTxBuffer[1] = 0x65; | |
886 send((uint8_t*)aTxBuffer, 2); | |
887 aTxBuffer[0] = 0x72; | |
888 aTxBuffer[1] = 0x1B; | |
889 send((uint8_t*)aTxBuffer, 2); | |
890 | |
891 aTxBuffer[0] = 0x70; | |
892 aTxBuffer[1] = 0x66; | |
893 send((uint8_t*)aTxBuffer, 2); | |
894 aTxBuffer[0] = 0x72; | |
895 aTxBuffer[1] = 0x5C; | |
896 send((uint8_t*)aTxBuffer, 2); | |
897 | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
898 brightness_screen1=3; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
899 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
900 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
901 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
902 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
903 void display_1_brightness_std(void) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
904 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
905 uint8_t aTxBuffer[3]; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
906 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
907 if (brightness_screen1 == 2) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
908 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
909 // do nothing |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
910 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
911 else |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
912 { |
871 | 913 // GAMMA L=150 |
914 aTxBuffer[0] = 0x70; | |
915 aTxBuffer[1] = 0x40; | |
916 send((uint8_t*)aTxBuffer, 2); | |
917 aTxBuffer[0] = 0x72; | |
918 aTxBuffer[1] = 0x00; | |
919 send((uint8_t*)aTxBuffer, 2); | |
920 | |
921 aTxBuffer[0] = 0x70; | |
922 aTxBuffer[1] = 0x41; | |
923 send((uint8_t*)aTxBuffer, 2); | |
924 aTxBuffer[0] = 0x72; | |
925 aTxBuffer[1] = 0x3F; | |
926 send((uint8_t*)aTxBuffer, 2); | |
927 | |
928 aTxBuffer[0] = 0x70; | |
929 aTxBuffer[1] = 0x42; | |
930 send((uint8_t*)aTxBuffer, 2); | |
931 aTxBuffer[0] = 0x72; | |
932 aTxBuffer[1] = 0x2D; | |
933 send((uint8_t*)aTxBuffer, 2); | |
934 | |
935 aTxBuffer[0] = 0x70; | |
936 aTxBuffer[1] = 0x43; | |
937 send((uint8_t*)aTxBuffer, 2); | |
938 aTxBuffer[0] = 0x72; | |
939 aTxBuffer[1] = 0x29; | |
940 send((uint8_t*)aTxBuffer, 2); | |
941 | |
942 aTxBuffer[0] = 0x70; | |
943 aTxBuffer[1] = 0x44; | |
944 send((uint8_t*)aTxBuffer, 2); | |
945 aTxBuffer[0] = 0x72; | |
946 aTxBuffer[1] = 0x28; | |
947 send((uint8_t*)aTxBuffer, 2); | |
948 | |
949 aTxBuffer[0] = 0x70; | |
950 aTxBuffer[1] = 0x45; | |
951 send((uint8_t*)aTxBuffer, 2); | |
952 aTxBuffer[0] = 0x72; | |
953 aTxBuffer[1] = 0x23; | |
954 send((uint8_t*)aTxBuffer, 2); | |
955 | |
956 aTxBuffer[0] = 0x70; | |
957 aTxBuffer[1] = 0x46; | |
958 send((uint8_t*)aTxBuffer, 2); | |
959 aTxBuffer[0] = 0x72; | |
960 aTxBuffer[1] = 0x37; | |
961 send((uint8_t*)aTxBuffer, 2); | |
962 | |
963 aTxBuffer[0] = 0x70; | |
964 aTxBuffer[1] = 0x50; | |
965 send((uint8_t*)aTxBuffer, 2); | |
966 aTxBuffer[0] = 0x72; | |
967 aTxBuffer[1] = 0x00; | |
968 send((uint8_t*)aTxBuffer, 2); | |
969 | |
970 aTxBuffer[0] = 0x70; | |
971 aTxBuffer[1] = 0x51; | |
972 send((uint8_t*)aTxBuffer, 2); | |
973 aTxBuffer[0] = 0x72; | |
974 aTxBuffer[1] = 0x00; | |
975 send((uint8_t*)aTxBuffer, 2); | |
976 | |
977 aTxBuffer[0] = 0x70; | |
978 aTxBuffer[1] = 0x52; | |
979 send((uint8_t*)aTxBuffer, 2); | |
980 aTxBuffer[0] = 0x72; | |
981 aTxBuffer[1] = 0x0B; | |
982 send((uint8_t*)aTxBuffer, 2); | |
983 | |
984 aTxBuffer[0] = 0x70; | |
985 aTxBuffer[1] = 0x53; | |
986 send((uint8_t*)aTxBuffer, 2); | |
987 aTxBuffer[0] = 0x72; | |
988 aTxBuffer[1] = 0x25; | |
989 send((uint8_t*)aTxBuffer, 2); | |
990 | |
991 aTxBuffer[0] = 0x70; | |
992 aTxBuffer[1] = 0x54; | |
993 send((uint8_t*)aTxBuffer, 2); | |
994 aTxBuffer[0] = 0x72; | |
995 aTxBuffer[1] = 0x28; | |
996 send((uint8_t*)aTxBuffer, 2); | |
997 | |
998 aTxBuffer[0] = 0x70; | |
999 aTxBuffer[1] = 0x55; | |
1000 send((uint8_t*)aTxBuffer, 2); | |
1001 aTxBuffer[0] = 0x72; | |
1002 aTxBuffer[1] = 0x22; | |
1003 send((uint8_t*)aTxBuffer, 2); | |
1004 | |
1005 aTxBuffer[0] = 0x70; | |
1006 aTxBuffer[1] = 0x56; | |
1007 send((uint8_t*)aTxBuffer, 2); | |
1008 aTxBuffer[0] = 0x72; | |
1009 aTxBuffer[1] = 0x36; | |
1010 send((uint8_t*)aTxBuffer, 2); | |
1011 | |
1012 aTxBuffer[0] = 0x70; | |
1013 aTxBuffer[1] = 0x60; | |
1014 send((uint8_t*)aTxBuffer, 2); | |
1015 aTxBuffer[0] = 0x72; | |
1016 aTxBuffer[1] = 0x00; | |
1017 send((uint8_t*)aTxBuffer, 2); | |
1018 | |
1019 aTxBuffer[0] = 0x70; | |
1020 aTxBuffer[1] = 0x61; | |
1021 send((uint8_t*)aTxBuffer, 2); | |
1022 aTxBuffer[0] = 0x72; | |
1023 aTxBuffer[1] = 0x3F; | |
1024 send((uint8_t*)aTxBuffer, 2); | |
1025 | |
1026 aTxBuffer[0] = 0x70; | |
1027 aTxBuffer[1] = 0x62; | |
1028 send((uint8_t*)aTxBuffer, 2); | |
1029 aTxBuffer[0] = 0x72; | |
1030 aTxBuffer[1] = 0x2B; | |
1031 send((uint8_t*)aTxBuffer, 2); | |
1032 | |
1033 aTxBuffer[0] = 0x70; | |
1034 aTxBuffer[1] = 0x63; | |
1035 send((uint8_t*)aTxBuffer, 2); | |
1036 aTxBuffer[0] = 0x72; | |
1037 aTxBuffer[1] = 0x28; | |
1038 send((uint8_t*)aTxBuffer, 2); | |
1039 | |
1040 aTxBuffer[0] = 0x70; | |
1041 aTxBuffer[1] = 0x64; | |
1042 send((uint8_t*)aTxBuffer, 2); | |
1043 aTxBuffer[0] = 0x72; | |
1044 aTxBuffer[1] = 0x26; | |
1045 send((uint8_t*)aTxBuffer, 2); | |
1046 | |
1047 aTxBuffer[0] = 0x70; | |
1048 aTxBuffer[1] = 0x65; | |
1049 send((uint8_t*)aTxBuffer, 2); | |
1050 aTxBuffer[0] = 0x72; | |
1051 aTxBuffer[1] = 0x1F; | |
1052 send((uint8_t*)aTxBuffer, 2); | |
1053 | |
1054 aTxBuffer[0] = 0x70; | |
1055 aTxBuffer[1] = 0x66; | |
1056 send((uint8_t*)aTxBuffer, 2); | |
1057 aTxBuffer[0] = 0x72; | |
1058 aTxBuffer[1] = 0x4A; | |
1059 send((uint8_t*)aTxBuffer, 2); | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1060 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1061 brightness_screen1=2; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1062 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1063 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1064 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1065 void display_1_brightness_eco(void) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1066 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1067 uint8_t aTxBuffer[3]; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1068 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1069 if (brightness_screen1 == 1) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1070 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1071 // do nothing |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1072 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1073 else |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1074 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1075 // GAMMA L=100 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1076 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1077 aTxBuffer[1] = 0x40; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1078 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1079 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1080 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1081 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1082 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1083 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1084 aTxBuffer[1] = 0x41; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1085 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1086 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1087 aTxBuffer[1] = 0x3F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1088 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1089 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1090 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1091 aTxBuffer[1] = 0x42; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1092 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1093 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1094 aTxBuffer[1] = 0x30; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1095 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1096 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1097 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1098 aTxBuffer[1] = 0x43; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1099 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1100 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1101 aTxBuffer[1] = 0x2A; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1102 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1103 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1104 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1105 aTxBuffer[1] = 0x44; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1106 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1107 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1108 aTxBuffer[1] = 0x2B; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1109 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1110 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1111 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1112 aTxBuffer[1] = 0x45; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1113 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1114 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1115 aTxBuffer[1] = 0x24; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1116 send((uint8_t*)aTxBuffer, 2); |
871 | 1117 |
1118 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1119 aTxBuffer[1] = 0x46; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1120 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1121 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1122 aTxBuffer[1] = 0x2F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1123 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1124 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1125 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1126 aTxBuffer[1] = 0x50; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1127 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1128 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1129 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1130 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1131 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1132 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1133 aTxBuffer[1] = 0x51; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1134 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1135 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1136 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1137 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1138 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1139 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1140 aTxBuffer[1] = 0x52; |
871 | 1141 send((uint8_t*)aTxBuffer, 2); |
1142 aTxBuffer[0] = 0x72; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1143 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1144 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1145 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1146 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1147 aTxBuffer[1] = 0x53; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1148 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1149 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1150 aTxBuffer[1] = 0x25; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1151 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1152 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1153 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1154 aTxBuffer[1] = 0x54; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1155 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1156 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1157 aTxBuffer[1] = 0x29; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1158 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1159 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1160 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1161 aTxBuffer[1] = 0x55; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1162 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1163 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1164 aTxBuffer[1] = 0x24; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1165 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1166 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1167 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1168 aTxBuffer[1] = 0x56; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1169 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1170 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1171 aTxBuffer[1] = 0x2E; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1172 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1173 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1174 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1175 aTxBuffer[1] = 0x60; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1176 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1177 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1178 aTxBuffer[1] = 0x00; |
871 | 1179 send((uint8_t*)aTxBuffer, 2); |
1180 | |
1181 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1182 aTxBuffer[1] = 0x61; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1183 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1184 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1185 aTxBuffer[1] = 0x3F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1186 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1187 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1188 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1189 aTxBuffer[1] = 0x62; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1190 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1191 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1192 aTxBuffer[1] = 0x2F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1193 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1194 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1195 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1196 aTxBuffer[1] = 0x63; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1197 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1198 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1199 aTxBuffer[1] = 0x29; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1200 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1201 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1202 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1203 aTxBuffer[1] = 0x64; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1204 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1205 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1206 aTxBuffer[1] = 0x29; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1207 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1208 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1209 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1210 aTxBuffer[1] = 0x65; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1211 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1212 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1213 aTxBuffer[1] = 0x21; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1214 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1215 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1216 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1217 aTxBuffer[1] = 0x66; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1218 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1219 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1220 aTxBuffer[1] = 0x3F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1221 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1222 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1223 brightness_screen1=1; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1224 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1225 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1226 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1227 void display_1_brightness_cave(void) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1228 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1229 uint8_t aTxBuffer[3]; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1230 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1231 if (brightness_screen1 == 0) |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1232 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1233 // do nothing |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1234 } |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1235 else |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1236 { |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1237 // GAMMA L=50 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1238 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1239 aTxBuffer[1] = 0x40; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1240 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1241 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1242 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1243 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1244 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1245 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1246 aTxBuffer[1] = 0x41; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1247 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1248 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1249 aTxBuffer[1] = 0x3F; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1250 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1251 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1252 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1253 aTxBuffer[1] = 0x42; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1254 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1255 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1256 aTxBuffer[1] = 0x3C; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1257 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1258 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1259 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1260 aTxBuffer[1] = 0x43; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1261 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1262 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1263 aTxBuffer[1] = 0x2C; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1264 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1265 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1266 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1267 aTxBuffer[1] = 0x44; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1268 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1269 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1270 aTxBuffer[1] = 0x2D; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1271 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1272 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1273 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1274 aTxBuffer[1] = 0x45; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1275 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1276 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1277 aTxBuffer[1] = 0x27; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1278 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1279 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1280 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1281 aTxBuffer[1] = 0x46; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1282 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1283 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1284 aTxBuffer[1] = 0x24; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1285 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1286 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1287 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1288 aTxBuffer[1] = 0x50; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1289 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1290 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1291 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1292 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1293 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1294 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1295 aTxBuffer[1] = 0x51; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1296 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1297 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1298 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1299 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1300 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1301 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1302 aTxBuffer[1] = 0x52; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1303 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1304 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1305 aTxBuffer[1] = 0x00; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1306 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1307 |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1308 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1309 aTxBuffer[1] = 0x53; |
871 | 1310 send((uint8_t*)aTxBuffer, 2); |
1311 aTxBuffer[0] = 0x72; | |
1312 aTxBuffer[1] = 0x22; | |
1313 send((uint8_t*)aTxBuffer, 2); | |
1314 | |
1315 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1316 aTxBuffer[1] = 0x54; |
871 | 1317 send((uint8_t*)aTxBuffer, 2); |
1318 aTxBuffer[0] = 0x72; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1319 aTxBuffer[1] = 0x2A; |
871 | 1320 send((uint8_t*)aTxBuffer, 2); |
1321 | |
1322 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1323 aTxBuffer[1] = 0x55; |
871 | 1324 send((uint8_t*)aTxBuffer, 2); |
1325 aTxBuffer[0] = 0x72; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1326 aTxBuffer[1] = 0x27; |
871 | 1327 send((uint8_t*)aTxBuffer, 2); |
1328 | |
1329 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1330 aTxBuffer[1] = 0x56; |
871 | 1331 send((uint8_t*)aTxBuffer, 2); |
1332 aTxBuffer[0] = 0x72; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1333 aTxBuffer[1] = 0x23; |
871 | 1334 send((uint8_t*)aTxBuffer, 2); |
1335 | |
1336 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1337 aTxBuffer[1] = 0x60; |
871 | 1338 send((uint8_t*)aTxBuffer, 2); |
1339 aTxBuffer[0] = 0x72; | |
1340 aTxBuffer[1] = 0x00; | |
1341 send((uint8_t*)aTxBuffer, 2); | |
1342 | |
1343 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1344 aTxBuffer[1] = 0x61; |
871 | 1345 send((uint8_t*)aTxBuffer, 2); |
1346 aTxBuffer[0] = 0x72; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1347 aTxBuffer[1] = 0x3F; |
871 | 1348 send((uint8_t*)aTxBuffer, 2); |
1349 | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1350 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1351 aTxBuffer[1] = 0x62; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1352 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1353 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1354 aTxBuffer[1] = 0x3B; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1355 send((uint8_t*)aTxBuffer, 2); |
871 | 1356 |
1357 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1358 aTxBuffer[1] = 0x63; |
871 | 1359 send((uint8_t*)aTxBuffer, 2); |
1360 aTxBuffer[0] = 0x72; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1361 aTxBuffer[1] = 0x2C; |
871 | 1362 send((uint8_t*)aTxBuffer, 2); |
1363 | |
1364 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1365 aTxBuffer[1] = 0x64; |
871 | 1366 send((uint8_t*)aTxBuffer, 2); |
1367 aTxBuffer[0] = 0x72; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1368 aTxBuffer[1] = 0x2B; |
871 | 1369 send((uint8_t*)aTxBuffer, 2); |
1370 | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1371 aTxBuffer[0] = 0x70; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1372 aTxBuffer[1] = 0x65; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1373 send((uint8_t*)aTxBuffer, 2); |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1374 aTxBuffer[0] = 0x72; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1375 aTxBuffer[1] = 0x24; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1376 send((uint8_t*)aTxBuffer, 2); |
871 | 1377 |
1378 aTxBuffer[0] = 0x70; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1379 aTxBuffer[1] = 0x66; |
871 | 1380 send((uint8_t*)aTxBuffer, 2); |
1381 aTxBuffer[0] = 0x72; | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1382 aTxBuffer[1] = 0x31; |
871 | 1383 send((uint8_t*)aTxBuffer, 2); |
1384 | |
878
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1385 brightness_screen1=0; |
6b06143cbfea
brightness settings and proper power down for new screen
heinrichsweikamp
parents:
873
diff
changeset
|
1386 } |
871 | 1387 } |
1388 | |
38 | 1389 static void Display_Error_Handler(void) |
1390 { | |
871 | 1391 //while(1) |
38 | 1392 { |
1393 } | |
1394 } |