mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-29 16:49:26 +00:00
backlight working
This commit is contained in:
parent
f1c8b7ba04
commit
d7b833da61
@ -163,7 +163,9 @@ void RA8875_t4::_initializeTFT()
|
|||||||
delay(1);
|
delay(1);
|
||||||
fillWindow(); // defaults to black
|
fillWindow(); // defaults to black
|
||||||
|
|
||||||
_writeRegister(RA8875_GPIOX, true); // turn on backlight
|
// turn on backlight
|
||||||
|
_writeRegister(RA8875_P1CR, (RA8875_PxCR_ENABLE | (RA8875_PWM_CLK_DIV1024 & 0xF)));
|
||||||
|
_writeRegister(RA8875_P1DCR, 255); // brightness
|
||||||
|
|
||||||
// set graphics mode & default memory write order/behavior
|
// set graphics mode & default memory write order/behavior
|
||||||
_writeRegister(RA8875_MWCR0, 0x00);
|
_writeRegister(RA8875_MWCR0, 0x00);
|
||||||
|
Loading…
Reference in New Issue
Block a user