SHOW:
|
|
- or go back to the newest paste.
1 | // ILI9341_t3DMA.h additions | |
2 | ||
3 | void ddrawRotChar(unsigned char c); | |
4 | void ddrawRotText(const char* c); | |
5 | ||
6 | // ILI9341_t3DMA.cpp additions | |
7 | ||
8 | void ILI9341_t3DMA::ddrawRotText(const char* c){ | |
9 | while (*c != '\0'){ | |
10 | ddrawRotChar(*c++); | |
11 | cursor_x -= 7; | |
12 | } | |
13 | } | |
14 | ||
15 | void ILI9341_t3DMA::ddrawRotChar(unsigned char c){ | |
16 | uint_fast8_t j = 5; | |
17 | while (j--) { | |
18 | uint_fast8_t mask = 0x01, i = 7; | |
19 | while (i--){ | |
20 | if (glcdfont[c * 5 + (4-j)] & mask){ | |
21 | ddrawPixel(cursor_y-i,cursor_x + j, textcolor); | |
22 | } | |
23 | mask = mask << 1; | |
24 | } | |
25 | } | |
26 | } |