This is the David Smart RA8875 Library with mods for working with FRDM-K64F
Diff: RA8875.cpp
- Revision:
- 186:910fc2335c45
- Parent:
- 183:808f272e481e
- Child:
- 190:3132b7dfad82
--- a/RA8875.cpp Mon Aug 26 12:45:20 2019 +0000 +++ b/RA8875.cpp Wed Aug 28 17:17:56 2019 +0000 @@ -1124,7 +1124,7 @@ RetCode_t r; screen_orientation = angle; - fncr1Val &= ~0x10; // remove the old direction bit + fncr1Val &= ~0x10; // remove the old font rotation bit dpcrVal &= ~0x0C; // remove the old scan direction bits switch (angle) { case RA8875::normal: @@ -1166,7 +1166,7 @@ vScale >= 1 && vScale <= 4) { uint8_t fncr1Val = ReadCommand(0x22); - fncr1Val &= ~0x10; // do not disturb the rotate flag + fncr1Val &= 0x10; // remove all except the font rotation bit if (alignment == align_full) fncr1Val |= 0x80; if (fillit == NOFILL)