Increased SPI frequency from 5Mhz to 10MHz
Fork of RA8875 by
Diff: RA8875.cpp
- Revision:
- 127:db7f2c704693
- Parent:
- 125:7a0b70f56550
- Child:
- 131:5bd6ba2ee4a1
diff -r c91bd2e500b9 -r db7f2c704693 RA8875.cpp --- a/RA8875.cpp Sat Aug 06 15:09:34 2016 +0000 +++ b/RA8875.cpp Sat Aug 06 20:04:23 2016 +0000 @@ -887,6 +887,16 @@ } } +RetCode_t RA8875::GetTextFontSize(RA8875::HorizontalScale * hScale, RA8875::VerticalScale * vScale) +{ + unsigned char reg = ReadCommand(0x22); + + if (hScale) + *hScale = 1 + (reg >> 2) & 0x03; + if (vScale) + *vScale = 1 + reg & 0x03; + return noerror; +} int RA8875::_putc(int c) {