Support SPI variant of ST7796

See #499
This commit is contained in:
Bodmer 2020-04-17 14:48:24 +01:00 committed by GitHub
parent e937a3496f
commit 353d80a78e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -32,14 +32,11 @@
writedata(0x01); //1-dot inversion
writecommand(0xB6); //Display Function Control
writedata(0x20); //RGB interface for RAM access, RGB transfer in DE mode
//display data path in memory
//Gate outputs in non-display area in Normal scan
//Source output in non-display area =V63
writedata(0x80); //Bypass
writedata(0x02); //Source Output Scan from S1 to S960, Gate Output scan from G1 to G480, scan cycle=2
writedata(0x3B); //LCD Drive Line=8*(59+1)
writecommand(0xE8); //Display Output Ctrl Adjust
writedata(0x40);
writedata(0x8A);