mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-29 01:49:19 +00:00
16to-8bpp
This commit is contained in:
parent
1d2fb10e0f
commit
d23f0d1bd5
@ -38,6 +38,10 @@ class RA8875_t4 {
|
||||
void drawPixel(int16_t x, int16_t y, uint16_t color);
|
||||
uint32_t frameCount();
|
||||
|
||||
uint8_t color16To8bpp(uint16_t color) __attribute__((always_inline)) {
|
||||
return ((color & 0xe000) >> 8) | ((color & 0x700) >> 6) | ((color & 0x18) >> 3);
|
||||
}
|
||||
|
||||
private:
|
||||
void _initializeTFT();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user