comparison src/tft.asm @ 314:226e1405b86c new_screen_layout

Merged default into new_screen_layout
author Janos Kovacs <kovjanos@gmail.com>
date Wed, 10 Jun 2015 22:24:27 +0100
parents b2f6a4b01e64
children 5f142cff43f6
comparison
equal deleted inserted replaced
310:453a3d13570f 314:226e1405b86c
311 311
312 ; Data Transfer Synchronization 312 ; Data Transfer Synchronization
313 Parameter_out 0x00, 0x00 313 Parameter_out 0x00, 0x00
314 Parameter_out 0x00, 0x00 314 Parameter_out 0x00, 0x00
315 315
316 ;; Init through config table... ; mH
317 ; movlw LOW display1_config_table
318 ; movwf TBLPTRL
319 ; movlw HIGH display1_config_table
320 ; movwf TBLPTRH
321 ; movlw UPPER display1_config_table
322 ; movwf TBLPTRU
323
316 ; Init through config table... 324 ; Init through config table...
317 movlw LOW display0_config_table 325 movlw LOW display0_config_table
318 movwf TBLPTRL 326 movwf TBLPTRL
319 movlw HIGH display0_config_table 327 movlw HIGH display0_config_table
320 movwf TBLPTRH 328 movwf TBLPTRH
324 332
325 Index_out 0x03 333 Index_out 0x03
326 btfsc flip_screen ; 180° rotation ? 334 btfsc flip_screen ; 180° rotation ?
327 bra TFT_boot2 ; Yes 335 bra TFT_boot2 ; Yes
328 Parameter_out 0x50, 0x20 336 Parameter_out 0x50, 0x20
337 ; Parameter_out 0x10, 0x00 ; mH
329 bra TFT_boot3 338 bra TFT_boot3
330 TFT_boot2: 339 TFT_boot2:
331 Parameter_out 0x50, 0x10 340 Parameter_out 0x50, 0x10
341 ; Parameter_out 0x10, 0x30 ; mH
332 TFT_boot3: 342 TFT_boot3:
333 Index_out 0x22 343 Index_out 0x22
334 ; WAITMS d'81' ; 46
335 rcall TFT_ClearScreen 344 rcall TFT_ClearScreen
336 Index_out 0x07 345 Index_out 0x07
337 Parameter_out 0x01, 0x00 346 Parameter_out 0x01, 0x33
338 return 347 return
339 348
349 display1_config_table:
350 ; Reg, Dat0, Dat1 or 0xFF,0x00,0x00 for end
351 db 0xE5,0x78,0xF0,0x01,0x01,0x33
352 db 0x02,0x02,0x00,0x03,0x10,0x00
353 db 0x04,0x00,0x00,0x08,0x02,0x07
354 db 0x09,0x00,0x00,0x0A,0x00,0x00
355 db 0x0C,0x00,0x00,0x0D,0x00,0x00
356 db 0x0F,0x00,0x00,0x10,0x00,0x00
357 db 0x11,0x00,0x07,0x12,0x00,0x00
358 db 0x13,0x00,0x00,0x07,0x00,0x01
359 db 0xE5,0x78,0xF0,0xFF,.050,0x00
360 db 0x10,0x10,0x90,0x11,0x02,0x27
361 db 0xFF,.050,0xFF,0x12,0x00,0x1F
362 db 0xFF,.050,0xFF,0x13,0x15,0x00
363 db 0x29,0x00,0x27,0x27,0x00,0x2B
364 db 0x2B,0x00,0x0D,0xFF,.050,0xFF
365 db 0x20,0x00,0x00,0x21,0x00,0x00
366 db 0x30,0x06,0x02,0x31,0x56,0x0D
367 db 0x32,0x05,0x07,0x33,0x06,0x09
368 db 0x34,0x00,0x00,0x35,0x09,0x06
369 db 0x36,0x57,0x05,0x37,0x0D,0x06
370 db 0x38,0x02,0x06,0x39,0x00,0x00
371 db 0x22,0x00,0x00,0xFF,0x00,0x00
340 372
341 display0_config_table: 373 display0_config_table:
342 ; Reg, Dat0, Dat1 or 0xFF,0x00,0x00 for end 374 ; Reg, Dat0, Dat1 or 0xFF,0x00,0x00 for end
343 db 0xA4,0x00,0x01,0xFF,.002,0x00 375 db 0xA4,0x00,0x01,0xFF,.002,0x00
344 db 0x09,0x00,0x01,0x92,0x04,0x00 376 db 0x09,0x00,0x01,0x92,0x04,0x00