fixed clearScreen
This commit is contained in:
parent
1492548032
commit
a7c34d1f43
2 changed files with 7 additions and 4 deletions
|
|
@ -484,8 +484,9 @@ void TFT_ILI9163C::scroll(uint16_t adrs) {
|
|||
void TFT_ILI9163C::clearScreen(uint16_t color) {
|
||||
int px;
|
||||
#if defined(__MK20DX128__) || defined(__MK20DX256__)
|
||||
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE0));
|
||||
writecommand_cont(CMD_RAMWR);//this was missed!
|
||||
//SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE0));
|
||||
setAddr(0x00,0x00,_GRAMWIDTH,_GRAMHEIGH);//go home
|
||||
//writecommand_cont(CMD_RAMWR);//this was missed!
|
||||
for (px = 0;px < _GRAMSIZE; px++){
|
||||
writedata16_cont(color);
|
||||
}
|
||||
|
|
@ -493,11 +494,12 @@ void TFT_ILI9163C::clearScreen(uint16_t color) {
|
|||
writecommand_last(CMD_NOP);
|
||||
endProc();
|
||||
#else
|
||||
writecommand(CMD_RAMWR);
|
||||
setAddr(0x00,0x00,_GRAMWIDTH,_GRAMHEIGH);//go home
|
||||
//writecommand(CMD_RAMWR);
|
||||
for (px = 0;px < _GRAMSIZE; px++){
|
||||
writedata16(color);
|
||||
}
|
||||
setAddr(0x00,0x00,_GRAMWIDTH,_GRAMHEIGH);//go home
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@
|
|||
0.5: Added scroll and more commands, optimizations
|
||||
Fixed a nasty bug in fill screen!
|
||||
0.6: Small fix, added SD example and subroutines
|
||||
0.6b1: Fix clearscreen, missed a parameter.
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
BugList of the current version:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue