Mercurial > public > hwos_code
diff src/tft.asm @ 312:b2f6a4b01e64
Config table for alternative display
author | heinrichsweikamp |
---|---|
date | Tue, 09 Jun 2015 10:47:12 +0200 |
parents | 653a3ab08062 |
children | 5f142cff43f6 |
line wrap: on
line diff
--- a/src/tft.asm Tue Jun 09 02:15:01 2015 +0200 +++ b/src/tft.asm Tue Jun 09 10:47:12 2015 +0200 @@ -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