fix core issue for GU128X64-800B display

This commit is contained in:
Mr.Blinky 2020-06-28 20:55:07 +02:00 committed by GitHub
parent 4f2b282d70
commit 79a01207a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -263,9 +263,9 @@ void ArduboyCore::bootLCD()
dcpinmask = digitalPinToBitMask(DC); dcpinmask = digitalPinToBitMask(DC);
SPI.setClockDivider(SPI_CLOCK_DIV2); SPI.setClockDivider(SPI_CLOCK_DIV2);
#if defined(GU12864_800B) #if defined(GU12864_800B)
delayShort(1); delay(1);
digitalWrite(RST, HIGH); digitalWrite(RST, HIGH);
delayShort(10); delay(10);
displayEnable(); displayEnable();
for (uint8_t i = 0; i < sizeof(lcdBootProgram) + 8; i++) for (uint8_t i = 0; i < sizeof(lcdBootProgram) + 8; i++)
{ {
@ -289,7 +289,7 @@ void ArduboyCore::bootLCD()
LCDCommandMode(); LCDCommandMode();
// run our customized boot-up command sequence against the // run our customized boot-up command sequence against the
// OLED to initialize it properly for Arduboy // OLED to initialize it properly for Arduboy
for (int8_t i=0; i < sizeof(lcdBootProgram); i++) { for (uint8_t i = 0; i < sizeof(lcdBootProgram); i++) {
SPI.transfer(pgm_read_byte(lcdBootProgram + i)); SPI.transfer(pgm_read_byte(lcdBootProgram + i));
} }
LCDDataMode(); LCDDataMode();