Mercurial > public > hwos_code
diff 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 |
line wrap: on
line diff
--- a/src/tft.asm Mon Jun 08 01:36:05 2015 +0200 +++ b/src/tft.asm Wed Jun 10 22:24:27 2015 +0100 @@ -313,6 +313,14 @@ Parameter_out 0x00, 0x00 Parameter_out 0x00, 0x00 +;; Init through config table... ; mH +; movlw LOW display1_config_table +; movwf TBLPTRL +; movlw HIGH display1_config_table +; movwf TBLPTRH +; movlw UPPER display1_config_table +; movwf TBLPTRU + ; Init through config table... movlw LOW display0_config_table movwf TBLPTRL @@ -326,17 +334,41 @@ btfsc flip_screen ; 180° rotation ? bra TFT_boot2 ; Yes Parameter_out 0x50, 0x20 +; Parameter_out 0x10, 0x00 ; mH bra TFT_boot3 TFT_boot2: Parameter_out 0x50, 0x10 +; Parameter_out 0x10, 0x30 ; mH TFT_boot3: Index_out 0x22 -; WAITMS d'81' ; 46 rcall TFT_ClearScreen Index_out 0x07 - Parameter_out 0x01, 0x00 + Parameter_out 0x01, 0x33 return +display1_config_table: + ; Reg, Dat0, Dat1 or 0xFF,0x00,0x00 for end + db 0xE5,0x78,0xF0,0x01,0x01,0x33 + db 0x02,0x02,0x00,0x03,0x10,0x00 + db 0x04,0x00,0x00,0x08,0x02,0x07 + db 0x09,0x00,0x00,0x0A,0x00,0x00 + db 0x0C,0x00,0x00,0x0D,0x00,0x00 + db 0x0F,0x00,0x00,0x10,0x00,0x00 + db 0x11,0x00,0x07,0x12,0x00,0x00 + db 0x13,0x00,0x00,0x07,0x00,0x01 + db 0xE5,0x78,0xF0,0xFF,.050,0x00 + db 0x10,0x10,0x90,0x11,0x02,0x27 + db 0xFF,.050,0xFF,0x12,0x00,0x1F + db 0xFF,.050,0xFF,0x13,0x15,0x00 + db 0x29,0x00,0x27,0x27,0x00,0x2B + db 0x2B,0x00,0x0D,0xFF,.050,0xFF + db 0x20,0x00,0x00,0x21,0x00,0x00 + db 0x30,0x06,0x02,0x31,0x56,0x0D + db 0x32,0x05,0x07,0x33,0x06,0x09 + db 0x34,0x00,0x00,0x35,0x09,0x06 + db 0x36,0x57,0x05,0x37,0x0D,0x06 + db 0x38,0x02,0x06,0x39,0x00,0x00 + db 0x22,0x00,0x00,0xFF,0x00,0x00 display0_config_table: ; Reg, Dat0, Dat1 or 0xFF,0x00,0x00 for end