Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ILI9341_t3DMA.h additions
- void ddrawRotChar(unsigned char c);
- void ddrawRotText(const char* c);
- // ILI9341_t3DMA.cpp additions
- void ILI9341_t3DMA::ddrawRotText(const char* c){
- while (*c != '\0'){
- ddrawRotChar(*c++);
- cursor_x -= 7;
- }
- }
- void ILI9341_t3DMA::ddrawRotChar(unsigned char c){
- uint_fast8_t j = 5;
- while (j--) {
- uint_fast8_t mask = 0x01, i = 7;
- while (i--){
- if (glcdfont[c * 5 + (4-j)] & mask){
- ddrawPixel(cursor_y-i,cursor_x + j, textcolor);
- }
- mask = mask << 1;
- }
- }
- }
Add Comment
Please, Sign In to add comment