We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 968fcba commit 67ba8a5Copy full SHA for 67ba8a5
src/lcddrvce/lcddrvce.asm
@@ -74,7 +74,18 @@ lcd_Init:
74
ld hl, .fullinit
75
srl (hl)
76
jr nc, .fastinit
77
- ; Magic initialization sequence to work on Python models
+ ; Check certificate for Python model
78
+ ld de, $0330
79
+ call ti.FindFirstCertField
80
+ jr nz, .fastinit
81
+ call ti.GetFieldSizeFromType
82
+ ld de, $0430
83
+ call ti.FindField
84
85
+ ; Reinitializes Python hardware, probably (routine available on rev M+ boot code)
86
+ ; Without this, LCD SPI transfers start failing a short time after init
87
+ call $000654
88
+ ; Magic SPI initialization sequence to work on Python models
89
ld de, ti.spiSpiFrFmt or ti.bmSpiFlash or ti.bmSpiFsPolarity or ti.bmSpiMasterMono
90
.loop:
91
ld (ti.mpSpiCtrl0), de
0 commit comments