├── README.txt ├── library.properties ├── keywords.txt ├── examples ├── ST7735_HelloWorld │ └── ST7735_HelloWorld.ino ├── ST7735_Mario_RRE │ ├── rre_mario6.h │ ├── rre_mario6_v.h │ ├── rre_mario5.h │ ├── rre_mario3.h │ ├── rre_mario4.h │ ├── rre_mario5_v.h │ ├── rre_mario3_v.h │ ├── rre_mario4_v.h │ ├── rre_mario1.h │ ├── ST7735_Mario_RRE.ino │ ├── rre_mario2.h │ ├── rre_mario0.h │ ├── rre_mario2_v.h │ └── rre_mario0_v.h ├── ST7735_Rotation │ └── ST7735_Rotation.ino ├── ST7735_Bitmap │ ├── ST7735_Bitmap.ino │ └── bitmap.h ├── ST7735_MovingText │ └── ST7735_MovingText.ino ├── ST7735_AmigaBallMulti │ ├── ball32.h │ ├── ball48.h │ ├── ST7735_AmigaBallMulti.ino │ └── ball64.h ├── ST7735_Lines │ └── ST7735_Lines.ino ├── ST7735_Scroll │ └── ST7735_Scroll.ino ├── ST7735_ControllerModes │ └── ST7735_ControllerModes.ino ├── ST7735_BigScroll │ └── ST7735_BigScroll.ino ├── ST7735_AmigaBall │ └── ST7735_AmigaBall.ino └── ST7735_ColorClock_4LCD │ ├── pat1.h │ ├── pat2.h │ ├── pat3.h │ ├── pat4.h │ ├── pat5.h │ ├── pat6.h │ ├── pat7.h │ ├── pat8.h │ └── ST7735_ColorClock_4LCD.ino ├── README.md ├── Arduino_ST7735_STM.h └── LICENSE /README.txt: -------------------------------------------------------------------------------- 1 | This is fast STM32 SPI/DMA library for the ST7735 128x160 IPS display. 2 | 3 | Optimized for the best performance for STM32. Achieved almost 36Mbps transfer via SPI/DMA. 4 | Requires Adafruit_GFX library for Arduino. 5 | -------------------------------------------------------------------------------- /library.properties: -------------------------------------------------------------------------------- 1 | name=Arduino ST7735 STM32 2 | version=1.0.1 3 | author=Pawel A. Hernik 4 | maintainer=Pawel A. Hernik 5 | sentence=Fast STM32 SPI-DMA library for ST7735 128x160 display 6 | paragraph=Fast STM32 SPI-DMA library for ST7735 128x160 display 7 | category=Display 8 | url=https://github.com/cbm80amiga/Arduino_ST7735_STM 9 | architectures=* 10 | -------------------------------------------------------------------------------- /keywords.txt: -------------------------------------------------------------------------------- 1 | Arduino_ST7735 KEYWORD3 2 | 3 | init KEYWORD2 4 | invertDisplay KEYWORD2 5 | partialDisplay KEYWORD2 6 | sleepDisplay KEYWORD2 7 | enableDisplay KEYWORD2 8 | idleDisplay KEYWORD2 9 | resetDisplay KEYWORD2 10 | setScrollArea KEYWORD2 11 | setScroll KEYWORD2 12 | setPartArea KEYWORD2 13 | powerSave KEYWORD2 14 | rgbWheel KEYWORD2 15 | RGBto565 KEYWORD2 16 | drawImage KEYWORD2 17 | drawImageF KEYWORD2 18 | -------------------------------------------------------------------------------- /examples/ST7735_HelloWorld/ST7735_HelloWorld.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library example 2 | // (c) 2019 Pawel A. Hernik 3 | 4 | /* 5 | ST7735 128x160 1.8" LCD pinout (header at the top, from left): 6 | #1 LED -> 3.3V 7 | #2 SCK -> SCL/D13/PA5 8 | #3 SDA -> MOSI/D11/PA7 9 | #4 A0/DC -> D8/PA1 or any digital 10 | #5 RESET -> D9/PA0 or any digital 11 | #6 CS -> D10/PA2 or any digital 12 | #7 GND -> GND 13 | #8 VCC -> 3.3V 14 | */ 15 | 16 | #define SCR_WD 128 17 | #define SCR_HT 160 18 | #include 19 | #include 20 | 21 | #if (__STM32F1__) // bluepill 22 | #define TFT_CS PA2 23 | #define TFT_DC PA1 24 | #define TFT_RST PA0 25 | //#include 26 | #else 27 | #define TFT_CS 10 28 | #define TFT_DC 8 29 | #define TFT_RST 9 30 | #include 31 | #endif 32 | 33 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 34 | 35 | void setup(void) 36 | { 37 | Serial.begin(9600); 38 | lcd.init(); 39 | lcd.fillScreen(BLACK); 40 | lcd.setTextColor(WHITE,BLUE); 41 | int xt=(SCR_WD-11*6)/2, yt=(SCR_HT-8)/2; 42 | lcd.setCursor(xt, yt); 43 | lcd.println("HELLO WORLD"); 44 | lcd.drawRect(xt-10,yt-10,11*6+20,8+20,GREEN); 45 | } 46 | 47 | void loop() 48 | { 49 | } 50 | 51 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Arduino_ST7735_STM 2 | Fast STM32 SPI/DMA library for ST7735 1.8" 128x160 3 | 4 | YouTube videos: 5 | 6 | https://youtu.be/V1KBm99Qagw 7 | 8 | https://youtu.be/rtnI4TEeBpA 9 | 10 | Significantly optimized for STM32 boards. Supports 36MHz SPI and DMA channel 11 | 12 | ## Configuration 13 | 14 | Use "#define COMPATIBILITY_MODE" - then the library doesn't use DMA 15 | 16 | Use "#define CS_ALWAYS_LOW" for LCD boards where CS pin is internally connected to the ground, it gives better performance 17 | 18 | 19 | ## Extra Features 20 | - invertDisplay() 21 | - sleepDisplay() 22 | - enableDisplay() 23 | - idleDisplay() - saves power by limiting colors to 3 bit mode (8 colors) 24 | - resetDisplay() - software reset 25 | - partialDisplay() and setPartArea() - limiting display area for power saving 26 | - setScrollArea() and setScroll() - smooth vertical scrolling 27 | - fast drawImage() from RAM 28 | - fast drawImageF() from flash (PROGMEM) 29 | 30 | ## Connections (header at the top): 31 | 32 | |LCD pin|LCD pin name|STM32| 33 | |--|--|--| 34 | |#01| LED| 3.3V| 35 | |#02| SCK |PA5/SCK| 36 | |#03| SCA |PA7/MOSI| 37 | |#04| A0/DC|PA1 or any digital 38 | |#05| RESET|PA0 or any digital| 39 | |#06| CS|PA2 or any digital| 40 | |#07| GND | GND| 41 | |#08| VCC | 3.3V| 42 | 43 | Tested with stm32duino and Arduino IDE 1.6.5 44 | 45 | If you find it useful and want to buy me a coffee or a beer: 46 | 47 | https://www.paypal.me/cbm80amiga 48 | -------------------------------------------------------------------------------- /examples/ST7735_Mario_RRE/rre_mario6.h: -------------------------------------------------------------------------------- 1 | #ifndef __font_mario6_h__ 2 | #define __font_mario6_h__ 3 | 4 | /* 5 | *** Generated by rrefontgen *** 6 | Font: [mario6] 48x64 7 | Total chars: 4 (' ' to '#') 8 | Total rects: 48 * 3 bytes 9 | Total pixels: 1099 (409 overlapping) 10 | Total bytes: 152 (144 rects + 8 offs) 11 | Bitmap size: 1536 (48x64 * 4) (+4 opt) 12 | */ 13 | 14 | const unsigned char fontmario6_Rects[144] PROGMEM = { 15 | 0x9e,0x58,0x07, 0xed,0x87,0x01, 0xa9,0x15,0x45, 0xab,0x52,0x42, 0x61,0x1f,0x04, 0xef,0x48,0x00, 0x25,0xd7,0x03, 0x1d,0x17,0x03, 0xac,0x07,0x00, 0xac,0x0f,0x00, 0x6e,0x27,0x01, 0x23,0x21,0x01, 0x27,0x27,0x01, 0x2a,0x14,0x00, 0x1d,0x16,0x00, 0x28,0x16,0x00, 16 | 0x1d,0x1d,0x00, 0x20,0x1f,0x00, 0x25,0x26,0x00, 0xa6,0xd8,0x09, 0x80,0x9b,0x0b, 0x0b,0x4c,0x45, 0x51,0x95,0x01, 0xc0,0x0a,0x03, 0x40,0x26,0x06, 0x89,0x98,0x06, 0xc9,0x0c,0x01, 0x53,0x56,0x00, 0x06,0xda,0x03, 0x40,0x08,0x01, 0x4e,0x0a,0x01, 0x05,0x0d,0x03, 17 | 0x51,0xd2,0x00, 0x00,0x1a,0x02, 0xc8,0x99,0x04, 0x4c,0x07,0x00, 0x4d,0x08,0x00, 0x4a,0x10,0x00, 0xc0,0xd9,0x00, 0x0b,0x06,0x00, 0x02,0x09,0x00, 0x0e,0x09,0x00, 0x10,0x0b,0x00, 0x04,0x0c,0x00, 0x00,0x0e,0x00, 0x08,0x0e,0x00, 0x0d,0x23,0x00, 0x4a,0x17,0x0a, 18 | }; 19 | 20 | const unsigned short fontmario6_CharOffs[5] PROGMEM = { 21 | 0x0000, 0x0000, 0x0000, 0x0014, 0x0030, 22 | }; 23 | 24 | RRE_Font rre_mario6 = { RRE_24B, 48,64, 0x20, 0x23, (const uint8_t*)fontmario6_Rects, (const uint16_t*)fontmario6_CharOffs }; 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /examples/ST7735_Mario_RRE/rre_mario6_v.h: -------------------------------------------------------------------------------- 1 | #ifndef __font_mario6_h__ 2 | #define __font_mario6_h__ 3 | 4 | /* 5 | *** Generated by rrefontgen *** 6 | Font: [mario6] 96x128 7 | Total chars: 1 (' ' to ' ') 8 | Total rects: 59 * 3 bytes 9 | Total pixels: 690 (0 overlapping) 10 | Total bytes: 179 (177 rects + 2 offs) 11 | Bitmap size: 1536 (96x128 * 1) (+1 opt) 12 | */ 13 | 14 | const unsigned char fontmario6_Rects[177] PROGMEM = { 15 | 0x1d,0x56,0x01, 0x1d,0x5d,0x00, 0x1e,0x57,0x07, 0x1f,0x57,0x07, 0x20,0x57,0x08, 0x21,0x58,0x08, 0x22,0x58,0x08, 0x23,0x58,0x09, 0x24,0x58,0x09, 0x25,0x57,0x0c, 0x25,0x66,0x00, 0x26,0x57,0x0f, 0x27,0x57,0x10, 0x28,0x56,0x11, 0x29,0x55,0x12, 0x2a,0x54,0x13, 16 | 0x2b,0x52,0x16, 0x2c,0x47,0x02, 0x2c,0x4f,0x19, 0x2d,0x47,0x21, 0x2e,0x47,0x0b, 0x2e,0x55,0x13, 0x2f,0x48,0x07, 0x2f,0x58,0x10, 0x30,0x48,0x06, 0x30,0x59,0x0f, 0x31,0x48,0x05, 0x31,0x5a,0x0d, 0x32,0x49,0x04, 0x32,0x5a,0x0d, 0x33,0x4a,0x03, 0x33,0x5b,0x0c, 17 | 0x34,0x4c,0x00, 0x34,0x5b,0x0c, 0x35,0x4d,0x00, 0x35,0x5b,0x0c, 0x36,0x4d,0x00, 0x36,0x5a,0x0d, 0x37,0x4d,0x00, 0x37,0x5a,0x0c, 0x38,0x4d,0x01, 0x38,0x59,0x0d, 0x39,0x4c,0x03, 0x39,0x58,0x0e, 0x3a,0x4c,0x05, 0x3a,0x57,0x0e, 0x3b,0x46,0x00, 0x3b,0x4c,0x19, 18 | 0x3c,0x47,0x01, 0x3c,0x4c,0x18, 0x3d,0x48,0x01, 0x3d,0x4c,0x17, 0x3e,0x49,0x19, 0x3f,0x4a,0x18, 0x40,0x4b,0x15, 0x41,0x52,0x0d, 0x42,0x55,0x09, 0x43,0x56,0x05, 0x44,0x57,0x01, 19 | }; 20 | 21 | const unsigned short fontmario6_CharOffs[2] PROGMEM = { 22 | 0x0000, 0x003b, 23 | }; 24 | 25 | RRE_Font rre_mario6 = { RRE_V24B, 96,128, 0x20, 0x20, (const uint8_t*)fontmario6_Rects, (const uint16_t*)fontmario6_CharOffs }; 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /examples/ST7735_Rotation/ST7735_Rotation.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library example 2 | // (c) 2019 Pawel A. Hernik 3 | 4 | /* 5 | ST7735 128x160 1.8" LCD pinout (header at the top, from left): 6 | #1 LED -> 3.3V 7 | #2 SCK -> SCL/D13/PA5 8 | #3 SDA -> MOSI/D11/PA7 9 | #4 A0/DC -> D8/PA1 or any digital 10 | #5 RESET -> D9/PA0 or any digital 11 | #6 CS -> D10/PA2 or any digital 12 | #7 GND -> GND 13 | #8 VCC -> 3.3V 14 | */ 15 | 16 | #define SCR_WD 128 17 | #define SCR_HT 160 18 | #include 19 | #include 20 | 21 | #if (__STM32F1__) // bluepill 22 | #define TFT_CS PA2 23 | #define TFT_DC PA1 24 | #define TFT_RST PA0 25 | //#include 26 | #else 27 | #define TFT_CS 10 28 | #define TFT_DC 8 29 | #define TFT_RST 9 30 | #include 31 | #endif 32 | 33 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 34 | 35 | void setup() 36 | { 37 | Serial.begin(9600); 38 | lcd.init(); 39 | } 40 | 41 | void loop(void) 42 | { 43 | for(uint8_t rot = 0; rot < 4; rot++) { 44 | testText(rot); 45 | delay(2000); 46 | } 47 | } 48 | 49 | unsigned long testText(int rot) 50 | { 51 | lcd.setRotation(rot); 52 | lcd.fillScreen(BLACK); 53 | lcd.setCursor(0, 0); 54 | lcd.setTextColor(BLUE); 55 | lcd.setTextSize(1); 56 | lcd.println("Hello World!"); 57 | lcd.setTextColor(WHITE); 58 | lcd.print("Rotation = "); 59 | lcd.println(rot); 60 | lcd.setTextColor(YELLOW); 61 | lcd.setTextSize(2); 62 | lcd.println(1234.56); 63 | lcd.setTextColor(RED); 64 | lcd.setTextSize(3); 65 | lcd.println(0xDEAD, HEX); 66 | lcd.println(); 67 | lcd.setTextColor(GREEN); 68 | lcd.setTextSize(4); 69 | lcd.println("Hello"); 70 | } 71 | 72 | 73 | -------------------------------------------------------------------------------- /examples/ST7735_Bitmap/ST7735_Bitmap.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library example 2 | // (c) 2019 Pawel A. Hernik 3 | 4 | /* 5 | ST7735 128x160 1.8" LCD pinout (header at the top, from left): 6 | #1 LED -> 3.3V 7 | #2 SCK -> SCL/D13/PA5 8 | #3 SDA -> MOSI/D11/PA7 9 | #4 A0/DC -> D8/PA1 or any digital 10 | #5 RESET -> D9/PA0 or any digital 11 | #6 CS -> D10/PA2 or any digital 12 | #7 GND -> GND 13 | #8 VCC -> 3.3V 14 | */ 15 | 16 | #define SCR_WD 128 17 | #define SCR_HT 160 18 | #include 19 | #include 20 | 21 | #if (__STM32F1__) // bluepill 22 | #define TFT_CS PA2 23 | #define TFT_DC PA1 24 | #define TFT_RST PA0 25 | //#include 26 | #else 27 | #define TFT_CS 10 28 | #define TFT_DC 8 29 | #define TFT_RST 9 30 | #include 31 | #endif 32 | 33 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 34 | 35 | #include "bitmap.h" 36 | 37 | #define BARWD 24 38 | uint16_t colorBar[BARWD]; 39 | 40 | void setup(void) 41 | { 42 | Serial.begin(9600); 43 | lcd.init(); 44 | lcd.fillScreen(BLACK); 45 | 46 | int i,j; 47 | for(j=0;j 3.3V 10 | #2 SCK -> SCL/D13/PA5 11 | #3 SDA -> MOSI/D11/PA7 12 | #4 A0/DC -> D8/PA1 or any digital 13 | #5 RESET -> D9/PA0 or any digital 14 | #6 CS -> D10/PA2 or any digital 15 | #7 GND -> GND 16 | #8 VCC -> 3.3V 17 | */ 18 | 19 | #define SCR_WD 128 20 | #define SCR_HT 160 21 | #include 22 | #include 23 | 24 | #if (__STM32F1__) // bluepill 25 | #define TFT_CS PA2 26 | #define TFT_DC PA1 27 | #define TFT_RST PA0 28 | #include 29 | #else 30 | #define TFT_CS 10 31 | #define TFT_DC 8 32 | #define TFT_RST 9 33 | //#include 34 | #endif 35 | 36 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 37 | 38 | #include "RREFont.h" 39 | #include "rre_chicago_20x24.h" 40 | 41 | RREFont font; 42 | 43 | // needed for RREFont library initialization, define your fillRect 44 | void customRect(int x, int y, int w, int h, int c) { return lcd.fillRect(x, y, w, h, c); } 45 | 46 | void setup() 47 | { 48 | Serial.begin(9600); 49 | lcd.init(); 50 | lcd.fillScreen(BLACK); 51 | 52 | font.init(customRect, SCR_WD, SCR_HT); // custom fillRect function and screen width and height values 53 | font.setFont(&rre_chicago_20x24); 54 | int i; 55 | for(i=0;i<10;i++) { 56 | font.setColor(RGBto565(i*25,i*25,i*25)); 57 | font.printStr(30+i,20+i,"Hello"); 58 | } 59 | font.setColor(WHITE); 60 | font.printStr(30+i,20+i,"Hello"); 61 | 62 | for(i=0;i<10;i++) { 63 | font.setColor(lcd.rgbWheel(0+i*8)); 64 | font.printStr(25+i,60+i,"World"); 65 | } 66 | font.setColor(WHITE); 67 | font.printStr(25+i,60+i,"World"); 68 | delay(4000); 69 | lcd.fillScreen(); 70 | } 71 | 72 | #define MAX_TXT 32 73 | byte tx[MAX_TXT]; 74 | byte ty[MAX_TXT]; 75 | byte cur=0; 76 | int numTxt=16; 77 | int x=0,y=0; 78 | int dx=6,dy=5; 79 | int i,ii,cc=0; 80 | unsigned long ms; 81 | 82 | void loop() 83 | { 84 | ms=millis(); 85 | x+=dx; 86 | y+=dy; 87 | if(x>SCR_WD-20) { dx=-dx; x=SCR_WD-20; } 88 | if(x<1) { dx=-dx; x=0; } 89 | if(y>SCR_HT-20) { dy=-dy; y=SCR_HT-20; } 90 | if(y<1) { dy=-dy; y=0; } 91 | int i=cur; 92 | //font.setColor(BLACK); 93 | //font.printStr(tx[i],ty[i],"Hello!"); 94 | tx[cur]=x; 95 | ty[cur]=y; 96 | if(++cur>=numTxt) cur=0; 97 | for(i=0;i=numTxt) ii-=numTxt; 100 | font.setColor(RGBto565(i*15,i*5,0)); 101 | if(i==numTxt-1) font.setColor(WHITE); 102 | font.printStr(tx[ii],ty[ii],"Hello!"); 103 | cc++; 104 | } 105 | while(millis()-ms<40); // 25fps 106 | } 107 | 108 | -------------------------------------------------------------------------------- /examples/ST7735_Mario_RRE/rre_mario4_v.h: -------------------------------------------------------------------------------- 1 | #ifndef __font_mario4_h__ 2 | #define __font_mario4_h__ 3 | 4 | /* 5 | *** Generated by rrefontgen *** 6 | Font: [mario4] 96x128 7 | Total chars: 1 (' ' to ' ') 8 | Total rects: 155 * 3 bytes 9 | Total pixels: 1085 (0 overlapping) 10 | Total bytes: 467 (465 rects + 2 offs) 11 | Bitmap size: 1536 (96x128 * 1) (+1 opt) 12 | */ 13 | 14 | const unsigned char fontmario4_Rects[465] PROGMEM = { 15 | 0x0d,0x28,0x04, 0x0e,0x26,0x08, 0x0f,0x25,0x08, 0x10,0x25,0x07, 0x11,0x24,0x07, 0x12,0x24,0x06, 0x12,0x48,0x00, 0x13,0x26,0x04, 0x13,0x48,0x00, 0x14,0x25,0x05, 0x14,0x47,0x02, 0x15,0x21,0x09, 0x15,0x46,0x03, 0x16,0x1e,0x0c, 0x16,0x46,0x04, 0x17,0x1b,0x0f, 16 | 0x17,0x45,0x05, 0x18,0x19,0x11, 0x18,0x45,0x06, 0x19,0x17,0x13, 0x19,0x45,0x07, 0x1a,0x15,0x13, 0x1a,0x44,0x08, 0x1b,0x13,0x13, 0x1b,0x44,0x07, 0x1c,0x12,0x12, 0x1c,0x44,0x07, 0x1d,0x10,0x12, 0x1d,0x44,0x06, 0x1d,0x51,0x02, 0x1e,0x0f,0x12, 0x1e,0x44,0x05, 17 | 0x1e,0x4f,0x05, 0x1f,0x0e,0x12, 0x1f,0x44,0x05, 0x1f,0x4c,0x08, 0x20,0x0c,0x13, 0x20,0x44,0x04, 0x20,0x4c,0x09, 0x21,0x0b,0x13, 0x21,0x22,0x00, 0x21,0x44,0x04, 0x21,0x4b,0x0a, 0x22,0x0a,0x13, 0x22,0x21,0x01, 0x22,0x44,0x03, 0x22,0x4b,0x0a, 0x23,0x0a,0x12, 18 | 0x23,0x20,0x02, 0x23,0x44,0x03, 0x23,0x4a,0x0b, 0x24,0x09,0x12, 0x24,0x1f,0x03, 0x24,0x44,0x02, 0x24,0x4a,0x0b, 0x25,0x08,0x12, 0x25,0x1e,0x04, 0x25,0x45,0x01, 0x25,0x49,0x0b, 0x26,0x07,0x12, 0x26,0x1d,0x05, 0x26,0x49,0x0b, 0x27,0x07,0x11, 0x27,0x1c,0x05, 19 | 0x27,0x48,0x0b, 0x28,0x06,0x12, 0x28,0x1b,0x06, 0x28,0x46,0x0c, 0x29,0x06,0x11, 0x29,0x1b,0x06, 0x29,0x47,0x0a, 0x2a,0x05,0x12, 0x2a,0x1a,0x06, 0x2a,0x49,0x05, 0x2b,0x05,0x07, 0x2b,0x13,0x03, 0x2b,0x19,0x07, 0x2c,0x05,0x05, 0x2c,0x15,0x00, 0x2c,0x19,0x07, 20 | 0x2d,0x04,0x05, 0x2d,0x18,0x07, 0x2e,0x04,0x04, 0x2e,0x18,0x07, 0x2f,0x04,0x03, 0x2f,0x17,0x07, 0x30,0x04,0x02, 0x30,0x0b,0x07, 0x30,0x17,0x07, 0x31,0x04,0x02, 0x31,0x0c,0x06, 0x31,0x16,0x07, 0x32,0x04,0x02, 0x32,0x0d,0x02, 0x32,0x16,0x07, 0x33,0x04,0x02, 21 | 0x33,0x0e,0x01, 0x33,0x15,0x07, 0x33,0x3e,0x01, 0x34,0x04,0x02, 0x34,0x0c,0x04, 0x34,0x15,0x07, 0x34,0x3e,0x03, 0x34,0x48,0x00, 0x35,0x04,0x02, 0x35,0x0a,0x05, 0x35,0x15,0x06, 0x35,0x3e,0x03, 0x35,0x48,0x01, 0x36,0x05,0x01, 0x36,0x0b,0x03, 0x36,0x14,0x06, 22 | 0x36,0x3f,0x02, 0x36,0x48,0x02, 0x37,0x05,0x02, 0x37,0x0d,0x03, 0x37,0x14,0x06, 0x37,0x47,0x03, 0x38,0x06,0x01, 0x38,0x0e,0x03, 0x38,0x14,0x05, 0x38,0x47,0x03, 0x38,0x56,0x00, 0x39,0x07,0x01, 0x39,0x10,0x00, 0x39,0x13,0x06, 0x39,0x48,0x02, 0x3a,0x08,0x01, 23 | 0x3a,0x13,0x05, 0x3a,0x49,0x01, 0x3b,0x0a,0x00, 0x3b,0x13,0x05, 0x3c,0x0c,0x01, 0x3c,0x13,0x04, 0x3d,0x12,0x05, 0x3e,0x12,0x04, 0x3e,0x43,0x00, 0x3f,0x12,0x04, 0x3f,0x41,0x01, 0x40,0x12,0x04, 0x40,0x40,0x01, 0x41,0x12,0x03, 0x41,0x3f,0x01, 0x42,0x12,0x03, 24 | 0x42,0x3e,0x01, 0x43,0x12,0x03, 0x43,0x3d,0x00, 0x44,0x12,0x02, 0x45,0x12,0x02, 0x46,0x12,0x02, 0x47,0x12,0x02, 0x48,0x12,0x02, 0x49,0x13,0x00, 0x4a,0x13,0x00, 0x4b,0x13,0x00, 25 | }; 26 | 27 | const unsigned short fontmario4_CharOffs[2] PROGMEM = { 28 | 0x0000, 0x009b, 29 | }; 30 | 31 | RRE_Font rre_mario4 = { RRE_V24B, 96,128, 0x20, 0x20, (const uint8_t*)fontmario4_Rects, (const uint16_t*)fontmario4_CharOffs }; 32 | 33 | #endif 34 | 35 | -------------------------------------------------------------------------------- /examples/ST7735_AmigaBallMulti/ball32.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: ball32.bmp 3 | // Dimensions : 32x32x4 (16 colors) 4 | // Size : 512 [0x0200] bytes 5 | 6 | 7 | const unsigned char ball32[512+16*2+6] PROGMEM = { 8 | 32,0,32,0,4,0, // width,height,bits 9 | 0x10,0x84, // c000->130,130,130 10 | 0x82,0x00, // c001-> 0, 16, 16 11 | 0x04,0x01, // c002-> 0, 32, 32 12 | 0x86,0x01, // c003-> 0, 48, 48 13 | 0x08,0x02, // c004-> 0, 64, 64 14 | 0x8a,0x02, // c005-> 0, 80, 80 15 | 0x0c,0x03, // c006-> 0, 96, 96 16 | 0x8e,0x03, // c007-> 0,112,112 17 | 0x10,0x04, // c008-> 0,128,128 18 | 0x92,0x04, // c009-> 0,144,144 19 | 0x14,0x05, // c010-> 0,160,160 20 | 0x96,0x05, // c011-> 0,176,176 21 | 0x18,0x06, // c012-> 0,192,192 22 | 0x9a,0x06, // c013-> 0,208,208 23 | 0x1c,0x07, // c014-> 0,224,224 24 | 0x9e,0x07, // c015-> 0,240,240 25 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 26 | 0x00,0x00,0x00,0x00,0x00,0xa7,0x6c,0xba,0x98,0x7e,0xe3,0x00,0x00,0x00,0x00,0x00, 27 | 0x00,0x00,0x00,0x00,0xa7,0x54,0x32,0x17,0x65,0x43,0x17,0x55,0x00,0x00,0x00,0x00, 28 | 0x00,0x00,0x00,0x08,0x65,0x32,0x1e,0xdc,0x43,0x21,0xec,0x54,0xd0,0x00,0x00,0x00, 29 | 0x00,0x00,0x03,0xed,0x43,0x21,0xed,0xcb,0xa9,0x1e,0xdc,0xca,0x74,0x30,0x00,0x00, 30 | 0x00,0x00,0x4e,0xcb,0xa8,0xee,0xdc,0xba,0x98,0x76,0xcc,0xb9,0x75,0x18,0x00,0x00, 31 | 0x00,0x00,0x1d,0xba,0x98,0x76,0xcb,0xa9,0x87,0x65,0xcb,0xa9,0x75,0x3d,0x00,0x00, 32 | 0x00,0x01,0xdb,0xa9,0x87,0x65,0x4a,0x98,0x76,0x65,0x54,0x38,0x75,0x31,0xa0,0x00, 33 | 0x00,0xa7,0xcb,0x98,0x76,0x54,0x33,0x18,0x76,0x55,0x43,0x21,0xd5,0x31,0xc7,0x00, 34 | 0x00,0x86,0x4a,0x87,0x65,0x44,0x32,0x1e,0xd5,0x55,0x43,0x21,0xdc,0xa1,0xda,0x00, 35 | 0x0a,0x75,0x32,0x17,0x65,0x43,0x21,0xed,0xdc,0x54,0x32,0x1e,0xdb,0xa8,0x64,0x50, 36 | 0x09,0x64,0x31,0xed,0xc4,0x33,0x11,0xed,0xcc,0xbb,0x32,0x1d,0xcb,0xa8,0x64,0x10, 37 | 0x08,0x54,0x21,0xed,0xcb,0x32,0x1e,0xdd,0xcc,0xba,0x98,0xed,0xcb,0xa8,0x64,0x10, 38 | 0x07,0x53,0x1e,0xdc,0xba,0x98,0x7e,0xdc,0xcb,0xaa,0x98,0x76,0xcb,0x98,0x64,0x20, 39 | 0x07,0x43,0x1e,0xdc,0xba,0x98,0x76,0xcc,0xcb,0xa9,0x88,0x65,0x43,0x98,0x64,0x20, 40 | 0x0d,0xb9,0x1d,0xcb,0xa9,0x87,0x76,0x5c,0xba,0xa9,0x87,0x65,0x43,0x21,0x64,0x20, 41 | 0x0d,0xb9,0x76,0xcb,0xa9,0x87,0x65,0x55,0x4a,0x98,0x86,0x65,0x43,0x2e,0xdb,0x20, 42 | 0x0d,0xb9,0x76,0x5b,0xa8,0x77,0x65,0x54,0x33,0x28,0x76,0x54,0x32,0x1e,0xcb,0x80, 43 | 0x0d,0xb8,0x76,0x43,0x98,0x76,0x55,0x54,0x32,0x11,0xd6,0x54,0x32,0x1d,0xca,0x80, 44 | 0x0e,0xb8,0x75,0x43,0x21,0xe6,0x55,0x43,0x22,0x1e,0xdc,0xb3,0x21,0xed,0xba,0x70, 45 | 0x0e,0xb8,0x75,0x43,0x1e,0xdc,0x55,0x43,0x21,0xed,0xcc,0xba,0x91,0xdc,0xb9,0x60, 46 | 0x0a,0x49,0x75,0x42,0x1e,0xdc,0xcb,0x32,0x21,0xed,0xcb,0xa9,0x87,0x6c,0xa8,0x50, 47 | 0x00,0x52,0xe5,0x32,0xed,0xcc,0xcb,0xa9,0x1e,0xdc,0xbb,0xa9,0x86,0x54,0x97,0x00, 48 | 0x00,0x83,0xec,0xa8,0xed,0xcc,0xba,0x98,0x76,0xcc,0xba,0x98,0x76,0x43,0x1c,0x00, 49 | 0x00,0x05,0x1c,0xa8,0x75,0xcc,0xa9,0x98,0x76,0x54,0xa9,0x87,0x65,0x42,0xe0,0x00, 50 | 0x00,0x00,0x2c,0xa8,0x65,0x5b,0xa9,0x87,0x65,0x43,0x28,0x76,0x54,0x21,0x00,0x00, 51 | 0x00,0x00,0xee,0xa8,0x65,0x53,0x28,0x76,0x54,0x32,0x11,0xd5,0x43,0x1c,0x00,0x00, 52 | 0x00,0x00,0x0c,0x48,0xc5,0x42,0x1e,0xd5,0x43,0x21,0xed,0xcb,0x91,0xc0,0x00,0x00, 53 | 0x00,0x00,0x00,0x01,0xcc,0x31,0xed,0xcb,0x32,0x1e,0xdc,0xa9,0x70,0x00,0x00,0x00, 54 | 0x00,0x00,0x00,0x00,0xca,0x8d,0xcb,0xa9,0x87,0xdc,0xba,0x86,0x00,0x00,0x00,0x00, 55 | 0x00,0x00,0x00,0x00,0x00,0xc1,0x88,0x76,0x54,0x32,0x85,0x00,0x00,0x00,0x00,0x00, 56 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 57 | }; 58 | -------------------------------------------------------------------------------- /examples/ST7735_Lines/ST7735_Lines.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library example 2 | // (c) 2019 Pawel A. Hernik 3 | 4 | /* 5 | ST7735 128x160 1.8" LCD pinout (header at the top, from left): 6 | #1 LED -> 3.3V 7 | #2 SCK -> SCL/D13/PA5 8 | #3 SDA -> MOSI/D11/PA7 9 | #4 A0/DC -> D8/PA1 or any digital 10 | #5 RESET -> D9/PA0 or any digital 11 | #6 CS -> D10/PA2 or any digital 12 | #7 GND -> GND 13 | #8 VCC -> 3.3V 14 | */ 15 | 16 | #define SCR_WD 128 17 | #define SCR_HT 160 18 | #include 19 | #include 20 | 21 | #if (__STM32F1__) // bluepill 22 | #define TFT_CS PA2 23 | #define TFT_DC PA1 24 | #define TFT_RST PA0 25 | #include 26 | #else 27 | #define TFT_CS 10 28 | #define TFT_DC 8 29 | #define TFT_RST 9 30 | //#include 31 | #endif 32 | 33 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 34 | 35 | void setup() 36 | { 37 | Serial.begin(9600); 38 | lcd.init(); 39 | lcd.fillScreen(BLACK); 40 | /* 41 | for(int i=0;i<128;i++) { 42 | lcd.fillRect(32*0,i,32,1,RGBto565(i*2,0,0)); 43 | lcd.fillRect(32*1,i,32,1,RGBto565(0,i*2,0)); 44 | lcd.fillRect(32*2,i,32,1,RGBto565(0,0,i*2)); 45 | lcd.fillRect(32*3,i,32,1,RGBto565(i*2,i*2,i*2)); 46 | } 47 | delay(2000); 48 | */ 49 | } 50 | 51 | void circles() 52 | { 53 | int x,y; 54 | x = 15+random(SCR_WD-30); 55 | y = 15+random(SCR_HT-30); 56 | lcd.fillCircle(x,y,15,random(65535)); 57 | lcd.drawCircle(x,y,16,YELLOW); 58 | } 59 | 60 | #define MAX_LINES 16 61 | byte lx0[MAX_LINES]; 62 | byte lx1[MAX_LINES]; 63 | byte ly0[MAX_LINES]; 64 | byte ly1[MAX_LINES]; 65 | byte curLine=0; 66 | int cc=0; 67 | int numLines=12; 68 | unsigned long ms; 69 | 70 | void animLines(int mode) 71 | { 72 | static int x0=40,y0=0; 73 | static int dx0=6,dy0=5; 74 | static int x1=80,y1=40; 75 | static int dx1=9,dy1=8; 76 | uint16_t c; 77 | ms=millis(); 78 | x0+=dx0; 79 | y0+=dy0; 80 | x1+=dx1; 81 | y1+=dy1; 82 | if(x0>SCR_WD-1) { dx0=-dx0; x0=SCR_WD-1; } 83 | if(x0<1) { dx0=-dx0; x0=0; } 84 | if(y0>SCR_HT-1) { dy0=-dy0; y0=SCR_HT-1; } 85 | if(y0<1) { dy0=-dy0; y0=0; } 86 | if(x1>SCR_WD-1) { dx1=-dx1; x1=SCR_WD-1; } 87 | if(x1<1) { dx1=-dx1; x1=0; } 88 | if(y1>SCR_HT-1) { dy1=-dy1; y1=SCR_HT-1; } 89 | if(y1<1) { dy1=-dy1; y1=0; } 90 | int i=curLine; 91 | if(mode&1) lcd.drawLine(lx0[i],ly0[i],lx1[i],ly1[i], 0); 92 | if(mode&2) lcd.drawLine(SCR_WD-1-lx0[i],ly0[i],SCR_WD-1-lx1[i],ly1[i],0); 93 | if(mode&4) lcd.drawLine(lx0[i],SCR_HT-1-ly0[i],lx1[i],SCR_HT-1-ly1[i],0); 94 | if(mode&8) lcd.drawLine(SCR_WD-1-lx0[i],SCR_HT-1-ly0[i],SCR_WD-1-lx1[i],SCR_HT-1-ly1[i],0); 95 | lx0[curLine]=x0; 96 | lx1[curLine]=x1; 97 | ly0[curLine]=y0; 98 | ly1[curLine]=y1; 99 | if(++curLine>=numLines) curLine=0; 100 | for(int i=0;i 3.3V 10 | #2 SCK -> SCL/D13/PA5 11 | #3 SDA -> MOSI/D11/PA7 12 | #4 A0/DC -> D8/PA1 or any digital 13 | #5 RESET -> D9/PA0 or any digital 14 | #6 CS -> D10/PA2 or any digital 15 | #7 GND -> GND 16 | #8 VCC -> 3.3V 17 | */ 18 | 19 | #define SCR_WD 128 20 | #define SCR_HT 160 21 | 22 | #include 23 | #include 24 | 25 | #if (__STM32F1__) // bluepill 26 | #define TFT_CS PA2 27 | #define TFT_DC PA1 28 | #define TFT_RST PA0 29 | //#include 30 | #else 31 | #define TFT_CS 10 32 | #define TFT_DC 8 33 | #define TFT_RST 9 34 | #include 35 | #endif 36 | 37 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 38 | 39 | #include "RREFont.h" 40 | #include "rre_arialb_16.h" 41 | 42 | RREFont font; 43 | 44 | // needed for RREFont library initialization, define your fillRect 45 | void customRect(int x, int y, int w, int h, int c) { return lcd.fillRect(x, y, w, h, c); } 46 | 47 | void setup() 48 | { 49 | Serial.begin(9600); 50 | lcd.init(); 51 | font.init(customRect, SCR_WD, SCR_HT); // custom fillRect function and screen width and height values 52 | 53 | for(int i=0;i=maxy) y-=maxy; 88 | if((i%16)==0) { 89 | lcd.fillRect(0,y,128,16,RGBto565(0,0,bgCols[c]<<4)); 90 | font.printStr(ALIGN_CENTER,y+1,scrollTxt[t]); 91 | if(++c>=sizeof(bgCols)/sizeof(bgCols[0])) c=0; 92 | if(++t>=sizeof(scrollTxt)/sizeof(scrollTxt[0])) t=0; 93 | //Serial.println(millis()-ms); // less than 25ms per line 94 | } 95 | while(millis()-ms<25); 96 | } 97 | 98 | // scrolling with fixed top area 99 | lcd.fillRect(0,0,128,3,RGBto565(220,0,220)); 100 | lcd.fillRect(0,3,128,32-6,RGBto565(180,0,180)); 101 | lcd.fillRect(0,32-3,128,3,RGBto565(140,0,140)); 102 | font.setScale(1); font.setSpacing(1); 103 | font.setColor(YELLOW); 104 | font.printStr(ALIGN_CENTER,8,"Fixed Top Area"); 105 | font.setColor(WHITE); 106 | font.setScale(1); font.setSpacing(3); 107 | lcd.setScrollArea(32, 0); 108 | for(int l=0;l<3;l++) 109 | for(int i=32;i=maxy) {y-=maxy; y+=32;} 114 | if((i%16)==0) { 115 | lcd.fillRect(0,y,128,16,RGBto565(0,0,bgCols[c]<<4)); 116 | font.printStr(ALIGN_CENTER,y+1,scrollTxt[t]); 117 | if(++c>=sizeof(bgCols)/sizeof(bgCols[0])) c=0; 118 | if(++t>=sizeof(scrollTxt)/sizeof(scrollTxt[0])) t=0; 119 | } 120 | while(millis()-ms<25); 121 | } 122 | } 123 | 124 | -------------------------------------------------------------------------------- /examples/ST7735_ControllerModes/ST7735_ControllerModes.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library example 2 | // (c) 2019 Pawel A. Hernik 3 | 4 | // requires RRE Font library: 5 | // https://github.com/cbm80amiga/RREFont 6 | 7 | /* 8 | ST7735 128x160 1.8" LCD pinout (header at the top, from left): 9 | #1 LED -> 3.3V 10 | #2 SCK -> SCL/D13/PA5 11 | #3 SDA -> MOSI/D11/PA7 12 | #4 A0/DC -> D8/PA1 or any digital 13 | #5 RESET -> D9/PA0 or any digital 14 | #6 CS -> D10/PA2 or any digital 15 | #7 GND -> GND 16 | #8 VCC -> 3.3V 17 | */ 18 | 19 | #define SCR_WD 128 20 | #define SCR_HT 160 21 | #include 22 | #include 23 | 24 | #if (__STM32F1__) // bluepill 25 | #define TFT_CS PA2 26 | #define TFT_DC PA1 27 | #define TFT_RST PA0 28 | //#include 29 | #else 30 | #define TFT_CS 10 31 | #define TFT_DC 8 32 | #define TFT_RST 9 33 | #include 34 | #endif 35 | 36 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 37 | 38 | #include "RREFont.h" 39 | #include "rre_fjg_8x16.h" 40 | 41 | RREFont font; 42 | 43 | // needed for RREFont library initialization, define your fillRect 44 | void customRect(int x, int y, int w, int h, int c) { return lcd.fillRect(x, y, w, h, c); } 45 | 46 | void setup() 47 | { 48 | Serial.begin(9600); 49 | lcd.init(); 50 | lcd.fillScreen(BLACK); 51 | font.init(customRect, SCR_WD, SCR_HT); // custom fillRect function and screen width and height values 52 | font.setFont(&rre_fjg_8x16); 53 | font.setScale(1); font.setSpacing(3); 54 | font.setColor(WHITE); 55 | } 56 | 57 | void rainbow() 58 | { 59 | for(int i=0;i<128;i+=4) { 60 | uint8_t r,g,b; 61 | lcd.rgbWheel(i*512L/128,&r,&g,&b); 62 | lcd.fillRect(0,i,128,4,RGBto565(r,g,b)); 63 | } 64 | } 65 | 66 | void loop() 67 | { 68 | lcd.fillScreen(RGBto565(120,60,30)); 69 | font.printStr(ALIGN_CENTER,SCR_HT/2-8-20,"ST7735"); 70 | font.printStr(ALIGN_CENTER,SCR_HT/2-8+20,"modes"); 71 | delay(2000); 72 | 73 | lcd.fillScreen(BLACK); 74 | rainbow(); 75 | font.setColor(BLACK); 76 | font.printStr(ALIGN_CENTER,50,"Idle mode OFF"); 77 | lcd.idleDisplay(false); delay(2000); 78 | rainbow(); 79 | font.printStr(ALIGN_CENTER,50,"Idle mode ON"); 80 | lcd.idleDisplay(true); delay(4000); 81 | rainbow(); 82 | font.printStr(ALIGN_CENTER,50,"Idle mode OFF"); 83 | lcd.idleDisplay(false); delay(2000); 84 | 85 | rainbow(); 86 | font.setColor(WHITE,BLACK); 87 | lcd.fillRect(10,46,SCR_WD-20,22,BLACK); 88 | font.printStr(ALIGN_CENTER,50,"Invert OFF"); 89 | lcd.invertDisplay(false); delay(2000); 90 | font.printStr(ALIGN_CENTER,50," Invert ON "); 91 | lcd.invertDisplay(true); delay(4000); 92 | font.printStr(ALIGN_CENTER,50,"Invert OFF"); 93 | lcd.invertDisplay(false); delay(2000); 94 | 95 | font.setColor(WHITE); 96 | lcd.fillScreen(RGBto565(180,0,180)); 97 | font.printStr(ALIGN_CENTER,SCR_HT/2-8,"Sleep mode 2s"); 98 | delay(2000); 99 | //lcd.enableDisplay(false); 100 | lcd.sleepDisplay(true); delay(4000); 101 | lcd.sleepDisplay(false); 102 | //lcd.enableDisplay(true); 103 | 104 | lcd.fillScreen(RGBto565(180,0,180)); 105 | font.printStr(ALIGN_CENTER,SCR_HT/2-8,"Display on/off"); 106 | delay(2000); 107 | lcd.enableDisplay(false); delay(4000); 108 | lcd.enableDisplay(true); delay(1000); 109 | 110 | lcd.fillScreen(RGBto565(180,0,180)); 111 | font.printStr(ALIGN_CENTER,SCR_HT/2-8,"Partial display"); 112 | font.setColor(YELLOW); 113 | font.printStr(ALIGN_CENTER,4,"Top"); 114 | font.printStr(ALIGN_CENTER,SCR_HT-18,"Bottom"); 115 | font.setColor(WHITE); 116 | delay(2000); 117 | lcd.setPartArea(SCR_HT/4, SCR_HT-SCR_HT/4); lcd.partialDisplay(true); delay(4000); 118 | lcd.setPartArea(SCR_HT-SCR_HT/4, SCR_HT/4); lcd.partialDisplay(true); delay(4000); 119 | lcd.partialDisplay(false); 120 | delay(1000); 121 | 122 | lcd.fillScreen(RGBto565(180,0,0)); 123 | font.printStr(ALIGN_CENTER,SCR_HT/2-8,"Sw reset ..."); 124 | delay(2000); 125 | lcd.resetDisplay(); delay(2000); 126 | lcd.init(); 127 | lcd.fillScreen(RGBto565(0,0,180)); 128 | font.printStr(0,0,"After reset"); delay(2000); 129 | } 130 | 131 | -------------------------------------------------------------------------------- /examples/ST7735_BigScroll/ST7735_BigScroll.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library example 2 | // (c) 2019 Pawel A. Hernik 3 | 4 | // requires RRE Font library: 5 | // https://github.com/cbm80amiga/RREFont 6 | 7 | /* 8 | ST7735 128x160 1.8" LCD pinout (header at the top, from left): 9 | #1 LED -> 3.3V 10 | #2 SCK -> SCL/D13/PA5 11 | #3 SDA -> MOSI/D11/PA7 12 | #4 A0/DC -> D8/PA1 or any digital 13 | #5 RESET -> D9/PA0 or any digital 14 | #6 CS -> D10/PA2 or any digital 15 | #7 GND -> GND 16 | #8 VCC -> 3.3V 17 | */ 18 | 19 | #define SCR_WD 128 20 | #define SCR_HT 160 21 | #include 22 | #include 23 | 24 | #if (__STM32F1__) // bluepill 25 | #define TFT_CS PA2 26 | #define TFT_DC PA1 27 | #define TFT_RST PA0 28 | //#include 29 | #else 30 | #define TFT_CS 10 31 | #define TFT_DC 8 32 | #define TFT_RST 9 33 | #include 34 | #endif 35 | 36 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 37 | 38 | #include "RREFont.h" 39 | #include "rre_times_98v.h" 40 | #include "rre_tahoma_65v.h" 41 | 42 | RRE_Font *rFont = &rre_Times98v; 43 | //RRE_Font *rFont = &rre_tahoma_65v; 44 | 45 | uint16_t bg = 0x0000, fg = 0xffff; 46 | int maxy = SCR_HT; 47 | int screenWd = SCR_WD, screenHt = SCR_HT; 48 | int spacing = 1; 49 | int sx = 1, sy = 1; 50 | int scrollStep = 2; 51 | int scrollDelay = 10; 52 | int cnt = 0; 53 | int ycnt = 0, yscr = 0; 54 | int offsY = 30; 55 | unsigned long ms; 56 | 57 | 58 | int scrollCharRRE(unsigned char c) 59 | { 60 | if(cfirstCh || c>rFont->lastCh) return 0; 61 | uint16_t recIdx = pgm_read_word(&(rFont->offs[c-rFont->firstCh])); 62 | uint16_t recNum = pgm_read_word(&(rFont->offs[c-rFont->firstCh+1]))-recIdx; 63 | int chWd = recNum>0 ? pgm_read_byte(rFont->rects + (recNum-1+recIdx)*3)+1 : 0; 64 | //Serial.println(String(char(c))+": "+chWd); 65 | spacing = (c==' ') ? rFont->wd/3 : 4; 66 | int idx = recIdx*3; 67 | for(int col = 0; col=maxy) yscr-=maxy; 71 | lcd.setScroll(yscr); 72 | ycnt=yscr+SCR_HT-1; 73 | if(ycnt>=maxy) ycnt-=maxy; 74 | //Serial.println(String("ycnt=")+ycnt); 75 | int scrHOffs = screenHt-1; 76 | int scrWOffs = screenWd-1; 77 | int lineY = scrHOffs-(screenHt-sx-ycnt); 78 | int wd; 79 | if(col>=chWd) { // draw empty column (spacing) 80 | wd = sy*rFont->ht; 81 | lcd.fillRect(scrWOffs-offsY-wd, lineY, wd, sx, bg); 82 | while(millis()-msrects+idx+0); 86 | int ybg = 0; 87 | //yf = pgm_read_byte(font_Rects+idx+1); Serial.print("yf="); Serial.println(yf); 88 | while(xf==col) { // draw all lines for current column 89 | yf = pgm_read_byte(rFont->rects+idx+1); 90 | hf = pgm_read_byte(rFont->rects+idx+2); 91 | if(yf>0) { // bg line top 92 | wd = (yf-ybg)*sy; 93 | lcd.fillRect(scrWOffs-(offsY+ybg*sy)-wd, lineY, wd, sx, bg); 94 | } 95 | ybg = yf+hf; 96 | wd = hf*sy; 97 | lcd.fillRect(scrWOffs-(offsY+yf*sy)-wd, lineY, wd, sx, fg); 98 | idx+=3; 99 | xf = pgm_read_byte(rFont->rects+idx+0); 100 | } 101 | //Serial.println("ys = "+String(ys)+" "+String(charHt)); 102 | 103 | if(ybght-1) { // last bg line 104 | wd = (rFont->ht-ybg)*sy; 105 | lcd.fillRect(scrWOffs-(offsY+ybg*sy)-wd, lineY, wd, sx, bg); 106 | } 107 | while(millis()-msht*sy)/2; 134 | //scrollString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-!?.: "); 135 | scrollString("This is an example of super-smooth scrolling with ordinary Arduino, ST7735 128x168 LCD library and large RRE font ... "); 136 | } 137 | 138 | -------------------------------------------------------------------------------- /examples/ST7735_AmigaBall/ST7735_AmigaBall.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library example 2 | // Amiga Boing Ball Demo 3 | // (c) 2019 Pawel A. Hernik 4 | // YT video: https://youtu.be/KwtkfmglT-c 5 | 6 | /* 7 | ST7735 128x160 LCD pinout (header at the top for better viewwing angles, from left): 8 | #1 LED -> 3.3V 9 | #2 SCK -> SCL/D13/PA5 10 | #3 SDA -> MOSI/D11/PA7 11 | #4 A0/DC -> D8/PA1 or any digital 12 | #5 RESET -> D9/PA0 or any digital 13 | #6 CS -> D10/PA2 or any digital 14 | #7 GND -> GND 15 | #8 VCC -> 3.3V 16 | */ 17 | 18 | #define SCR_WD 128 19 | #define SCR_HT 160 20 | #include 21 | #include 22 | 23 | #if (__STM32F1__) // bluepill 24 | #define TFT_CS PA2 25 | #define TFT_DC PA1 26 | #define TFT_RST PA0 27 | #include 28 | #else 29 | #define TFT_CS 10 30 | #define TFT_DC 8 31 | #define TFT_RST 9 32 | //#include 33 | #endif 34 | 35 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 36 | 37 | #include "ball.h" 38 | 39 | uint16_t palette[16]; 40 | uint16_t line[SCR_WD]; 41 | uint16_t bgCol = RGBto565(160,160,160); 42 | uint16_t bgColS = RGBto565(90,90,90); 43 | uint16_t lineCol = RGBto565(150,40,150); 44 | uint16_t lineColS = RGBto565(80,10,80); 45 | 46 | #define LINE_YS 10 47 | #define LINE_XS1 19 48 | #define LINE_XS2 2 49 | 50 | #define BALL_WD 64 51 | #define BALL_HT 64 52 | #define BALL_SWD 128 53 | #define BALL_SHT 131 54 | 55 | #define SHADOW 20 56 | //#define SHADOW 0 57 | 58 | // AVR stats: 59 | // with shadow - 42-43ms/24fps 60 | // without shadow - 37-38ms/27fps 61 | // without background - 31-32ms/32fps 62 | // SPI transfer only - 22-23ms/45fps (128x64x16bit) 63 | // STM32 stats: 64 | // with shadow - 7-8ms/125fps 65 | // without shadow - 6-7ms/166fps 66 | // without background - 5-6ms/200fps 67 | // SPI transfer only - 4-5ms/250fps (128x64x16bit) 68 | 69 | void drawBall(int x, int y) 70 | { 71 | int i,j,ii; 72 | for(j=0;jLINE_YS) for(i=0;i<10;i++) line[LINE_XS1+i*10]=lineCol; 82 | } 83 | for(i=BALL_WD-2;i>=0;i-=2) { 84 | v = pgm_read_byte(--img); 85 | if(v>>4) { 86 | line[x+i+0] = palette[v>>4]; 87 | #if SHADOW>0 88 | ii=x+i+0+SHADOW; 89 | if(ii0 95 | ii=x+i+1+SHADOW; 96 | if(ii=BALL_SWD-BALL_WD) { x=BALL_SWD-BALL_WD; xd=-xd; animd=-animd; } 147 | if(y<0) { y=0; yd=-yd; } 148 | if(y>=BALL_SHT-BALL_HT) { y=BALL_SHT-BALL_HT; yd=-yd; } 149 | //ms=millis()-ms; Serial.println(ms); 150 | while(millis()-ms<20); // 50fps 151 | } 152 | 153 | -------------------------------------------------------------------------------- /Arduino_ST7735_STM.h: -------------------------------------------------------------------------------- 1 | // Fast ST7735 128x160 SPI display library 2 | // (c) 2019 by Pawel A. Hernik 3 | 4 | /* 5 | ST7735 pinout (header at the top, from left; better viewing angles): 6 | #1 LED -> 3.3V 7 | #2 SCK -> D13 8 | #3 SDA -> D11/MOSI 9 | #4 A0/DC -> D8 or any digital 10 | #5 RESET -> D9 or any digital 11 | #6 CS -> D10 or any digital 12 | #7 GND -> GND 13 | #8 VCC -> 3.3V 14 | */ 15 | 16 | #ifndef _ST7735_STM_H_ 17 | #define _ST7735_STM_H_ 18 | 19 | // ------------------------------ 20 | // remove "define COMPATIBILITY_MODE" for best performance on 16MHz AVR Arduinos 21 | // if defined - the library should work on all Arduino compatible boards 22 | //#define COMPATIBILITY_MODE 23 | 24 | // define for LCD boards where CS pin is internally connected to the ground 25 | //#define CS_ALWAYS_LOW 26 | // ------------------------------ 27 | 28 | #include "Arduino.h" 29 | #include "SPI.h" 30 | #include "Print.h" 31 | #include 32 | #include 33 | 34 | #define DMA_MIN 250 35 | #define DMA_MAX 65535 36 | #define SPI_FREQ 36000000 37 | 38 | #define ST7735_TFTWIDTH 128 39 | #define ST7735_TFTHEIGHT 160 40 | 41 | // Some register settings 42 | #define ST7735_MADCTL_BGR 0x08 43 | #define ST7735_MADCTL_MH 0x04 44 | 45 | #define ST7735_FRMCTR1 0xB1 46 | #define ST7735_FRMCTR2 0xB2 47 | #define ST7735_FRMCTR3 0xB3 48 | #define ST7735_INVCTR 0xB4 49 | #define ST7735_DISSET5 0xB6 50 | 51 | #define ST7735_PWCTR1 0xC0 52 | #define ST7735_PWCTR2 0xC1 53 | #define ST7735_PWCTR3 0xC2 54 | #define ST7735_PWCTR4 0xC3 55 | #define ST7735_PWCTR5 0xC4 56 | #define ST7735_VMCTR1 0xC5 57 | 58 | #define ST7735_PWCTR6 0xFC 59 | 60 | #define ST7735_GMCTRP1 0xE0 61 | #define ST7735_GMCTRN1 0xE1 62 | 63 | #define ST_CMD_DELAY 0x80 64 | 65 | #define ST7735_NOP 0x00 66 | #define ST7735_SWRESET 0x01 67 | 68 | #define ST7735_SLPIN 0x10 // sleep on 69 | #define ST7735_SLPOUT 0x11 // sleep off 70 | #define ST7735_PTLON 0x12 // partial on 71 | #define ST7735_NORON 0x13 // partial off 72 | #define ST7735_INVOFF 0x20 // invert off 73 | #define ST7735_INVON 0x21 // invert on 74 | #define ST7735_DISPOFF 0x28 // display off 75 | #define ST7735_DISPON 0x29 // display on 76 | #define ST7735_IDMOFF 0x38 // idle off 77 | #define ST7735_IDMON 0x39 // idle on 78 | 79 | #define ST7735_CASET 0x2A 80 | #define ST7735_RASET 0x2B 81 | #define ST7735_RAMWR 0x2C 82 | #define ST7735_RAMRD 0x2E 83 | 84 | #define ST7735_COLMOD 0x3A 85 | #define ST7735_MADCTL 0x36 86 | 87 | #define ST7735_PTLAR 0x30 // partial start/end 88 | #define ST7735_VSCRDEF 0x33 // SETSCROLLAREA 89 | #define ST7735_VSCRSADD 0x37 90 | 91 | #define ST7735_WRDISBV 0x51 92 | #define ST7735_WRCTRLD 0x53 93 | #define ST7735_WRCACE 0x55 94 | #define ST7735_WRCABCMB 0x5e 95 | 96 | #define ST7735_POWSAVE 0xbc 97 | #define ST7735_DLPOFFSAVE 0xbd 98 | 99 | // bits in MADCTL 100 | #define ST7735_MADCTL_MY 0x80 101 | #define ST7735_MADCTL_MX 0x40 102 | #define ST7735_MADCTL_MV 0x20 103 | #define ST7735_MADCTL_ML 0x10 104 | #define ST7735_MADCTL_RGB 0x00 105 | 106 | 107 | // Color definitions 108 | #define BLACK 0x0000 109 | #define BLUE 0x001F 110 | #define RED 0xF800 111 | #define GREEN 0x07E0 112 | #define CYAN 0x07FF 113 | #define MAGENTA 0xF81F 114 | #define YELLOW 0xFFE0 115 | #define WHITE 0xFFFF 116 | 117 | #define RGBto565(r,g,b) ((((r) & 0xF8) << 8) | (((g) & 0xFC) << 3) | ((b) >> 3)) 118 | 119 | class Arduino_ST7735 : public Adafruit_GFX { 120 | 121 | public: 122 | Arduino_ST7735(int8_t DC, int8_t RST, int8_t CS = -1); 123 | 124 | void init(); 125 | void begin() { init(); } 126 | void setAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1); 127 | void pushColor(uint16_t color); 128 | void fillScreen(uint16_t color=BLACK); 129 | void clearScreen() { fillScreen(BLACK); } 130 | void drawPixel(int16_t x, int16_t y, uint16_t color); 131 | void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color); 132 | void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color); 133 | void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color); 134 | void drawImage(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t *img); 135 | void drawImageF(int16_t x, int16_t y, int16_t w, int16_t h, const uint16_t *img16); 136 | void setRotation(uint8_t r); 137 | void invertDisplay(boolean mode); 138 | void partialDisplay(boolean mode); 139 | void sleepDisplay(boolean mode); 140 | void enableDisplay(boolean mode); 141 | void idleDisplay(boolean mode); 142 | void resetDisplay(); 143 | void setScrollArea(uint16_t tfa, uint16_t bfa); 144 | void setScroll(uint16_t vsp); 145 | void setPartArea(uint16_t sr, uint16_t er); 146 | void setBrightness(uint8_t br); 147 | void powerSave(uint8_t mode); 148 | 149 | uint16_t Color565(uint8_t r, uint8_t g, uint8_t b); 150 | uint16_t color565(uint8_t r, uint8_t g, uint8_t b) { return Color565(r, g, b); } 151 | void rgbWheel(int idx, uint8_t *_r, uint8_t *_g, uint8_t *_b); 152 | uint16_t rgbWheel(int idx); 153 | 154 | protected: 155 | uint8_t _colstart, _rowstart, _xstart, _ystart; 156 | void displayInit(const uint8_t *addr); 157 | void writeCmd(uint16_t c); 158 | void writeData(uint16_t d); 159 | 160 | private: 161 | int8_t csPin, dcPin, rstPin; 162 | uint8_t csMask, dcMask; 163 | volatile uint8_t *csPort, *dcPort; 164 | uint16_t dmaBuf[128]; 165 | 166 | }; 167 | 168 | #endif 169 | -------------------------------------------------------------------------------- /examples/ST7735_Mario_RRE/rre_mario1.h: -------------------------------------------------------------------------------- 1 | #ifndef __font_mario1_h__ 2 | #define __font_mario1_h__ 3 | 4 | /* 5 | *** Generated by rrefontgen *** 6 | Font: [mario1] 48x64 7 | Total chars: 4 (' ' to '#') 8 | Total rects: 322 * 3 bytes 9 | Total pixels: 4743 (95 overlapping) 10 | Total bytes: 974 (966 rects + 8 offs) 11 | Bitmap size: 1536 (48x64 * 4) (+4 opt) 12 | */ 13 | 14 | const unsigned char fontmario1_Rects[966] PROGMEM = { 15 | 0xc0,0xc0,0x51, 0xc0,0xe0,0x48, 0x92,0x80,0x0a, 0x09,0xf3,0x03, 0x92,0x4b,0x05, 0xdd,0x00,0x08, 0x52,0x52,0x02, 0x9d,0x04,0x03, 0x89,0x20,0x03, 0x0d,0x7b,0x01, 0x66,0x00,0x03, 0xd8,0x0b,0x01, 0x52,0x58,0x00, 0x89,0x23,0x01, 0x49,0x6d,0x00, 0x5d,0x07,0x01, 16 | 0xec,0x0e,0x00, 0x4f,0x3e,0x01, 0x2a,0x00,0x02, 0x21,0x04,0x02, 0x95,0x12,0x00, 0x0d,0x20,0x02, 0x89,0x26,0x00, 0xa8,0x2d,0x00, 0x8a,0x30,0x00, 0x17,0x3a,0x02, 0x1a,0x0b,0x01, 0x53,0x18,0x00, 0x4d,0x39,0x00, 0x1c,0x3d,0x01, 0x11,0x3f,0x01, 0x26,0x02,0x00, 17 | 0x21,0x05,0x00, 0x1f,0x07,0x00, 0x1d,0x09,0x00, 0x2e,0x0a,0x00, 0x2d,0x0b,0x00, 0x1a,0x0c,0x00, 0x18,0x0f,0x00, 0x16,0x12,0x00, 0x2d,0x13,0x00, 0x0d,0x21,0x00, 0x2e,0x21,0x00, 0x2c,0x22,0x00, 0x0b,0x23,0x00, 0x26,0x24,0x00, 0x21,0x25,0x00, 0x22,0x27,0x00, 18 | 0x23,0x29,0x00, 0x26,0x2b,0x00, 0x12,0x2e,0x00, 0x2c,0x2e,0x00, 0x11,0x2f,0x00, 0x19,0x31,0x00, 0x1e,0x31,0x00, 0x0b,0x32,0x00, 0x20,0x33,0x00, 0x18,0x34,0x00, 0x1c,0x34,0x00, 0x2c,0x34,0x00, 0x2d,0x36,0x00, 0x2e,0x37,0x00, 0x1c,0x38,0x00, 0x18,0x39,0x00, 19 | 0x1b,0x39,0x00, 0x20,0x3c,0x00, 0x0f,0x3d,0x00, 0x18,0x3d,0x00, 0x2f,0x09,0x00, 0x4d,0x40,0x22, 0xad,0x06,0x82, 0x9d,0xb5,0x04, 0xa7,0x62,0x05, 0xa1,0x06,0x0b, 0x8f,0x06,0x06, 0xe9,0x09,0x03, 0xd9,0x3c,0x03, 0x6b,0x5c,0x01, 0x61,0xab,0x00, 0x8a,0x00,0x02, 20 | 0x50,0x09,0x03, 0x66,0x09,0x02, 0x9b,0x39,0x01, 0x0e,0x06,0x0c, 0x1f,0x21,0x04, 0x06,0x00,0x03, 0x1d,0x06,0x03, 0x6b,0x0d,0x01, 0x14,0x0f,0x03, 0xea,0x1e,0x00, 0x65,0x27,0x01, 0xe0,0x31,0x00, 0x1a,0x0a,0x02, 0x9f,0x10,0x00, 0xa0,0x13,0x00, 0x15,0x20,0x02, 21 | 0x0b,0x03,0x01, 0x16,0x07,0x01, 0x01,0x08,0x01, 0x24,0x09,0x01, 0x10,0x0b,0x01, 0x6c,0x0f,0x00, 0x02,0x13,0x01, 0x6c,0x1a,0x00, 0x0d,0x1c,0x01, 0x15,0x1c,0x01, 0x0f,0x1d,0x01, 0x5d,0x1f,0x00, 0x00,0x20,0x01, 0x69,0x20,0x00, 0x4c,0x21,0x00, 0x5f,0x33,0x00, 22 | 0x5c,0x37,0x00, 0x58,0x3e,0x00, 0x09,0x01,0x00, 0x0c,0x04,0x00, 0x20,0x07,0x00, 0x05,0x08,0x00, 0x14,0x09,0x00, 0x19,0x0b,0x00, 0x28,0x0b,0x00, 0x0a,0x0c,0x00, 0x10,0x0c,0x00, 0x1c,0x0c,0x00, 0x1f,0x0c,0x00, 0x18,0x0d,0x00, 0x23,0x0d,0x00, 0x2a,0x0d,0x00, 23 | 0x14,0x0e,0x00, 0x1b,0x0e,0x00, 0x25,0x0e,0x00, 0x1c,0x0f,0x00, 0x1b,0x10,0x00, 0x27,0x10,0x00, 0x09,0x11,0x00, 0x06,0x12,0x00, 0x28,0x12,0x00, 0x00,0x14,0x00, 0x26,0x17,0x00, 0x28,0x18,0x00, 0x1c,0x19,0x00, 0x0c,0x1a,0x00, 0x0e,0x1a,0x00, 0x0a,0x1b,0x00, 24 | 0x19,0x1b,0x00, 0x27,0x1b,0x00, 0x08,0x1c,0x00, 0x06,0x1d,0x00, 0x0c,0x1d,0x00, 0x04,0x1e,0x00, 0x02,0x1f,0x00, 0x23,0x1f,0x00, 0x11,0x21,0x00, 0x1b,0x21,0x00, 0x28,0x21,0x00, 0x23,0x22,0x00, 0x13,0x23,0x00, 0x18,0x23,0x00, 0x21,0x24,0x00, 0x0c,0x25,0x00, 25 | 0x1c,0x26,0x00, 0x26,0x26,0x00, 0x00,0x27,0x00, 0x0b,0x27,0x00, 0x1d,0x28,0x00, 0x24,0x28,0x00, 0x00,0x2e,0x00, 0x05,0x30,0x00, 0x1c,0x30,0x00, 0x1e,0x34,0x00, 0x00,0x38,0x00, 0x1a,0x3b,0x00, 0x17,0x3f,0x00, 0xa2,0x69,0x4d, 0x40,0xa6,0x49, 0x80,0x40,0x0e, 26 | 0xa3,0xb5,0x03, 0x40,0x47,0x06, 0xcf,0x00,0x04, 0x40,0x60,0x02, 0x8a,0x3d,0x05, 0x80,0x0d,0x03, 0x9f,0x3d,0x03, 0x43,0x24,0x03, 0x8a,0x66,0x00, 0xa6,0x6e,0x00, 0x07,0x07,0x05, 0x80,0x10,0x01, 0x8a,0x3a,0x01, 0x00,0x5b,0x00, 0x54,0x01,0x01, 0x61,0x3b,0x01, 27 | 0x50,0x3e,0x01, 0x1b,0x3f,0x03, 0x0f,0x04,0x02, 0x0a,0x0d,0x02, 0x80,0x13,0x00, 0x9b,0x18,0x00, 0x16,0x1e,0x02, 0x8b,0x27,0x00, 0xa5,0x32,0x00, 0x07,0x08,0x01, 0x12,0x0b,0x01, 0x04,0x0d,0x01, 0x17,0x11,0x01, 0x4f,0x18,0x00, 0x41,0x1e,0x00, 0x43,0x22,0x00, 28 | 0x4d,0x2e,0x00, 0x4f,0x2e,0x00, 0x4c,0x3b,0x00, 0x12,0x3f,0x01, 0x14,0x00,0x00, 0x16,0x01,0x00, 0x26,0x01,0x00, 0x0f,0x05,0x00, 0x2f,0x05,0x00, 0x07,0x09,0x00, 0x0b,0x0b,0x00, 0x0a,0x0c,0x00, 0x15,0x0c,0x00, 0x17,0x0d,0x00, 0x04,0x0e,0x00, 0x0c,0x0e,0x00, 29 | 0x18,0x0e,0x00, 0x09,0x0f,0x00, 0x02,0x10,0x00, 0x07,0x10,0x00, 0x06,0x11,0x00, 0x05,0x12,0x00, 0x04,0x14,0x00, 0x08,0x14,0x00, 0x0a,0x15,0x00, 0x0e,0x15,0x00, 0x1a,0x15,0x00, 0x09,0x18,0x00, 0x0c,0x18,0x00, 0x0d,0x1b,0x00, 0x16,0x1b,0x00, 0x04,0x1d,0x00, 30 | 0x13,0x1e,0x00, 0x08,0x21,0x00, 0x14,0x21,0x00, 0x16,0x21,0x00, 0x0a,0x22,0x00, 0x15,0x22,0x00, 0x04,0x23,0x00, 0x0d,0x23,0x00, 0x13,0x23,0x00, 0x07,0x25,0x00, 0x10,0x26,0x00, 0x0f,0x29,0x00, 0x10,0x2a,0x00, 0x0e,0x2b,0x00, 0x24,0x34,0x00, 0x0d,0x37,0x00, 31 | 0x0a,0x39,0x00, 0x22,0x3a,0x00, 0x0d,0x3c,0x00, 0x1e,0x3e,0x00, 0xe7,0x2c,0x48, 0x17,0x40,0x18, 0x8c,0x29,0x23, 0x29,0xa0,0x06, 0x2a,0x45,0x05, 0x13,0x44,0x05, 0x2e,0x97,0x01, 0x0e,0x28,0x11, 0x51,0x26,0x04, 0xab,0x1d,0x02, 0xe7,0x25,0x01, 0x15,0x42,0x05, 32 | 0x24,0x05,0x05, 0x6d,0x0a,0x02, 0x07,0x2b,0x04, 0x44,0x04,0x01, 0xef,0x13,0x00, 0x92,0x05,0x07, 0x27,0x06,0x02, 0xaf,0x0c,0x00, 0x92,0x0d,0x00, 0xad,0x1a,0x00, 0x12,0x25,0x02, 0x10,0x27,0x07, 0x16,0x81,0x01, 0x94,0x03,0x08, 0x41,0x00,0x00, 0x6a,0x14,0x00, 33 | 0x64,0x1d,0x00, 0x61,0x23,0x00, 0x68,0x23,0x00, 0x66,0x27,0x00, 0x0a,0x2a,0x01, 0x02,0x03,0x00, 0x0a,0x03,0x00, 0x08,0x04,0x00, 0x11,0x06,0x00, 0x29,0x07,0x00, 0x2c,0x0a,0x00, 0x2e,0x0c,0x00, 0x02,0x0f,0x00, 0x01,0x10,0x00, 0x00,0x12,0x00, 0x13,0x12,0x00, 34 | 0x29,0x12,0x00, 0x28,0x15,0x00, 0x29,0x17,0x00, 0x03,0x18,0x00, 0x28,0x19,0x00, 0x26,0x1a,0x00, 0x27,0x1b,0x00, 0x26,0x1c,0x00, 0x2c,0x1c,0x00, 0x25,0x1e,0x00, 0x2a,0x1f,0x00, 0x23,0x20,0x00, 0x24,0x21,0x00, 0x23,0x23,0x00, 0x13,0x24,0x00, 0x22,0x24,0x00, 35 | 0x25,0x28,0x00, 0xc0,0x2c,0x6f, 36 | }; 37 | 38 | const unsigned short fontmario1_CharOffs[5] PROGMEM = { 39 | 0x0000, 0x0045, 0x00ae, 0x0105, 0x0142, 40 | }; 41 | 42 | RRE_Font rre_mario1 = { RRE_24B, 48,64, 0x20, 0x23, (const uint8_t*)fontmario1_Rects, (const uint16_t*)fontmario1_CharOffs }; 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /examples/ST7735_Mario_RRE/ST7735_Mario_RRE.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library example 2 | // (c) 2019 Pawel A. Hernik 3 | 4 | // requires RRE Font library: 5 | // https://github.com/cbm80amiga/RREFont 6 | 7 | /* 8 | ST7735 128x160 1.8" LCD pinout (header at the top, from left): 9 | #1 LED -> 3.3V 10 | #2 SCK -> SCL/D13/PA5 11 | #3 SDA -> MOSI/D11/PA7 12 | #4 A0/DC -> D8/PA1 or any digital 13 | #5 RESET -> D9/PA0 or any digital 14 | #6 CS -> D10/PA2 or any digital 15 | #7 GND -> GND 16 | #8 VCC -> 3.3V 17 | */ 18 | 19 | #define SCR_WD 128 20 | #define SCR_HT 160 21 | #include 22 | #include 23 | 24 | #if (__STM32F1__) // bluepill 25 | #define TFT_CS PA2 26 | #define TFT_DC PA1 27 | #define TFT_RST PA0 28 | //#include 29 | #else 30 | #define TFT_CS 10 31 | #define TFT_DC 8 32 | #define TFT_RST 9 33 | #include 34 | #endif 35 | 36 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 37 | 38 | #include "RREFont.h" 39 | 40 | #include "rre_mario0.h" 41 | #include "rre_mario1.h" 42 | #include "rre_mario2.h" 43 | #include "rre_mario3.h" 44 | #include "rre_mario4.h" 45 | #include "rre_mario5.h" 46 | #include "rre_mario6.h" 47 | /* 48 | #include "rre_mario0_v.h" 49 | #include "rre_mario2_v.h" 50 | #include "rre_mario3_v.h" 51 | #include "rre_mario4_v.h" 52 | #include "rre_mario5_v.h" 53 | #include "rre_mario6_v.h" 54 | */ 55 | RREFont font; 56 | 57 | // needed for RREFont library initialization, define your fillRect 58 | void customRect(int x, int y, int w, int h, int c) { return lcd.fillRect(x, y, w, h, c); } 59 | 60 | int sx=64, sy=64, sx0=0, sy0=0; 61 | // special callback with scale&translation feature 62 | void customRectScale(int x, int y, int w, int h, int c) 63 | { 64 | int xx=(x-sx0)*sx>>6, yy=(y-sy0)*sy>>6, ww=((w+x-sx0)*sx>>6)-xx, hh=((h+y-sy0)*sy>>6)-yy; 65 | xx+=sx0; 66 | yy+=sy0; 67 | return lcd.fillRect(xx, yy, ww, hh, c); 68 | } 69 | 70 | void showMarioV() 71 | { 72 | delay(1000); 73 | font.setFont(&rre_mario0); font.setScale(1); font.setSpacing(0); 74 | font.setColor(RGBto565(15,9,8)); 75 | font.printStr(0,0," "); 76 | delay(1000); 77 | font.setFont(&rre_mario2); font.setScale(1); font.setSpacing(0); 78 | font.setColor(RGBto565(113,59,29)); 79 | font.printStr(0,0," "); 80 | delay(1000); 81 | font.setFont(&rre_mario3); font.setScale(1); font.setSpacing(0); 82 | font.setColor(RGBto565(253,212,133)); 83 | font.printStr(0,0," "); 84 | delay(1000); 85 | font.setFont(&rre_mario4); font.setScale(1); font.setSpacing(0); 86 | font.setColor(RGBto565(237,53,15)); 87 | font.printStr(0,0," "); 88 | delay(1000); 89 | font.setFont(&rre_mario5); font.setScale(1); font.setSpacing(0); 90 | font.setColor(RGBto565(249,249,248)); 91 | font.printStr(0,0," "); 92 | delay(1000); 93 | font.setFont(&rre_mario6); font.setScale(1); font.setSpacing(0); 94 | font.setColor(RGBto565(9,69,163)); 95 | font.printStr(0,0," "); 96 | } 97 | 98 | uint16_t bg=RGBto565(157,156,154); 99 | int del=0; 100 | 101 | void showMario(int x, int y) 102 | { 103 | font.setFont(&rre_mario1); font.setScale(1); 104 | font.setColor(bg); 105 | font.printStr(x,y," "); font.printStr(x+48,y,"!"); font.printStr(x,y+64,"\""); font.printStr(x+48,y+64,"#"); 106 | delay(del); 107 | font.setFont(&rre_mario0); font.setScale(1); 108 | font.setColor(RGBto565(15,9,8)); 109 | font.printStr(x,y," "); font.printStr(x+48,y,"!"); font.printStr(x,y+64,"\""); font.printStr(x+48,y+64,"#"); 110 | delay(del); 111 | font.setFont(&rre_mario2); font.setScale(1); 112 | font.setColor(RGBto565(113,59,29)); 113 | font.printStr(x,y," "); font.printStr(x+48,y,"!"); font.printStr(x,y+64,"\""); font.printStr(x+48,y+64,"#"); 114 | delay(del); 115 | font.setFont(&rre_mario3); font.setScale(1); 116 | font.setColor(RGBto565(253,212,133)); 117 | font.printStr(x,y," "); font.printStr(x+48,y,"!"); font.printStr(x,y+64,"\""); font.printStr(x+48,y+64,"#"); 118 | delay(del); 119 | font.setFont(&rre_mario4); font.setScale(1); 120 | font.setColor(RGBto565(237,53,15)); 121 | font.printStr(x,y," "); font.printStr(x+48,y,"!"); font.printStr(x,y+64,"\""); font.printStr(x+48,y+64,"#"); 122 | delay(del); 123 | font.setFont(&rre_mario5); font.setScale(1); 124 | font.setColor(RGBto565(249,249,248)); 125 | font.printStr(x,y," "); font.printStr(x+48,y,"!"); font.printStr(x,y+64,"\""); font.printStr(x+48,y+64,"#"); 126 | delay(del); 127 | font.setFont(&rre_mario6); font.setScale(1); 128 | font.setColor(RGBto565(9,69,163)); 129 | font.printStr(x,y," "); font.printStr(x+48,y,"!"); font.printStr(x,y+64,"\""); font.printStr(x+48,y+64,"#"); 130 | } 131 | 132 | 133 | void setup() 134 | { 135 | Serial.begin(9600); 136 | lcd.init(); 137 | lcd.fillScreen(bg); // c1 138 | // font.init(customRect, SCR_WD, SCR_HT); // custom fillRect function and screen width and height values 139 | font.init(customRectScale, SCR_WD, SCR_HT); // custom fillRect function and screen width and height values 140 | 141 | del=0; 142 | showMario(16,0); 143 | delay(2000); 144 | lcd.fillScreen(bg); // c1 145 | del=1000; 146 | showMario(16,0); 147 | del=0; 148 | delay(2000); 149 | } 150 | 151 | 152 | void loop() 153 | { 154 | lcd.fillScreen(bg); // c1 155 | for(int j=0;j<4;j++) { 156 | sx0=64; sy0=64; 157 | for(int i=64;i>8;i-=2) { 158 | if(j==2) { sx=64;sy=i; } else 159 | if(j==3) { sx=i;sy=64; } else { sx=i;sy=i; } 160 | showMario(16,0); 161 | int w=96*i>>6; 162 | int h=128*i>>6; 163 | if(j<2) { 164 | lcd.fillRect(64-(48*i>>6), 64-(64*i>>6), w,2, bg); 165 | lcd.fillRect(64-(48*i>>6), 64+(64*i>>6)-2, w,2, bg); 166 | lcd.fillRect(64-(48*i>>6)-1, 64-(64*i>>6), 2,h, bg); 167 | lcd.fillRect(64+(48*i>>6)-2, 64-(64*i>>6), 2,h, bg); 168 | } else 169 | if(j==2) { 170 | lcd.fillRect(16, 64-(64*i>>6), 96,2, bg); 171 | lcd.fillRect(16, 64+(64*i>>6)-2, 96,2, bg); 172 | } else 173 | if(j==3) { 174 | lcd.fillRect(64-(48*i>>6)-1, 0, 2,128, bg); 175 | lcd.fillRect(64+(48*i>>6)-2, 0, 2,128, bg); 176 | } 177 | } 178 | for(int i=8;i<=64;i+=2) { 179 | if(j==2) { sx=64;sy=i; } else 180 | if(j==3) { sx=i;sy=64; } else { sx=i;sy=i; } 181 | showMario(16,0); 182 | } 183 | } 184 | for(int j=0;j<200;j++) { 185 | sx=sy=random(8,64); 186 | sx0=sy0=0; 187 | showMario(random(0,128),random(0,128)); 188 | } 189 | } 190 | 191 | -------------------------------------------------------------------------------- /examples/ST7735_AmigaBallMulti/ball48.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: ball48.bmp 3 | // Dimensions : 48x48x4 (16 colors) 4 | // Size : 1152 [0x0480] bytes 5 | 6 | 7 | const unsigned char ball48[1152+16*2+6] PROGMEM = { 8 | 48,0,48,0,4,0, // width,height,bits 9 | 0x10,0x84, // c000->130,130,130 10 | 0x82,0x00, // c001-> 0, 16, 16 11 | 0x04,0x01, // c002-> 0, 32, 32 12 | 0x86,0x01, // c003-> 0, 48, 48 13 | 0x08,0x02, // c004-> 0, 64, 64 14 | 0x8a,0x02, // c005-> 0, 80, 80 15 | 0x0c,0x03, // c006-> 0, 96, 96 16 | 0x8e,0x03, // c007-> 0,112,112 17 | 0x10,0x04, // c008-> 0,128,128 18 | 0x92,0x04, // c009-> 0,144,144 19 | 0x14,0x05, // c010-> 0,160,160 20 | 0x96,0x05, // c011-> 0,176,176 21 | 0x18,0x06, // c012-> 0,192,192 22 | 0x9a,0x06, // c013-> 0,208,208 23 | 0x1c,0x07, // c014-> 0,224,224 24 | 0x9e,0x07, // c015-> 0,240,240 25 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 26 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 27 | 0x0a,0x8e,0xdc,0xcb,0xba,0xaa,0xa3,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 28 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa8,0x76,0x54,0xba,0x99,0x87,0x76,0x65,0xcc, 29 | 0xce,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa8,0x76, 30 | 0x54,0x33,0x21,0x87,0x66,0x54,0x43,0x21,0x76,0x55,0x00,0x00,0x00,0x00,0x00,0x00, 31 | 0x00,0x00,0x00,0x00,0x00,0x09,0x76,0x54,0x43,0x21,0x1e,0xdd,0x55,0x43,0x32,0x1e, 32 | 0xdc,0x53,0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x17,0x65,0x43, 33 | 0x32,0x1e,0xed,0xcc,0xb4,0x32,0x11,0xed,0xcc,0xb3,0x1c,0x50,0x00,0x00,0x00,0x00, 34 | 0x00,0x00,0x00,0x00,0x31,0xdc,0x54,0x32,0x11,0xed,0xdc,0xcb,0xaa,0x91,0x1e,0xdc, 35 | 0xcc,0xb9,0x86,0xa5,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x1d,0xcb,0xba,0x21, 36 | 0x1e,0xdd,0xcc,0xba,0xa9,0x88,0x7d,0xdc,0xcb,0xa9,0x86,0x41,0x40,0x00,0x00,0x00, 37 | 0x00,0x00,0x00,0x31,0xdc,0xbb,0xa9,0x87,0xed,0xdc,0xcb,0xaa,0x98,0x87,0x66,0x5c, 38 | 0xbb,0xa9,0x76,0x43,0xe9,0x00,0x00,0x00,0x00,0x00,0x03,0x1e,0xcb,0xba,0x98,0x77, 39 | 0x6d,0xcc,0xba,0xa9,0x88,0x77,0x65,0x55,0xba,0x98,0x76,0x53,0x1c,0x70,0x00,0x00, 40 | 0x00,0x00,0x01,0xed,0xcb,0xa9,0x88,0x76,0x65,0x5b,0xaa,0x98,0x87,0x76,0x65,0x54, 41 | 0x43,0x98,0x76,0x53,0x2d,0xa0,0x00,0x00,0x00,0x00,0x2e,0xdc,0xba,0x98,0x87,0x66, 42 | 0x55,0x44,0x32,0x98,0x77,0x66,0x55,0x54,0x32,0x21,0x76,0x53,0x2e,0xc9,0x00,0x00, 43 | 0x00,0x0b,0x8d,0xcb,0xaa,0x98,0x77,0x65,0x54,0x43,0x32,0x88,0x77,0x65,0x55,0x43, 44 | 0x32,0x11,0xdd,0x53,0x21,0xda,0x60,0x00,0x00,0x09,0x76,0xcb,0xa9,0x87,0x76,0x65, 45 | 0x44,0x33,0x21,0x1e,0xe6,0x65,0x54,0x43,0x32,0x1e,0xdc,0xba,0x21,0xdb,0x80,0x00, 46 | 0x00,0xb8,0x65,0x43,0x98,0x87,0x66,0x55,0x43,0x32,0x21,0xee,0xd6,0x55,0x54,0x33, 47 | 0x22,0x1e,0xdc,0xba,0x91,0xdc,0xa5,0x00,0x00,0x97,0x65,0x43,0x28,0x77,0x65,0x54, 48 | 0x43,0x32,0x11,0xee,0xdd,0xc5,0x44,0x33,0x21,0x1e,0xdc,0xba,0x98,0x75,0x37,0x00, 49 | 0x00,0x86,0x54,0x32,0x11,0xe6,0x65,0x44,0x33,0x21,0x1e,0xed,0xdc,0xcc,0xba,0x32, 50 | 0x21,0xed,0xdc,0xba,0x98,0x75,0x41,0x00,0x0a,0x86,0x54,0x32,0x1e,0xed,0xc5,0x44, 51 | 0x32,0x21,0x1e,0xdd,0xcc,0xcb,0xba,0xa9,0x11,0xed,0xcc,0xba,0x98,0x75,0x42,0xc0, 52 | 0x09,0x76,0x43,0x21,0x1e,0xdd,0xcb,0xb3,0x32,0x11,0xee,0xdd,0xcc,0xcb,0xaa,0x99, 53 | 0x88,0xed,0xcc,0xba,0x98,0x75,0x42,0xd0,0x09,0x75,0x43,0x21,0xee,0xdc,0xcb,0xaa, 54 | 0x98,0x1e,0xed,0xdc,0xcc,0xbb,0xaa,0x98,0x87,0x6d,0xcb,0xba,0x98,0x75,0x42,0xe0, 55 | 0x08,0x65,0x43,0x21,0xed,0xdc,0xbb,0xaa,0x98,0x1e,0xed,0xdc,0xcc,0xba,0xa9,0x98, 56 | 0x87,0x65,0x5b,0xaa,0x98,0x75,0x43,0xe0,0x01,0x65,0x32,0x1e,0xed,0xcc,0xba,0xa9, 57 | 0x88,0x77,0xdd,0xcc,0xcb,0xba,0xa9,0x88,0x76,0x65,0x54,0x39,0x98,0x65,0x43,0x10, 58 | 0x01,0xd4,0x32,0x1e,0xdd,0xcb,0xba,0xa9,0x88,0x77,0x66,0xcc,0xbb,0xaa,0x99,0x88, 59 | 0x76,0x65,0x44,0x32,0x18,0x65,0x43,0x10,0x0e,0xdb,0xa2,0x1e,0xdc,0xcb,0xba,0x98, 60 | 0x87,0x76,0x65,0x55,0xbb,0xaa,0x98,0x87,0x66,0x55,0x43,0x32,0x1e,0xd5,0x43,0x10, 61 | 0x0e,0xcb,0xa8,0x1e,0xdc,0xcb,0xaa,0x98,0x87,0x76,0x55,0x54,0x43,0xa9,0x98,0x87, 62 | 0x66,0x54,0x43,0x32,0x1e,0xdc,0x42,0x10,0x0e,0xcb,0xa8,0x77,0x6c,0xbb,0xa9,0x88, 63 | 0x77,0x66,0x55,0x54,0x33,0x22,0x88,0x76,0x65,0x54,0x43,0x22,0x1e,0xdc,0xb9,0xe0, 64 | 0x0e,0xcb,0xa8,0x76,0x65,0x4a,0xa9,0x88,0x77,0x65,0x55,0x44,0x33,0x22,0x11,0x76, 65 | 0x65,0x54,0x33,0x21,0x1d,0xdc,0xa9,0x70,0x01,0xcb,0xa8,0x76,0x55,0x43,0xa9,0x87, 66 | 0x76,0x65,0x55,0x43,0x32,0x21,0x1e,0xd6,0x55,0x44,0x32,0x21,0xed,0xcb,0xa9,0x70, 67 | 0x01,0xdb,0xa8,0x76,0x54,0x43,0x21,0x17,0x76,0x55,0x54,0x43,0x32,0x21,0x1e,0xdd, 68 | 0xc5,0x43,0x32,0x11,0xed,0xcb,0xa8,0x60,0x01,0xdb,0xa8,0x76,0x54,0x33,0x21,0xee, 69 | 0x66,0x55,0x54,0x33,0x22,0x11,0xed,0xdc,0xcb,0xb3,0x22,0x1e,0xdd,0xcb,0x98,0x60, 70 | 0x03,0xdb,0xa8,0x76,0x54,0x33,0x21,0xee,0xdc,0x55,0x44,0x33,0x22,0x1e,0xed,0xdc, 71 | 0xbb,0xaa,0x91,0x1e,0xdc,0xba,0x98,0x50,0x00,0x7b,0xa8,0x76,0x54,0x32,0x11,0xed, 72 | 0xdc,0xcc,0x43,0x32,0x21,0x1e,0xdd,0xcc,0xbb,0xa9,0x98,0x7d,0xdc,0xba,0x97,0x00, 73 | 0x00,0x85,0x38,0x76,0x54,0x32,0x1e,0xed,0xcc,0xcb,0xba,0x22,0x11,0xee,0xdc,0xcb, 74 | 0xba,0xa9,0x88,0x76,0x5b,0xa9,0x86,0x00,0x00,0xa5,0x31,0xe6,0x54,0x32,0x1e,0xdd, 75 | 0xcc,0xbb,0xaa,0x99,0x11,0xed,0xdc,0xcb,0xaa,0x99,0x87,0x66,0x54,0x39,0x74,0x00, 76 | 0x00,0x07,0x42,0xed,0xc4,0x31,0x1e,0xdc,0xcc,0xba,0xa9,0x98,0x87,0xdd,0xcc,0xbb, 77 | 0xa9,0x98,0x87,0x65,0x43,0x21,0x60,0x00,0x00,0x09,0x52,0xed,0xca,0x91,0xee,0xdc, 78 | 0xcb,0xba,0xa9,0x88,0x76,0x6c,0xcb,0xba,0xa9,0x88,0x76,0x55,0x43,0x2e,0xb0,0x00, 79 | 0x00,0x00,0x63,0x1d,0xca,0x98,0x7d,0xdc,0xcb,0xaa,0x99,0x88,0x76,0x65,0x4b,0xaa, 80 | 0x99,0x87,0x66,0x54,0x32,0x1d,0x00,0x00,0x00,0x00,0x04,0x1d,0xca,0x98,0x76,0xcc, 81 | 0xbb,0xa9,0x98,0x87,0x66,0x55,0x43,0x39,0x98,0x76,0x65,0x43,0x21,0xd0,0x00,0x00, 82 | 0x00,0x00,0x08,0x3e,0xca,0x98,0x76,0x55,0x4a,0xa9,0x88,0x76,0x65,0x54,0x33,0x22, 83 | 0x87,0x76,0x54,0x43,0x1e,0xc0,0x00,0x00,0x00,0x00,0x00,0xd1,0xcb,0x98,0x65,0x55, 84 | 0x43,0x29,0x87,0x66,0x55,0x44,0x32,0x21,0xee,0xd5,0x44,0x32,0xec,0x00,0x00,0x00, 85 | 0x00,0x00,0x00,0x0b,0x7b,0x97,0x65,0x54,0x32,0x21,0x76,0x65,0x54,0x33,0x22,0x1e, 86 | 0xed,0xcb,0xb3,0x2e,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xb5,0x27,0x65,0x54, 87 | 0x32,0x1e,0xdd,0x55,0x43,0x32,0x21,0xed,0xdc,0xba,0xa9,0xec,0x00,0x00,0x00,0x00, 88 | 0x00,0x00,0x00,0x00,0x0a,0x3e,0xc5,0x43,0x21,0xed,0xdc,0xbb,0x33,0x21,0x1e,0xdd, 89 | 0xcb,0xa9,0x87,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xcc,0xa2, 90 | 0x1e,0xdc,0xcb,0xaa,0x99,0x1e,0xdd,0xcb,0xba,0x98,0x60,0x00,0x00,0x00,0x00,0x00, 91 | 0x00,0x00,0x00,0x00,0x00,0x00,0xcb,0x98,0x6d,0xcb,0xaa,0x99,0x87,0x76,0xcc,0xba, 92 | 0x98,0x75,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x13, 93 | 0x33,0x39,0x98,0x87,0x66,0x54,0x43,0x98,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 94 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0xcc,0x55,0x54,0x43,0x32,0x1e,0xc0, 95 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 96 | 0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 97 | }; 98 | -------------------------------------------------------------------------------- /examples/ST7735_Mario_RRE/rre_mario2.h: -------------------------------------------------------------------------------- 1 | #ifndef __font_mario2_h__ 2 | #define __font_mario2_h__ 3 | 4 | /* 5 | *** Generated by rrefontgen *** 6 | Font: [mario2] 48x64 7 | Total chars: 4 (' ' to '#') 8 | Total rects: 421 * 3 bytes 9 | Total pixels: 2237 (982 overlapping) 10 | Total bytes: 1271 (1263 rects + 8 offs) 11 | Bitmap size: 1536 (48x64 * 4) (+4 opt) 12 | */ 13 | 14 | const unsigned char fontmario2_Rects[1263] PROGMEM = { 15 | 0x9e,0x68,0x02, 0x5d,0x67,0x02, 0xa1,0x2b,0x01, 0x2c,0x6f,0x00, 0xc9,0x29,0x00, 0x16,0x2c,0x03, 0xe4,0x2f,0x00, 0x5b,0x36,0x01, 0x23,0x2d,0x02, 0x8f,0x33,0x00, 0x9f,0xa5,0x00, 0x2d,0x00,0x01, 0x2b,0x0d,0x01, 0x6b,0x11,0x00, 0x53,0x1a,0x00, 0x54,0x23,0x00, 16 | 0x5c,0x29,0x00, 0x2d,0x2d,0x01, 0x25,0x2e,0x01, 0x60,0x2f,0x00, 0x61,0x30,0x00, 0x58,0x31,0x00, 0x62,0x31,0x00, 0x66,0x31,0x00, 0x59,0x33,0x00, 0x16,0x3d,0x01, 0x21,0x6a,0x00, 0x2a,0x01,0x00, 0x27,0x02,0x00, 0x2c,0x04,0x00, 0x22,0x05,0x00, 0x29,0x05,0x00, 17 | 0x21,0x06,0x00, 0x27,0x06,0x00, 0x24,0x08,0x00, 0x23,0x09,0x00, 0x1a,0x0d,0x00, 0x1f,0x0d,0x00, 0x1e,0x0e,0x00, 0x18,0x10,0x00, 0x1c,0x11,0x00, 0x1b,0x12,0x00, 0x2c,0x12,0x00, 0x16,0x13,0x00, 0x1a,0x14,0x00, 0x2c,0x14,0x00, 0x15,0x15,0x00, 0x2d,0x15,0x00, 18 | 0x19,0x16,0x00, 0x2c,0x16,0x00, 0x2e,0x17,0x00, 0x14,0x18,0x00, 0x18,0x18,0x00, 0x29,0x18,0x00, 0x2c,0x18,0x00, 0x27,0x19,0x00, 0x17,0x1a,0x00, 0x26,0x1a,0x00, 0x29,0x1a,0x00, 0x26,0x1c,0x00, 0x16,0x1d,0x00, 0x25,0x1d,0x00, 0x12,0x1e,0x00, 0x24,0x1e,0x00, 19 | 0x23,0x1f,0x00, 0x10,0x20,0x00, 0x15,0x20,0x00, 0x22,0x20,0x00, 0x2d,0x20,0x00, 0x0e,0x21,0x00, 0x21,0x21,0x00, 0x2a,0x21,0x00, 0x0d,0x22,0x00, 0x1e,0x22,0x00, 0x20,0x22,0x00, 0x27,0x22,0x00, 0x2b,0x22,0x00, 0x12,0x23,0x00, 0x1d,0x23,0x00, 0x29,0x23,0x00, 20 | 0x0b,0x24,0x00, 0x10,0x24,0x00, 0x25,0x24,0x00, 0x1c,0x25,0x00, 0x0a,0x26,0x00, 0x1e,0x26,0x00, 0x0d,0x27,0x00, 0x22,0x28,0x00, 0x12,0x2b,0x00, 0x25,0x2b,0x00, 0x23,0x2c,0x00, 0x27,0x2c,0x00, 0x0d,0x2d,0x00, 0x13,0x2d,0x00, 0x1b,0x2d,0x00, 0x0f,0x2e,0x00, 21 | 0x1c,0x2e,0x00, 0x0a,0x2f,0x00, 0x0e,0x2f,0x00, 0x25,0x2f,0x00, 0x10,0x30,0x00, 0x27,0x30,0x00, 0x0b,0x31,0x00, 0x16,0x31,0x00, 0x0c,0x32,0x00, 0x1a,0x32,0x00, 0x1f,0x32,0x00, 0x23,0x32,0x00, 0x1b,0x33,0x00, 0x22,0x34,0x00, 0x24,0x34,0x00, 0x1c,0x35,0x00, 22 | 0x0d,0x38,0x00, 0x10,0x38,0x00, 0x19,0x39,0x00, 0x0f,0x3c,0x00, 0x14,0x3c,0x00, 0x10,0x3d,0x00, 0x1e,0x3d,0x00, 0x21,0x3d,0x00, 0x11,0x3e,0x00, 0x22,0x3e,0x00, 0x1f,0x3f,0x00, 0x2f,0x1f,0x00, 0x8b,0x0e,0x01, 0x41,0x7a,0x00, 0x11,0x34,0x04, 0x19,0x14,0x03, 23 | 0x0c,0x3e,0x03, 0x00,0x03,0x02, 0x21,0x09,0x02, 0x11,0x11,0x02, 0x23,0x17,0x02, 0x8c,0x1e,0x00, 0x08,0x31,0x02, 0x04,0x00,0x01, 0x1b,0x06,0x01, 0x00,0x07,0x01, 0x46,0x07,0x00, 0x48,0x08,0x00, 0x0b,0x0b,0x01, 0x16,0x0d,0x01, 0x4d,0x0f,0x00, 0x0b,0x12,0x01, 24 | 0x19,0x12,0x01, 0x14,0x15,0x01, 0x53,0x1d,0x00, 0x10,0x1f,0x01, 0x11,0x23,0x01, 0x44,0x24,0x00, 0x54,0x3c,0x00, 0x08,0x3e,0x01, 0x08,0x01,0x00, 0x06,0x04,0x00, 0x09,0x06,0x00, 0x0e,0x07,0x00, 0x1f,0x07,0x00, 0x16,0x08,0x00, 0x20,0x08,0x00, 0x0b,0x09,0x00, 25 | 0x0f,0x09,0x00, 0x15,0x09,0x00, 0x09,0x0a,0x00, 0x14,0x0a,0x00, 0x12,0x0b,0x00, 0x1e,0x0b,0x00, 0x1b,0x0c,0x00, 0x20,0x0c,0x00, 0x19,0x0d,0x00, 0x1d,0x0d,0x00, 0x1e,0x0e,0x00, 0x13,0x0f,0x00, 0x2b,0x0f,0x00, 0x1d,0x10,0x00, 0x0a,0x11,0x00, 0x28,0x11,0x00, 26 | 0x08,0x13,0x00, 0x1c,0x13,0x00, 0x01,0x14,0x00, 0x05,0x14,0x00, 0x02,0x15,0x00, 0x29,0x15,0x00, 0x00,0x16,0x00, 0x11,0x16,0x00, 0x20,0x16,0x00, 0x0e,0x17,0x00, 0x0c,0x18,0x00, 0x20,0x18,0x00, 0x24,0x18,0x00, 0x0a,0x19,0x00, 0x28,0x19,0x00, 0x2c,0x19,0x00, 27 | 0x08,0x1a,0x00, 0x0b,0x1a,0x00, 0x1a,0x1a,0x00, 0x06,0x1b,0x00, 0x0f,0x1b,0x00, 0x18,0x1b,0x00, 0x03,0x1d,0x00, 0x01,0x1e,0x00, 0x25,0x1e,0x00, 0x29,0x1f,0x00, 0x14,0x20,0x00, 0x20,0x20,0x00, 0x00,0x21,0x00, 0x1a,0x21,0x00, 0x03,0x22,0x00, 0x1c,0x22,0x00, 28 | 0x19,0x23,0x00, 0x0d,0x24,0x00, 0x0f,0x24,0x00, 0x1e,0x24,0x00, 0x26,0x25,0x00, 0x00,0x26,0x00, 0x0c,0x26,0x00, 0x1d,0x27,0x00, 0x23,0x28,0x00, 0x01,0x29,0x00, 0x02,0x2a,0x00, 0x04,0x2a,0x00, 0x21,0x2a,0x00, 0x1e,0x2b,0x00, 0x02,0x2f,0x00, 0x1d,0x2f,0x00, 29 | 0x04,0x30,0x00, 0x20,0x30,0x00, 0x0c,0x32,0x00, 0x1a,0x32,0x00, 0x0e,0x33,0x00, 0x18,0x33,0x00, 0x1c,0x36,0x00, 0x1b,0x38,0x00, 0x1a,0x3a,0x00, 0x03,0x3d,0x00, 0x12,0x3d,0x00, 0x18,0x3d,0x00, 0x06,0x3e,0x00, 0x11,0x3e,0x00, 0x13,0x3e,0x00, 0x08,0x3f,0x00, 30 | 0x2c,0x11,0x00, 0xd3,0x26,0x4a, 0x9f,0xa6,0x02, 0x51,0xaf,0x0d, 0x19,0x61,0x04, 0x92,0x28,0x4a, 0x60,0xa4,0x02, 0x95,0x65,0x46, 0x1c,0x03,0x06, 0x03,0x56,0x00, 0x1f,0x71,0x00, 0x1a,0x20,0x02, 0x9e,0x21,0x00, 0x8f,0x30,0x00, 0x11,0xed,0x00, 0x6a,0x0f,0x00, 31 | 0x18,0x12,0x01, 0x5c,0x12,0x00, 0x09,0x13,0x01, 0x40,0x16,0x00, 0x4c,0x19,0x00, 0x58,0x23,0x00, 0x51,0x26,0x00, 0x4f,0x27,0x00, 0x66,0x2c,0x00, 0x13,0x3b,0x01, 0x17,0x01,0x00, 0x27,0x02,0x00, 0x29,0x03,0x00, 0x12,0x04,0x00, 0x19,0x04,0x00, 0x2b,0x04,0x00, 32 | 0x10,0x05,0x00, 0x16,0x05,0x00, 0x28,0x05,0x00, 0x29,0x06,0x00, 0x0d,0x07,0x00, 0x13,0x07,0x00, 0x24,0x07,0x00, 0x27,0x07,0x00, 0x09,0x08,0x00, 0x22,0x08,0x00, 0x26,0x08,0x00, 0x2a,0x08,0x00, 0x08,0x09,0x00, 0x13,0x09,0x00, 0x20,0x09,0x00, 0x24,0x09,0x00, 33 | 0x07,0x0a,0x00, 0x1e,0x0a,0x00, 0x22,0x0a,0x00, 0x17,0x0b,0x00, 0x20,0x0b,0x00, 0x1b,0x0c,0x00, 0x06,0x0d,0x00, 0x1a,0x0d,0x00, 0x0b,0x0e,0x00, 0x1e,0x0e,0x00, 0x08,0x0f,0x00, 0x19,0x0f,0x00, 0x1d,0x10,0x00, 0x02,0x11,0x00, 0x29,0x12,0x00, 0x01,0x13,0x00, 34 | 0x04,0x13,0x00, 0x19,0x13,0x00, 0x28,0x13,0x00, 0x0a,0x14,0x00, 0x1d,0x14,0x00, 0x27,0x14,0x00, 0x1f,0x15,0x00, 0x25,0x15,0x00, 0x07,0x16,0x00, 0x0d,0x17,0x00, 0x0f,0x17,0x00, 0x1b,0x17,0x00, 0x00,0x1a,0x00, 0x0e,0x1a,0x00, 0x1b,0x1b,0x00, 0x1a,0x1d,0x00, 35 | 0x19,0x1e,0x00, 0x15,0x20,0x00, 0x03,0x21,0x00, 0x13,0x21,0x00, 0x1f,0x22,0x00, 0x05,0x23,0x00, 0x0c,0x23,0x00, 0x14,0x23,0x00, 0x17,0x24,0x00, 0x08,0x25,0x00, 0x0b,0x26,0x00, 0x0c,0x27,0x00, 0x0b,0x2a,0x00, 0x10,0x2b,0x00, 0x27,0x2b,0x00, 0x0a,0x2d,0x00, 36 | 0x20,0x31,0x00, 0x25,0x31,0x00, 0x24,0x33,0x00, 0x23,0x34,0x00, 0x0a,0x38,0x00, 0x22,0x39,0x00, 0x0e,0x3c,0x00, 0x20,0x3c,0x00, 0x10,0x3d,0x00, 0x1d,0x3e,0x00, 0x14,0x3f,0x00, 0x1a,0x3f,0x00, 0x2d,0x05,0x01, 0x5b,0x0b,0x48, 0x98,0x98,0x07, 0x5a,0x8d,0x0c, 37 | 0x9c,0xca,0x09, 0xd7,0x1d,0x0a, 0x59,0xd6,0x05, 0x5e,0x49,0x44, 0x67,0x4d,0x00, 0x96,0x1f,0x0a, 0xc9,0x12,0x00, 0x99,0x0f,0x00, 0xab,0x10,0x00, 0x43,0x00,0x00, 0x47,0x00,0x00, 0x04,0x02,0x01, 0x4d,0x03,0x00, 0x1d,0x05,0x01, 0x22,0x05,0x01, 0x05,0x07,0x01, 38 | 0x4b,0x09,0x00, 0x66,0x0b,0x00, 0x69,0x10,0x00, 0x56,0x13,0x00, 0x64,0x19,0x00, 0x05,0x2b,0x01, 0x0a,0x00,0x00, 0x16,0x00,0x00, 0x09,0x01,0x00, 0x0e,0x02,0x00, 0x07,0x03,0x00, 0x06,0x05,0x00, 0x1b,0x06,0x00, 0x26,0x06,0x00, 0x09,0x07,0x00, 0x28,0x07,0x00, 39 | 0x0a,0x08,0x00, 0x29,0x08,0x00, 0x05,0x0a,0x00, 0x17,0x0a,0x00, 0x2b,0x0a,0x00, 0x06,0x0b,0x00, 0x2a,0x0e,0x00, 0x07,0x0f,0x00, 0x15,0x0f,0x00, 0x08,0x10,0x00, 0x12,0x10,0x00, 0x00,0x11,0x00, 0x14,0x14,0x00, 0x28,0x14,0x00, 0x00,0x15,0x00, 0x15,0x15,0x00, 40 | 0x2e,0x16,0x00, 0x01,0x17,0x00, 0x27,0x17,0x00, 0x06,0x18,0x00, 0x26,0x19,0x00, 0x2d,0x19,0x00, 0x25,0x1b,0x00, 0x2c,0x1b,0x00, 0x2a,0x1e,0x00, 0x29,0x1f,0x00, 0x17,0x22,0x00, 0x28,0x22,0x00, 0x27,0x24,0x00, 0x16,0x26,0x00, 0x26,0x26,0x00, 0x0f,0x27,0x00, 41 | 0x18,0x27,0x00, 0x24,0x28,0x00, 0x0b,0x29,0x00, 0x09,0x2a,0x00, 0xef,0x0f,0x00, 42 | }; 43 | 44 | const unsigned short fontmario2_CharOffs[5] PROGMEM = { 45 | 0x0000, 0x007c, 0x00f1, 0x015d, 0x01a5, 46 | }; 47 | 48 | RRE_Font rre_mario2 = { RRE_24B, 48,64, 0x20, 0x23, (const uint8_t*)fontmario2_Rects, (const uint16_t*)fontmario2_CharOffs }; 49 | 50 | #endif 51 | 52 | -------------------------------------------------------------------------------- /examples/ST7735_Bitmap/bitmap.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: mario24b.bmp 3 | // Dimensions : 32x32x16 (65536 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | const uint16_t mario[] PROGMEM = { 7 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x8430,0x4208,0x18a2, 8 | 0x1861,0x18e3,0x6b4d,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 9 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x9cf3,0x528a,0x2080,0xa1e1,0xf2c1, 10 | 0xd261,0xb221,0x38a0,0x6b4d,0xa514,0x9cf3,0x738e,0x7bcf,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 11 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x9cf3,0x39e7,0x5100,0xf2c1,0xfae2,0xa349, 12 | 0xe69a,0xdd33,0x92a7,0x18a2,0x8c71,0x2965,0x39e7,0x3186,0x3186,0x632c,0x9cf3,0xa514,0xa514,0xa514,0xa514,0xa514, 13 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x52aa,0x40c0,0xf2c2,0xfac2,0xd241,0xde9a, 14 | 0xf246,0xf225,0xc513,0x3060,0x1082,0x6b6d,0x8430,0x8430,0xbdd7,0x4a49,0x39e7,0xa514,0xa514,0xa514,0xa514,0xa514, 15 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x8c51,0x1840,0xe281,0xfaa2,0xfa82,0xda21,0xd618, 16 | 0xec0e,0xac2f,0x8a06,0x80e1,0x88e1,0x80c1,0x60c2,0x3985,0xffdf,0xffdf,0x2124,0x8c71,0xa514,0xa514,0xa514,0xa514, 17 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x39c7,0x8941,0xfa41,0xfa41,0xf221,0xe1e1,0x69a5, 18 | 0x9163,0xd981,0xf181,0xe161,0x88c1,0x4860,0x2020,0x0800,0xad55,0xdefb,0x4a49,0x7bef,0xa514,0xa514,0xa514,0xa514, 19 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x94b2,0x1040,0xe9e1,0xf1e1,0xf1e1,0xb141,0x78a1,0xd921, 20 | 0xe941,0xd941,0x8983,0x62a7,0x0000,0x0000,0x4228,0xd6ba,0xc638,0xef5d,0x10a2,0x9492,0xa514,0xa514,0xa514,0xa514, 21 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x6b6d,0x68a0,0xf1a1,0xf1a1,0x9901,0xa0a1,0xd901,0xd901, 22 | 0x9963,0xa42b,0xfeb1,0x5a86,0x39a4,0xe71c,0xffff,0xf7be,0xffdf,0x632c,0x4208,0xa514,0xa514,0xa514,0xa514,0xa514, 23 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x52aa,0x1061,0xb101,0xf161,0xa901,0x7081,0xa0c1,0x91c4,0xac2a, 24 | 0x5a66,0xfed1,0xfed2,0x2943,0x3163,0x5aa8,0x5aeb,0xad75,0x94b2,0x1082,0x9cd3,0xa514,0xa514,0xa514,0xa514,0xa514, 25 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x6b6d,0x4860,0xc901,0xe941,0xe141,0x40a0,0x7307,0xddef,0xfed2,0xfed2, 26 | 0x1081,0xcd8e,0xf691,0xbd0d,0xfed1,0xfe90,0xedee,0x39a5,0x18c3,0x4a69,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 27 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x4208,0xa8a1,0xd0e1,0xb0e1,0x6880,0x6101,0x4962,0xddef,0xfed2,0xfed2, 28 | 0x8ba9,0xddcf,0xfeb1,0xfed2,0xfed2,0xfeb1,0xfe4f,0x8368,0x52aa,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 29 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x4a69,0x7080,0x6225,0xcd4d,0xc52d,0x4942,0x48c0,0x30a1,0xf670,0x8369, 30 | 0xd58e,0xfed2,0xfed2,0xfed2,0xfeb1,0xfe90,0xfe4f,0x7b28,0x738e,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 31 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x9492,0x1082,0xf62f,0xedce,0xa46b,0xbd0d,0x38e1,0x6266,0xfe90,0x28a1, 32 | 0x1840,0x3963,0x6286,0xd58e,0xfe90,0xfe4f,0xac6b,0x18c2,0x94b2,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 33 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x3165,0xfe4f,0xfe4f,0xac8b,0xddcf,0xee30,0xf691,0xfe91,0x7285, 34 | 0x2040,0x3880,0x4080,0x2860,0x30e1,0x1881,0x0000,0x7bcf,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 35 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x528a,0x9c0a,0xf62f,0xc52d,0xfeb1,0xfed2,0xfed2,0xfed2,0xfe70, 36 | 0x51e4,0x2860,0x2860,0x3880,0x2860,0x1020,0x3186,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 37 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x9cf3,0x31a6,0x41c4,0x7328,0x6aa6,0x7b28,0xfed2,0xfed2,0xfed1, 38 | 0x82a6,0x5060,0x3061,0x49c4,0x5080,0x1061,0x8c71,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 39 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x9cf3,0x4228,0x0000,0x2020,0x1820,0x4a05,0xe5ef,0xfe4f, 40 | 0x9b68,0x78c1,0x93e9,0x79c4,0x3040,0x6b6d,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 41 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x9cf3,0x7bef,0x20e3,0x7881,0xd0e1,0xe921,0xf141,0x5880,0x40a2,0x5aca, 42 | 0x7b28,0x7245,0x28c4,0x0841,0x4a69,0xa514,0x8430,0x39e7,0x31a6,0x5aeb,0x9cf3,0xa514,0xa514,0xa514,0xa514,0xa514, 43 | 0xa514,0xa514,0xa514,0xa514,0xa514,0x9492,0x2104,0x4228,0x59c6,0x8881,0xe101,0xb0e1,0x7080,0xc101,0xa8e1,0x0a33, 44 | 0x09d0,0xa102,0x88c1,0x014b,0x0862,0x4208,0x1061,0x5961,0x6181,0x28a0,0x3186,0x9492,0xa514,0xa514,0xa514,0xa514, 45 | 0xa514,0xa514,0xa514,0xa514,0x9cf3,0x4208,0x630c,0xe73c,0xffff,0xd6ba,0x5124,0x5060,0xd0c1,0xe101,0xa8e1,0x0a12, 46 | 0x1a2f,0x3a4a,0x09f1,0x0a55,0x4aca,0x2920,0x4100,0x8201,0x8a02,0x8202,0x10a2,0x2945,0xa514,0xa514,0xa514,0xa514, 47 | 0xa514,0xa514,0xa514,0xa514,0x52aa,0x8430,0xe73c,0xffff,0xffff,0xf7be,0x5acb,0xa8c1,0xd0a1,0xe101,0x60e4,0x09af, 48 | 0xd62a,0xfec5,0x42a9,0x0a55,0x324a,0x8382,0x5121,0x81c1,0x81e1,0x79c1,0x73ae,0x1082,0xa514,0xa514,0xa514,0xa514, 49 | 0xa514,0xa514,0xa514,0xa514,0x2124,0xdedb,0x7bcf,0xa534,0xffff,0xffdf,0xa534,0x30a5,0x68a3,0x48c5,0x09f1,0x09af, 50 | 0xcd84,0xf644,0x3a69,0x0a55,0x09f1,0x2962,0x5120,0x79c1,0x81c1,0x5961,0x7bcf,0x31a6,0xa514,0xa514,0xa514,0xa514, 51 | 0xa514,0xa514,0xa514,0xa514,0x2945,0xef7d,0xef5d,0x73ae,0xffff,0xef5d,0xd69a,0x012b,0x0a34,0x0a55,0x0a55,0x0a55, 52 | 0x11cc,0x2a09,0x0a33,0x0a55,0x0a55,0x0041,0x6961,0x7181,0x79c1,0x7b4b,0x18e3,0x738e,0xa514,0xa514,0xa514,0xa514, 53 | 0xa514,0xa514,0xa514,0xa514,0x39e7,0xc618,0xffdf,0xf7be,0xe71c,0x528a,0x630c,0x00c9,0x01f3,0x0a34,0x0a54,0x0a55, 54 | 0x0a55,0x0a55,0x0a55,0x0a55,0x09ae,0x1840,0x6140,0x6940,0x5121,0x5acb,0x3186,0xa514,0xa514,0xa514,0xa514,0xa514, 55 | 0xa514,0xa514,0xa514,0xa514,0x8c71,0x2104,0x94b2,0xdefb,0xd69a,0x4a49,0x4900,0x48e0,0x0085,0x0190,0x01f3,0x01f3, 56 | 0x0214,0x0214,0x0214,0x0a12,0x0042,0x2060,0x6141,0x6140,0x730b,0x10a2,0x8c51,0xa514,0xa514,0xa514,0xa514,0xa514, 57 | 0xa514,0xa514,0xa514,0xa514,0xa514,0x94b2,0x528a,0x0861,0x3144,0x5120,0x6140,0x40c0,0x5100,0x012b,0x01f3,0x01f3, 58 | 0x01f3,0x01f2,0x014c,0x0062,0x630c,0x4a49,0x0020,0x0020,0x10a2,0x2965,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 59 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x8c71,0x39c7,0x6a46,0x79a1,0x7181,0x5100,0x4900,0x0841,0x0042,0x0063, 60 | 0x0042,0x10a2,0x4228,0x8c71,0xa514,0xa514,0x9cf3,0x9cf3,0x7bef,0x9cd3,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 61 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x5aeb,0x8430,0x5941,0x79a1,0x79a1,0x6981,0x4900,0x4228,0x9cf3,0x94b2, 62 | 0x9cd3,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 63 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x4a49,0x94b2,0x6981,0x81c1,0x81c1,0x79a1,0x1860,0x6b6d,0xa514,0xa514, 64 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 65 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x4a49,0x8410,0x71c1,0x8a02,0x8201,0x71a1,0x2124,0xa514,0xa514,0xa514, 66 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 67 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x8410,0x18e3,0x4101,0x8a22,0x8a22,0x30c0,0x4a69,0xa514,0xa514,0xa514, 68 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 69 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0x94b2,0x4208,0x1061,0x1082,0x4a49,0x9cf3,0xa514,0xa514,0xa514, 70 | 0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514,0xa514, 71 | }; 72 | 73 | -------------------------------------------------------------------------------- /examples/ST7735_ColorClock_4LCD/pat1.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: pat1.bmp 3 | // Dimensions : 32x32x16 (65536 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | 7 | const uint16_t pat1[0x0400+3] PROGMEM = { 8 | 32,32,16, // width,height,bits 9 | 0xad55,0x9492,0xad55,0x94b2,0xa534,0xa514,0xa514,0x9492,0xa514,0x94b2,0xad55,0xad75,0x9cd3,0x738e,0x6b6d,0x3186, 10 | 0x9cf3,0x8c51,0xb5b6,0x8c51,0xad55,0xad55,0xad55,0xad55,0xad75,0x9cf3,0xad55,0xad75,0x8c71,0x94b2,0xa534,0x31a6, 11 | 0x6b6d,0x8c51,0x632c,0x738e,0x630c,0x738e,0x73ae,0x7bef,0x73ae,0x738e,0x5acb,0x6b6d,0x738e,0x6b4d,0x8430,0x31a6, 12 | 0x6b6d,0x8c71,0x6b4d,0x8410,0x738e,0x7bef,0x8c71,0x9492,0x8c51,0x630c,0x5acb,0x6b4d,0x73ae,0x7bcf,0x7bef,0x39e7, 13 | 0x73ae,0x738e,0x632c,0x7bcf,0x5acb,0x632c,0x8410,0x7bef,0x7bcf,0x632c,0x6b6d,0x73ae,0x632c,0x73ae,0x7bcf,0x4228, 14 | 0x73ae,0x6b6d,0x630c,0x73ae,0x5aeb,0x630c,0x73ae,0x8410,0x8c51,0x738e,0x6b4d,0x7bcf,0x7bef,0x73ae,0x7bef,0x52aa, 15 | 0x9cd3,0x7bef,0x630c,0x8430,0x632c,0x73ae,0x632c,0x73ae,0x632c,0x632c,0x7bef,0x7bef,0x7bef,0x738e,0x8430,0x4a69, 16 | 0x8c51,0x8430,0x73ae,0x8c71,0x630c,0x6b6d,0x5aeb,0x7bef,0x630c,0x738e,0x8410,0x8410,0x7bcf,0x738e,0x7bcf,0x4a49, 17 | 0x8c71,0x73ae,0x8410,0x7bef,0x8430,0x7bcf,0x632c,0x73ae,0x738e,0x738e,0x73ae,0x632c,0x738e,0x630c,0x6b6d,0x4228, 18 | 0x73ae,0x5aeb,0x630c,0x8410,0x73ae,0x6b6d,0x632c,0x8430,0x632c,0x6b6d,0x7bcf,0x6b4d,0x6b4d,0x632c,0x632c,0x4228, 19 | 0x632c,0x630c,0x73ae,0x73ae,0x632c,0x73ae,0x632c,0x6b4d,0x5acb,0x52aa,0x528a,0x6b4d,0x632c,0x6b6d,0x5acb,0x2104, 20 | 0x6b4d,0x5aeb,0x52aa,0x6b6d,0x630c,0x630c,0x5aeb,0x738e,0x632c,0x630c,0x5acb,0x632c,0x632c,0x5aeb,0x630c,0x3186, 21 | 0x6b6d,0x632c,0x6b4d,0x5acb,0x5aeb,0x632c,0x632c,0x6b4d,0x632c,0x6b6d,0x632c,0x6b4d,0x528a,0x6b4d,0x52aa,0x3186, 22 | 0x632c,0x5aeb,0x6b6d,0x528a,0x5acb,0x6b4d,0x6b4d,0x738e,0x52aa,0x5acb,0x5aeb,0x5acb,0x5acb,0x6b4d,0x5aeb,0x2965, 23 | 0x3186,0x31a6,0x39c7,0x4a49,0x5acb,0x39e7,0x39e7,0x39c7,0x4208,0x4208,0x4208,0x39e7,0x31a6,0x3186,0x31a6,0x3186, 24 | 0x31a6,0x31a6,0x39c7,0x4a69,0x5aeb,0x4a49,0x4208,0x3186,0x31a6,0x4208,0x528a,0x4208,0x39e7,0x39c7,0x3186,0x31a6, 25 | 0x9cd3,0x8c71,0xb5b6,0x9cf3,0xb5b6,0xa534,0xbdd7,0x4208,0xbdd7,0x94b2,0x9cf3,0x7bef,0x8410,0x8430,0x8c71,0x8410, 26 | 0x9cd3,0x7bef,0xa514,0xa514,0xad55,0x8c51,0xa514,0x52aa,0xa534,0x94b2,0xa514,0x8c71,0x94b2,0x8430,0x8c51,0x8410, 27 | 0x73ae,0x73ae,0x73ae,0x8410,0x6b6d,0x7bef,0x738e,0x31a6,0x7bef,0x9cd3,0x73ae,0x738e,0x7bef,0x8c51,0x73ae,0x73ae, 28 | 0x8410,0x738e,0x738e,0x7bef,0x6b4d,0x738e,0x632c,0x3186,0x7bcf,0x94b2,0x738e,0x5aeb,0x8c51,0x8c71,0x7bcf,0x738e, 29 | 0x7bef,0x630c,0x632c,0x738e,0x632c,0x6b4d,0x7bef,0x528a,0x8c51,0x6b6d,0x738e,0x73ae,0x6b6d,0x6b4d,0x6b4d,0x5acb, 30 | 0x8410,0x632c,0x73ae,0x8410,0x73ae,0x7bcf,0x630c,0x4a49,0x8410,0x73ae,0x738e,0x7bef,0x630c,0x6b4d,0x6b4d,0x6b6d, 31 | 0x6b4d,0x632c,0x6b4d,0x6b6d,0x6b4d,0x52aa,0x4a69,0x39e7,0x94b2,0x73ae,0x738e,0x738e,0x632c,0x6b6d,0x630c,0x5aeb, 32 | 0x6b4d,0x6b6d,0x738e,0x738e,0x6b4d,0x6b4d,0x5aeb,0x4208,0x94b2,0x8410,0x73ae,0x73ae,0x6b4d,0x6b4d,0x738e,0x632c, 33 | 0x6b6d,0x738e,0x7bef,0x738e,0x632c,0x6b4d,0x528a,0x3186,0x7bef,0x632c,0x738e,0x73ae,0x5aeb,0x6b6d,0x630c,0x630c, 34 | 0x6b6d,0x7bef,0x73ae,0x6b6d,0x6b6d,0x632c,0x528a,0x4228,0x8c71,0x738e,0x7bcf,0x738e,0x6b6d,0x6b6d,0x6b4d,0x73ae, 35 | 0x6b6d,0x73ae,0x6b6d,0x7bcf,0x5aeb,0x52aa,0x5acb,0x31a6,0x738e,0x5acb,0x738e,0x5aeb,0x528a,0x632c,0x5acb,0x5acb, 36 | 0x6b4d,0x5acb,0x4a49,0x52aa,0x5acb,0x4a49,0x4a69,0x31a6,0x7bcf,0x632c,0x738e,0x630c,0x5acb,0x632c,0x6b4d,0x6b4d, 37 | 0x73ae,0x6b6d,0x5acb,0x630c,0x4208,0x4228,0x4a49,0x2945,0x5acb,0x630c,0x632c,0x5acb,0x4a69,0x5acb,0x528a,0x52aa, 38 | 0x630c,0x5acb,0x4a69,0x6b4d,0x39e7,0x5aeb,0x4228,0x4208,0x5aeb,0x52aa,0x6b4d,0x528a,0x4a49,0x5acb,0x6b4d,0x6b4d, 39 | 0x4228,0x528a,0x31a6,0x2965,0x3186,0x39c7,0x2965,0x31a6,0x3186,0x4228,0x31a6,0x39c7,0x39e7,0x3186,0x4208,0x31a6, 40 | 0x4208,0x4208,0x39c7,0x4208,0x31a6,0x39e7,0x3186,0x3186,0x31a6,0x39e7,0x31a6,0x31a6,0x528a,0x4208,0x4228,0x39c7, 41 | 0xa514,0x9cd3,0xc638,0x9cf3,0xbdf7,0x9cd3,0x9492,0x8c71,0x9cf3,0x9492,0x8c71,0x94b2,0x8c71,0x8c71,0x8c51,0x3186, 42 | 0xad75,0x8c51,0x9cf3,0xa534,0xad55,0x9cd3,0xa514,0x8c51,0x9cf3,0x7bef,0xa514,0xad55,0x8c71,0xad75,0x8430,0x31a6, 43 | 0x632c,0x8c71,0x632c,0x7bcf,0x73ae,0x7bef,0x7bcf,0x8430,0x73ae,0x73ae,0x6b6d,0x7bcf,0x7bcf,0x6b6d,0x738e,0x31a6, 44 | 0x738e,0x7bcf,0x73ae,0x7bef,0x7bef,0x738e,0x738e,0x7bef,0x7bcf,0x6b6d,0x4a69,0x632c,0x632c,0x6b6d,0x73ae,0x39c7, 45 | 0x8410,0x6b6d,0x632c,0x632c,0x5aeb,0x6b6d,0x6b4d,0x738e,0x73ae,0x632c,0x73ae,0x6b6d,0x6b6d,0x738e,0x7bef,0x4a69, 46 | 0x8430,0x6b4d,0x632c,0x632c,0x5aeb,0x5aeb,0x630c,0x630c,0x632c,0x5acb,0x528a,0x630c,0x5aeb,0x7bcf,0x7bef,0x39e7, 47 | 0x8c51,0x6b6d,0x632c,0x6b6d,0x630c,0x6b6d,0x5aeb,0x738e,0x52aa,0x6b4d,0x6b6d,0x7bcf,0x73ae,0x7bef,0x73ae,0x5acb, 48 | 0x8430,0x738e,0x632c,0x738e,0x632c,0x632c,0x52aa,0x738e,0x632c,0x630c,0x7bcf,0x7bef,0x6b4d,0x632c,0x7bef,0x4228, 49 | 0x8430,0x632c,0x6b4d,0x6b4d,0x738e,0x6b4d,0x5aeb,0x7bcf,0x5aeb,0x6b4d,0x5aeb,0x5aeb,0x630c,0x632c,0x5aeb,0x4a69, 50 | 0x738e,0x632c,0x6b6d,0x73ae,0x73ae,0x5aeb,0x52aa,0x73ae,0x5aeb,0x5acb,0x630c,0x630c,0x6b6d,0x5aeb,0x7bcf,0x4a49, 51 | 0x7bcf,0x52aa,0x6b4d,0x6b4d,0x5aeb,0x5aeb,0x632c,0x6b4d,0x632c,0x52aa,0x6b4d,0x5aeb,0x73ae,0x5aeb,0x5acb,0x2965, 52 | 0x738e,0x52aa,0x738e,0x6b6d,0x5aeb,0x5acb,0x630c,0x632c,0x528a,0x5acb,0x632c,0x632c,0x7bcf,0x630c,0x6b6d,0x2124, 53 | 0x6b6d,0x632c,0x73ae,0x528a,0x6b6d,0x6b4d,0x73ae,0x528a,0x4a49,0x5acb,0x5aeb,0x4a69,0x5acb,0x6b4d,0x52aa,0x3186, 54 | 0x5aeb,0x630c,0x6b4d,0x52aa,0x630c,0x5acb,0x5aeb,0x630c,0x4a49,0x5acb,0x5acb,0x5acb,0x52aa,0x738e,0x632c,0x31a6, 55 | 0x3186,0x39c7,0x31a6,0x4208,0x4a49,0x4208,0x4208,0x31a6,0x39c7,0x39e7,0x4228,0x39e7,0x4208,0x528a,0x31a6,0x31a6, 56 | 0x39c7,0x3186,0x31a6,0x4a49,0x4a49,0x3186,0x3186,0x3186,0x39c7,0x39e7,0x4a69,0x31a6,0x39e7,0x4a49,0x2965,0x3186, 57 | 0xb5b6,0xa514,0xad75,0xa514,0xad55,0x9492,0x7bef,0x52aa,0xa514,0x8430,0x94b2,0xad55,0xad55,0xb596,0xb596,0xa534, 58 | 0xad55,0x94b2,0xa514,0x94b2,0xad55,0xad55,0xbdf7,0x4208,0x6b6d,0xad55,0xbdf7,0xbdd7,0xc638,0xb5b6,0xb5b6,0xad55, 59 | 0x7bcf,0x8430,0x6b6d,0x8410,0x73ae,0x6b6d,0x5acb,0x31a6,0x8c51,0xa514,0x738e,0x6b4d,0x8c51,0x9492,0x73ae,0x632c, 60 | 0x632c,0x6b4d,0x738e,0x738e,0x738e,0x73ae,0x6b6d,0x4208,0x8430,0xa514,0x7bcf,0x6b6d,0x8c51,0x8c51,0x73ae,0x73ae, 61 | 0x8c71,0x6b6d,0x73ae,0x8c71,0x8430,0x73ae,0x630c,0x4228,0x9492,0x73ae,0x73ae,0x8c71,0x6b4d,0x6b6d,0x6b6d,0x630c, 62 | 0x738e,0x5acb,0x6b4d,0x6b4d,0x738e,0x6b4d,0x630c,0x4a49,0x8430,0x7bef,0x5aeb,0x6b4d,0x7bcf,0x630c,0x7bcf,0x738e, 63 | 0x738e,0x738e,0x8c51,0x8c71,0x8430,0x738e,0x52aa,0x528a,0x9cf3,0x8430,0x6b4d,0x738e,0x6b6d,0x738e,0x632c,0x5acb, 64 | 0x5aeb,0x6b4d,0x738e,0x73ae,0x6b4d,0x6b6d,0x5acb,0x52aa,0x9cd3,0x8c51,0x738e,0x630c,0x6b6d,0x6b6d,0x7bef,0x6b6d, 65 | 0x5aeb,0x8c51,0x73ae,0x738e,0x73ae,0x6b6d,0x5acb,0x4208,0x8410,0x5acb,0x7bcf,0x738e,0x6b4d,0x738e,0x5acb,0x5acb, 66 | 0x632c,0x632c,0x73ae,0x6b6d,0x6b4d,0x632c,0x52aa,0x4a49,0x7bcf,0x632c,0x738e,0x7bcf,0x738e,0x7bcf,0x630c,0x6b6d, 67 | 0x630c,0x632c,0x6b6d,0x73ae,0x528a,0x5acb,0x528a,0x4208,0x8410,0x5aeb,0x6b4d,0x630c,0x52aa,0x5aeb,0x52aa,0x52aa, 68 | 0x5aeb,0x630c,0x630c,0x6b6d,0x630c,0x52aa,0x5aeb,0x39e7,0x73ae,0x5aeb,0x738e,0x5aeb,0x5acb,0x630c,0x630c,0x528a, 69 | 0x632c,0x52aa,0x4a69,0x630c,0x4228,0x5acb,0x4228,0x2965,0x7bcf,0x5acb,0x630c,0x528a,0x4a49,0x528a,0x4a69,0x5acb, 70 | 0x5aeb,0x5acb,0x4a69,0x6b4d,0x4208,0x6b4d,0x4a69,0x39c7,0x630c,0x5acb,0x6b6d,0x5acb,0x4a49,0x52aa,0x528a,0x5aeb, 71 | 0x39e7,0x4208,0x39c7,0x39e7,0x4228,0x4208,0x31a6,0x4208,0x4a69,0x630c,0x528a,0x4208,0x52aa,0x39c7,0x4a69,0x3186, 72 | 0x39c7,0x4a69,0x2965,0x39c7,0x4208,0x31a6,0x39c7,0x2124,0x39e7,0x4a49,0x39e7,0x31a6,0x4208,0x39c7,0x39e7,0x3186, 73 | }; 74 | -------------------------------------------------------------------------------- /examples/ST7735_ColorClock_4LCD/pat2.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: pat2.bmp 3 | // Dimensions : 32x32x16 (65536 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | 7 | const uint16_t pat2[0x0400+3] PROGMEM = { 8 | 32,32,16, // width,height,bits 9 | 0x3829,0x1804,0x3809,0x500d,0x500d,0x500d,0x500d,0x480c,0x480c,0x500d,0x500d,0x584e,0x70d1,0x3809,0x1003,0x1803, 10 | 0x3809,0x400b,0x480b,0x500d,0x70f2,0x7913,0x8113,0x70b2,0x402b,0x1804,0x3007,0x500d,0x500d,0x500d,0x500d,0x8173, 11 | 0x508c,0x1804,0x3809,0x500e,0x500d,0x606f,0x608f,0x606e,0x502d,0x480c,0x500d,0x8133,0x68b0,0x2005,0x1003,0x1803, 12 | 0x1804,0x2005,0x2006,0x3008,0x588d,0x7111,0x70d1,0x482b,0x2005,0x3008,0x480c,0x582e,0x502d,0x584d,0x582e,0x70f2, 13 | 0x6930,0x1804,0x3008,0x602f,0x604f,0x500d,0x500d,0x500d,0x500d,0x582e,0x8954,0x70d2,0x2807,0x1804,0x2807,0x586e, 14 | 0x70f1,0x68f0,0x486b,0x2006,0x1804,0x2005,0x2806,0x2005,0x3809,0x500d,0x580e,0x502d,0x584d,0x584d,0x502d,0x604f, 15 | 0x81b3,0x1805,0x2807,0x582e,0x8934,0x8173,0x8174,0x8153,0x78d2,0x8955,0x78f2,0x2806,0x1805,0x3829,0x8153,0x9997, 16 | 0x9156,0x9155,0x99b6,0x8975,0x508d,0x1804,0x0801,0x1804,0x3007,0x400b,0x6870,0x6850,0x480c,0x482c,0x482c,0x606f, 17 | 0x8153,0x1805,0x1805,0x400a,0x602f,0x70b2,0x8935,0x9156,0x8935,0x6890,0x2806,0x2005,0x506d,0xa1f7,0xa218,0x78d3, 18 | 0x500e,0x500d,0x580e,0x70b1,0x9175,0x8133,0x508c,0x1804,0x1804,0x2806,0x3829,0x78f2,0x6050,0x480c,0x480c,0x606f, 19 | 0x586e,0x2005,0x1002,0x1804,0x2006,0x3008,0x3809,0x3809,0x3809,0x2005,0x2005,0x60ae,0xaa78,0x99d7,0x78f2,0x604f, 20 | 0x500d,0x500d,0x500d,0x500d,0x6870,0x7091,0x9155,0x7932,0x3809,0x1804,0x1804,0x4069,0x8974,0x78f2,0x604f,0x8133, 21 | 0x2807,0x1804,0x1805,0x2006,0x2006,0x2806,0x2806,0x1804,0x0802,0x1804,0x608f,0xaa79,0x99f6,0x7913,0x6871,0x500e, 22 | 0x500d,0x500d,0x500d,0x582e,0x7953,0x91f5,0x99f6,0x9196,0x8134,0x484b,0x1804,0x1803,0x486b,0x70d1,0x70d1,0x60ce, 23 | 0x1804,0x2806,0x50ad,0x7131,0x7972,0x7952,0x506c,0x3007,0x1804,0x402a,0x99d7,0x91f6,0x91f6,0x6891,0x600f,0x580e, 24 | 0x500d,0x500d,0x500d,0x500d,0x500d,0x68b0,0x7952,0x8153,0x91b5,0x91b5,0x502c,0x1804,0x2005,0x380a,0x400a,0x2806, 25 | 0x3829,0x502d,0x6870,0x78d2,0x91d6,0xaa78,0x9a17,0x406a,0x1804,0x70d1,0x99d7,0x8154,0x8974,0x6890,0x580e,0x500d, 26 | 0x500d,0x582e,0x582e,0x582e,0x582e,0x582e,0x500d,0x582e,0x6870,0x89b5,0x8113,0x3809,0x1003,0x1003,0x1804,0x2005, 27 | 0x6870,0x580e,0x500d,0x582e,0x70d1,0x99d6,0xaa58,0x48cb,0x2006,0x8955,0x9175,0x7913,0x7912,0x68b0,0x580e,0x500d, 28 | 0x480b,0x482c,0x482c,0x502d,0x500d,0x500d,0x500d,0x500d,0x604f,0x8133,0x8974,0x482c,0x1804,0x1805,0x486b,0x7131, 29 | 0x500d,0x500d,0x500d,0x580e,0x70b1,0x91d6,0xaa58,0x40aa,0x3008,0x99d6,0x8955,0x70b1,0x70d1,0x6090,0x500d,0x580e, 30 | 0x480c,0x480b,0x480c,0x480c,0x480c,0x500d,0x480c,0x480c,0x7111,0x7932,0x91f6,0x604f,0x2006,0x3808,0x7912,0x604f, 31 | 0x500d,0x502d,0x502d,0x582e,0x608f,0x7912,0xa258,0x3849,0x3008,0x99f6,0x8975,0x6891,0x606f,0x500d,0x500d,0x500d, 32 | 0x500c,0x584e,0x584e,0x584d,0x502d,0x500c,0x480c,0x502c,0x68d0,0x68b0,0x91d5,0x586e,0x2006,0x4029,0x608f,0x500d, 33 | 0x500d,0x500c,0x502d,0x586e,0x582e,0x6890,0x8995,0x3829,0x2807,0x8173,0x9195,0x7913,0x6870,0x480c,0x500d,0x500d, 34 | 0x502d,0x504d,0x584d,0x584e,0x482c,0x502d,0x502d,0x502d,0x500c,0x584e,0x7912,0x482c,0x1804,0x50cd,0x606f,0x500d, 35 | 0x500d,0x500d,0x582e,0x502d,0x580e,0x7091,0x8154,0x3008,0x2006,0x7932,0x8133,0x8995,0x6870,0x500c,0x500c,0x502d, 36 | 0x586e,0x586e,0x482c,0x400b,0x400b,0x480b,0x480c,0x500d,0x500d,0x500d,0x584f,0x3809,0x2006,0x60ef,0x580e,0x500d, 37 | 0x500d,0x500d,0x500d,0x500d,0x500d,0x606f,0x584d,0x2005,0x1804,0x70f2,0x70d2,0x68b1,0x6850,0x500d,0x480c,0x480c, 38 | 0x584e,0x586e,0x502d,0x480c,0x480c,0x500d,0x500d,0x500d,0x500d,0x500d,0x500d,0x2806,0x3048,0x7111,0x500d,0x500d, 39 | 0x500d,0x500d,0x500d,0x500c,0x480c,0x400a,0x2807,0x1003,0x1003,0x586e,0x8134,0x70d1,0x6891,0x580f,0x500d,0x500c, 40 | 0x480c,0x480c,0x502d,0x502d,0x502d,0x500d,0x500d,0x500d,0x500d,0x500d,0x400b,0x1804,0x3808,0x68b0,0x500d,0x500d, 41 | 0x400b,0x400a,0x3008,0x2807,0x2806,0x2005,0x1804,0x1804,0x1002,0x402a,0x9156,0x70b1,0x68d1,0x6030,0x500d,0x480b, 42 | 0x400b,0x400b,0x400b,0x400b,0x480c,0x480c,0x480c,0x480c,0x580e,0x500d,0x2807,0x0802,0x2005,0x3809,0x480b,0x480c, 43 | 0x2006,0x2005,0x1804,0x2005,0x3809,0x480c,0x586e,0x480b,0x2005,0x2005,0x70d1,0x8114,0x584e,0x604f,0x580f,0x500d, 44 | 0x500d,0x480c,0x480b,0x480b,0x500d,0x500d,0x582e,0x78f2,0x582e,0x3008,0x1003,0x1003,0x1804,0x2005,0x2005,0x2806, 45 | 0x3849,0x3809,0x402b,0x68f0,0x89b5,0x9a17,0xa257,0x91f6,0x484b,0x1804,0x3809,0x8134,0x7092,0x480c,0x500d,0x500d, 46 | 0x500d,0x500d,0x500d,0x500d,0x500d,0x70f1,0x91d6,0x68d0,0x2807,0x1804,0x3008,0x606f,0x70f1,0x58ae,0x508c,0x404a, 47 | 0x8974,0x8154,0x9195,0xa237,0x99f6,0x91b5,0x99d6,0xb2b9,0x9215,0x3829,0x1804,0x484b,0x80f4,0x7091,0x502d,0x580e, 48 | 0x582f,0x500d,0x580e,0x6030,0x8154,0x91d5,0x508d,0x2005,0x1002,0x3809,0x70b1,0x9a17,0x8134,0x8113,0x99f6,0x91b6, 49 | 0x582e,0x604f,0x7112,0x91b5,0x7913,0x70d2,0x8974,0xaa98,0xa217,0x81b3,0x2806,0x2005,0x586e,0x9176,0x8994,0x584f, 50 | 0x600f,0x6030,0x602f,0x8954,0x91b5,0x488b,0x1003,0x0802,0x1002,0x400b,0x99f7,0x8994,0x580e,0x582e,0x604f,0x602f, 51 | 0x500d,0x586e,0x608f,0x68d0,0x68d0,0x68b1,0x606f,0x9a16,0x91d6,0x99f7,0x6950,0x1805,0x2807,0x584e,0x8114,0x91b5, 52 | 0x7952,0x8133,0x91b5,0x7111,0x3028,0x1804,0x1805,0x2005,0x1003,0x3008,0x91f6,0x70b1,0x602f,0x604f,0x582e,0x500d, 53 | 0x500d,0x500d,0x500d,0x502d,0x68b0,0x502d,0x480c,0x70f1,0x8193,0x7913,0x8994,0x3849,0x1003,0x2006,0x482c,0x68d0, 54 | 0x7912,0x70d1,0x506c,0x2806,0x2806,0x3809,0x502c,0x400a,0x2806,0x1805,0x7131,0x70b1,0x604f,0x584f,0x582e,0x500d, 55 | 0x500d,0x500d,0x500d,0x500c,0x480c,0x480c,0x480c,0x584d,0x7972,0x68d0,0x9195,0x7932,0x2005,0x1002,0x1003,0x1804, 56 | 0x2005,0x1805,0x1804,0x3808,0x608f,0x78f3,0x91b6,0x8153,0x3809,0x2005,0x406b,0x606f,0x580e,0x604f,0x584e,0x500d, 57 | 0x500d,0x500d,0x500d,0x500d,0x582e,0x582e,0x500d,0x500d,0x70f1,0x68d0,0x7912,0x99b6,0x506d,0x1804,0x0802,0x1805, 58 | 0x2806,0x3008,0x60ae,0x8994,0x89b4,0x8193,0x6890,0x99f6,0x60af,0x2006,0x2806,0x480b,0x500d,0x580e,0x582e,0x500d, 59 | 0x500d,0x500d,0x500d,0x502d,0x586e,0x606f,0x606f,0x606f,0x584e,0x582e,0x586e,0x8954,0x8113,0x3008,0x1003,0x3007, 60 | 0x68b0,0x8133,0x70f1,0x586e,0x7111,0x68f0,0x500d,0x8153,0x8954,0x3008,0x1804,0x2006,0x3008,0x480b,0x500d,0x500d, 61 | 0x500d,0x500d,0x500c,0x480c,0x502d,0x584e,0x502d,0x502d,0x480c,0x480b,0x504d,0x70d1,0x8934,0x504d,0x2005,0x3008, 62 | 0x91b5,0x6870,0x480c,0x480c,0x502d,0x480c,0x480c,0x586e,0x7953,0x3829,0x1003,0x1003,0x1804,0x2005,0x400a,0x500d, 63 | 0x500d,0x500d,0x480c,0x480b,0x400b,0x482c,0x584d,0x480c,0x480c,0x500d,0x582e,0x608f,0x8113,0x68f0,0x2005,0x3027, 64 | 0x8193,0x502d,0x480b,0x480c,0x584e,0x582e,0x582e,0x500d,0x7912,0x484b,0x1003,0x508c,0x58ae,0x3007,0x2005,0x3809, 65 | 0x400a,0x500d,0x500d,0x500d,0x480c,0x480b,0x480c,0x480c,0x480c,0x500c,0x582e,0x60af,0x70d1,0x7111,0x2807,0x2806, 66 | 0x70f1,0x502d,0x480c,0x480c,0x504d,0x502d,0x500d,0x500d,0x70d1,0x484c,0x1804,0x58ad,0x6890,0x480c,0x3008,0x2005, 67 | 0x2006,0x480c,0x500d,0x500d,0x500d,0x480c,0x480c,0x480c,0x480c,0x480c,0x584e,0x60af,0x604f,0x70f1,0x3007,0x2806, 68 | 0x582f,0x500d,0x502e,0x584e,0x502d,0x480c,0x480c,0x480c,0x70b1,0x506d,0x2005,0x400b,0x500d,0x500d,0x400b,0x3007, 69 | 0x2006,0x3007,0x500d,0x500d,0x500d,0x500d,0x500d,0x500d,0x500d,0x500d,0x606f,0x584e,0x582e,0x68b0,0x3007,0x2806, 70 | 0x500d,0x500d,0x500d,0x500d,0x500d,0x500d,0x500d,0x500d,0x6871,0x482b,0x2005,0x400b,0x500d,0x500d,0x68d0,0x402a, 71 | 0x3007,0x2006,0x480b,0x500d,0x500d,0x500d,0x500d,0x500d,0x500d,0x586e,0x7111,0x500d,0x582e,0x586d,0x2005,0x2006, 72 | 0x500d,0x500d,0x500d,0x500d,0x582e,0x580e,0x500d,0x602f,0x6871,0x3007,0x2006,0x400b,0x500d,0x500d,0x6890,0x6930, 73 | }; 74 | -------------------------------------------------------------------------------- /examples/ST7735_ColorClock_4LCD/pat3.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: pat3.bmp 3 | // Dimensions : 32x32x16 (65536 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | 7 | const uint16_t pat3[0x0400+3] PROGMEM = { 8 | 32,32,16, // width,height,bits 9 | 0x5a03,0x9b67,0x7ae7,0x9b87,0x6223,0x9b87,0x7ae7,0x93e7,0x6203,0x8b27,0x8307,0x9b87,0x6203,0x8b27,0x7ac7,0x9b67, 10 | 0x5a03,0x9b67,0x7ae7,0x9b87,0x6223,0x9b87,0x7ae7,0x93e7,0x6203,0x8b27,0x8307,0x9b87,0x6203,0x8b27,0x7ac7,0x9b67, 11 | 0x59e3,0x9b67,0x8b27,0x9367,0x6224,0x9b67,0x72c6,0x93e7,0x6223,0x9347,0x8307,0x9b87,0x6204,0x8326,0x72a6,0x9b67, 12 | 0x59e3,0x9b67,0x8b27,0x9367,0x6224,0x9b67,0x72c6,0x93e7,0x6223,0x9347,0x8307,0x9b87,0x6204,0x8326,0x72a6,0x9b67, 13 | 0x59e3,0x9b67,0x8b27,0x9b87,0x6224,0x9b87,0x72c6,0x93e7,0x6224,0x9347,0x8b27,0x9b67,0x6204,0x8307,0x72a7,0x9b67, 14 | 0x59e3,0x9b67,0x8b27,0x9b87,0x6224,0x9b87,0x72c6,0x93e7,0x6224,0x9347,0x8b27,0x9b67,0x6204,0x8307,0x72a7,0x9b67, 15 | 0x59e3,0x9347,0x8b27,0x9bc7,0x6224,0x9b87,0x7ae6,0x9ba7,0x6203,0x9347,0x8b27,0x9b67,0x6204,0x8306,0x72a7,0x9b67, 16 | 0x59e3,0x9347,0x8b27,0x9bc7,0x6224,0x9b87,0x7ae6,0x9ba7,0x6203,0x9347,0x8b27,0x9b67,0x6204,0x8306,0x72a7,0x9b67, 17 | 0x59e3,0x8b47,0x8b27,0x9be7,0x5a04,0x9b87,0x7ae7,0x9b67,0x6203,0x9367,0x8b27,0x9b67,0x6204,0x8306,0x6aa7,0x9b87, 18 | 0x59e3,0x8b47,0x8b27,0x9be7,0x5a04,0x9b87,0x7ae7,0x9b67,0x6203,0x9367,0x8b27,0x9b67,0x6204,0x8306,0x6aa7,0x9b87, 19 | 0x59e4,0x8b87,0x93c7,0x9be7,0x5a04,0x9b87,0x8b27,0x9ba7,0x6203,0x9b87,0x8b07,0x9b87,0x6204,0x9347,0x72c7,0x9b87, 20 | 0x59e4,0x8b87,0x93c7,0x9be7,0x5a04,0x9b87,0x8b27,0x9ba7,0x6203,0x9b87,0x8b07,0x9b87,0x6204,0x9347,0x72c7,0x9b87, 21 | 0x59e4,0x59e3,0x7244,0x6224,0x59e4,0x9b87,0x8b27,0x9bc7,0x6203,0x9b67,0x8307,0x9ba7,0x5a04,0x9347,0x72c7,0x9b67, 22 | 0x59e4,0x59e3,0x7244,0x6224,0x59e4,0x9b87,0x8b27,0x9bc7,0x6203,0x9b67,0x8307,0x9ba7,0x5a04,0x9347,0x72c7,0x9b67, 23 | 0x59e4,0x9bc7,0x9bc7,0x8b47,0x5a04,0x9367,0x8b27,0x9b87,0x6203,0x9b87,0x8b27,0x9bc7,0x59e3,0x9347,0x7ae7,0x93a8, 24 | 0x59e4,0x9bc7,0x9bc7,0x8b47,0x5a04,0x9367,0x8b27,0x9b87,0x6203,0x9b87,0x8b27,0x9bc7,0x59e3,0x9347,0x7ae7,0x93a8, 25 | 0x59e4,0x9ba7,0x9b67,0x9367,0x59e4,0x8b27,0x8b07,0x9bc7,0x6203,0x9b67,0x9327,0x9ba7,0x5a03,0x9b67,0x8307,0x93a8, 26 | 0x59e4,0x9ba7,0x9b67,0x9367,0x59e4,0x8b27,0x8b07,0x9bc7,0x6203,0x9b67,0x9327,0x9ba7,0x5a03,0x9b67,0x8307,0x93a8, 27 | 0x59e4,0x9bc7,0x9347,0x9367,0x5a04,0x9b67,0x8b27,0x9bc7,0x6203,0x9b67,0x8b27,0x9bc7,0x5a03,0x9b67,0x8b27,0x93a8, 28 | 0x59e4,0x9bc7,0x9347,0x9367,0x5a04,0x9b67,0x8b27,0x9bc7,0x6203,0x9b67,0x8b27,0x9bc7,0x5a03,0x9b67,0x8b27,0x93a8, 29 | 0x59e3,0x9bc7,0x9347,0x9b67,0x6224,0x9b87,0x9347,0x9ba7,0x6203,0x9b67,0x8b27,0x93c8,0x5a03,0x9ba7,0x8b27,0x93a8, 30 | 0x59e3,0x9bc7,0x9347,0x9b67,0x6224,0x9b87,0x9347,0x9ba7,0x6203,0x9b67,0x8b27,0x93c8,0x5a03,0x9ba7,0x8b27,0x93a8, 31 | 0x6204,0x9ba7,0x9347,0x9b87,0x6224,0x9ba7,0x9b67,0x9bc7,0x6224,0x9b87,0x9327,0x93e8,0x5a03,0x9b87,0x8b27,0x93a8, 32 | 0x6204,0x9ba7,0x9347,0x9b87,0x6224,0x9ba7,0x9b67,0x9bc7,0x6224,0x9b87,0x9327,0x93e8,0x5a03,0x9b87,0x8b27,0x93a8, 33 | 0x5a04,0x9ba7,0x9347,0x9367,0x6224,0x9b87,0x9b67,0x9be7,0x6224,0x9b87,0x9347,0x93e8,0x59e3,0x9b87,0x8b27,0x9388, 34 | 0x5a04,0x9ba7,0x9347,0x9367,0x6224,0x9b87,0x9b67,0x9be7,0x6224,0x9b87,0x9347,0x93e8,0x59e3,0x9b87,0x8b27,0x9388, 35 | 0x6224,0x9ba7,0x9347,0x9367,0x6224,0x9b67,0x9b67,0x9be7,0x6224,0x9b87,0x9347,0x93c8,0x59e3,0x9b67,0x9347,0x93a8, 36 | 0x6224,0x9ba7,0x9347,0x9367,0x6224,0x9b67,0x9b67,0x9be7,0x6224,0x9b87,0x9347,0x93c8,0x59e3,0x9b67,0x9347,0x93a8, 37 | 0x6224,0x9b87,0x9327,0x9387,0x6224,0x9b67,0x9b67,0x9be7,0x6224,0x9b87,0x9347,0x93a8,0x59e4,0x7ae7,0x93c8,0x93c8, 38 | 0x6224,0x9b87,0x9327,0x9387,0x6224,0x9b67,0x9b67,0x9be7,0x6224,0x9b87,0x9347,0x93a8,0x59e4,0x7ae7,0x93c8,0x93c8, 39 | 0x6224,0x9b87,0x8b27,0x9b87,0x6224,0x9b87,0x9b67,0x9be7,0x5a04,0x9b67,0x9b67,0x93c8,0x5a04,0x6204,0x6224,0x5a04, 40 | 0x6224,0x9b87,0x8b27,0x9b87,0x6224,0x9b87,0x9b67,0x9be7,0x5a04,0x9b67,0x9b67,0x93c8,0x5a04,0x6204,0x6224,0x5a04, 41 | 0x6224,0x9b67,0x8b27,0x9b87,0x6224,0x9ba7,0x9b67,0x93e7,0x59e3,0x9b47,0x9b67,0x93a8,0x5a04,0x9b67,0x9367,0x9347, 42 | 0x6224,0x9b67,0x8b27,0x9b87,0x6224,0x9ba7,0x9b67,0x93e7,0x59e3,0x9b47,0x9b67,0x93a8,0x5a04,0x9b67,0x9367,0x9347, 43 | 0x6224,0x9b67,0x8b27,0x9b87,0x6204,0x9bc7,0x9b67,0x93e7,0x59e3,0x9367,0x9b87,0x93c8,0x6223,0x9347,0x7ac7,0x9ba7, 44 | 0x6224,0x9b67,0x8b27,0x9b87,0x6204,0x9bc7,0x9b67,0x93e7,0x59e3,0x9367,0x9b87,0x93c8,0x6223,0x9347,0x7ac7,0x9ba7, 45 | 0x6224,0x9367,0x8b27,0x9b87,0x6204,0x9ba7,0x9b67,0x93e7,0x59e3,0x9b67,0x9b87,0x93c8,0x6224,0x9b67,0x72c7,0x9b87, 46 | 0x6224,0x9367,0x8b27,0x9b87,0x6204,0x9ba7,0x9b67,0x93e7,0x59e3,0x9b67,0x9b87,0x93c8,0x6224,0x9b67,0x72c7,0x9b87, 47 | 0x6224,0x9367,0x8b27,0x9b67,0x6204,0x9ba7,0x9b87,0x93e7,0x5a03,0x9b67,0x9b67,0x93c8,0x6224,0x9b67,0x72c7,0x9b67, 48 | 0x6224,0x9367,0x8b27,0x9b67,0x6204,0x9ba7,0x9b87,0x93e7,0x5a03,0x9b67,0x9b67,0x93c8,0x6224,0x9b67,0x72c7,0x9b67, 49 | 0x6224,0x8b47,0x8b27,0x9b67,0x5a03,0x9b87,0x9b87,0x93e7,0x5a03,0x9b67,0x9b67,0x93a8,0x6224,0x9b67,0x72c7,0x9b67, 50 | 0x6224,0x8b47,0x8b27,0x9b67,0x5a03,0x9b87,0x9b87,0x93e7,0x5a03,0x9b67,0x9b67,0x93a8,0x6224,0x9b67,0x72c7,0x9b67, 51 | 0x6224,0x8b47,0x8307,0x9b67,0x5a03,0x9b87,0x9b87,0x93c7,0x5a03,0x9b87,0x9b67,0x93a8,0x5a04,0x9b67,0x72c7,0x9347, 52 | 0x6224,0x8b47,0x8307,0x9b67,0x5a03,0x9b87,0x9b87,0x93c7,0x5a03,0x9b87,0x9b67,0x93a8,0x5a04,0x9b67,0x72c7,0x9347, 53 | 0x6224,0x8b47,0x8307,0x9b67,0x6203,0x9b67,0x9b87,0x93e7,0x59e3,0x8b27,0x93c8,0x9388,0x5a04,0x9b67,0x7ae7,0x8b27, 54 | 0x6224,0x8b47,0x8307,0x9b67,0x6203,0x9b67,0x9b87,0x93e7,0x59e3,0x8b27,0x93c8,0x9388,0x5a04,0x9b67,0x7ae7,0x8b27, 55 | 0x6203,0x8b27,0x8307,0x9b87,0x6203,0x9b87,0x9b87,0x93e7,0x59e4,0x5a04,0x6a24,0x6a64,0x59e3,0x9347,0x7ae7,0x8b27, 56 | 0x6203,0x8b27,0x8307,0x9b87,0x6203,0x9b87,0x9b87,0x93e7,0x59e4,0x5a04,0x6a24,0x6a64,0x59e3,0x9347,0x7ae7,0x8b27, 57 | 0x6203,0x8b47,0x8307,0x9b87,0x6203,0x9ba7,0x9b87,0x93e7,0x59e3,0x9b87,0x9bc7,0x9b67,0x5a03,0x9347,0x7ae7,0x8b27, 58 | 0x6203,0x8b47,0x8307,0x9b87,0x6203,0x9ba7,0x9b87,0x93e7,0x59e3,0x9b87,0x9bc7,0x9b67,0x5a03,0x9347,0x7ae7,0x8b27, 59 | 0x6203,0x9347,0x8307,0x9b87,0x6204,0x9ba7,0x9b87,0x93e7,0x5a03,0x9ba7,0x9b67,0x9b67,0x5a03,0x9347,0x7ae7,0x9347, 60 | 0x6203,0x9347,0x8307,0x9b87,0x6204,0x9ba7,0x9b87,0x93e7,0x5a03,0x9ba7,0x9b67,0x9b67,0x5a03,0x9347,0x7ae7,0x9347, 61 | 0x6203,0x8b47,0x8307,0x9b87,0x5a04,0x9bc7,0x9ba7,0x93e7,0x59e3,0x9ba7,0x9347,0x9b87,0x59e3,0x8b27,0x7ae7,0x9367, 62 | 0x6203,0x8b47,0x8307,0x9b87,0x5a04,0x9bc7,0x9ba7,0x93e7,0x59e3,0x9ba7,0x9347,0x9b87,0x59e3,0x8b27,0x7ae7,0x9367, 63 | 0x6203,0x9347,0x7ae7,0x9b67,0x5a04,0x8b47,0x93c8,0x93c7,0x5a03,0x9ba7,0x9347,0x9b87,0x59e3,0x8326,0x8307,0x9b67, 64 | 0x6203,0x9347,0x7ae7,0x9b67,0x5a04,0x8b47,0x93c8,0x93c7,0x5a03,0x9ba7,0x9347,0x9b87,0x59e3,0x8326,0x8307,0x9b67, 65 | 0x6223,0x8b47,0x7ae7,0x9347,0x59e4,0x6224,0x6a44,0x6224,0x59e3,0x9367,0x8b27,0x9bc7,0x5a03,0x8306,0x8307,0x9b67, 66 | 0x6223,0x8b47,0x7ae7,0x9347,0x59e4,0x6224,0x6a44,0x6224,0x59e3,0x9367,0x8b27,0x9bc7,0x5a03,0x8306,0x8307,0x9b67, 67 | 0x6203,0x9347,0x7ae7,0x9327,0x5a04,0x9347,0x9b67,0x9be7,0x59e4,0x8b47,0x7ae7,0x9bc7,0x59e3,0x72c6,0x82e7,0x9b67, 68 | 0x6203,0x9347,0x7ae7,0x9327,0x5a04,0x9347,0x9b67,0x9be7,0x59e4,0x8b47,0x7ae7,0x9bc7,0x59e3,0x72c6,0x82e7,0x9b67, 69 | 0x6203,0x9b67,0x7ae7,0x9b67,0x6204,0x9bc7,0x9347,0x93e7,0x6203,0x8b47,0x7ae7,0x9bc7,0x6203,0x72c6,0x7ae7,0x9b67, 70 | 0x6203,0x9b67,0x7ae7,0x9b67,0x6204,0x9bc7,0x9347,0x93e7,0x6203,0x8b47,0x7ae7,0x9bc7,0x6203,0x72c6,0x7ae7,0x9b67, 71 | 0x6203,0x9b67,0x7ae7,0x9b67,0x6203,0x9b87,0x9347,0x93e7,0x6203,0x8307,0x82e6,0x9ba7,0x6203,0x72c6,0x7ae7,0x9b67, 72 | 0x6203,0x9b67,0x7ae7,0x9b67,0x6203,0x9b87,0x9347,0x93e7,0x6203,0x8307,0x82e6,0x9ba7,0x6203,0x72c6,0x7ae7,0x9b67, 73 | }; 74 | -------------------------------------------------------------------------------- /examples/ST7735_ColorClock_4LCD/pat4.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: pat4.bmp 3 | // Dimensions : 32x32x16 (65536 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | 7 | const uint16_t pat4[0x0400+3] PROGMEM = { 8 | 32,32,16, // width,height,bits 9 | 0xba42,0xba42,0xb221,0xba63,0x81a1,0x7b2b,0x94b2,0x8c30,0x834b,0x79e4,0x8181,0x8160,0x7920,0x7920,0x7940,0x7940, 10 | 0x7940,0x7940,0x7141,0x62a9,0x7bcf,0x8a45,0x8960,0xaa01,0xa1c0,0xa1e1,0xa9e1,0xb221,0xaa01,0x99c1,0xaa01,0xba22, 11 | 0x99a0,0xaa01,0xa9e1,0xcb05,0xb284,0x6982,0x8410,0x9cb2,0x8430,0x8c51,0x736d,0x6268,0x6206,0x6a26,0x6206,0x6268, 12 | 0x6288,0x5a48,0x6b2c,0x8c51,0x7bae,0x81a2,0xaa22,0xa9e1,0xa1e1,0xa9e1,0xa1e1,0x99c1,0x8980,0xaa01,0xb222,0xa1e1, 13 | 0x8960,0x8960,0xaa02,0xd346,0xc2e5,0x7141,0x738e,0x8c30,0x9471,0x94b2,0xa534,0x8431,0x6bae,0x7bef,0x8410,0x8410, 14 | 0x8c71,0x9492,0x9cd3,0x9492,0x93ee,0x89a1,0xbaa4,0xa1c0,0xa9e1,0x9180,0x91a0,0x8960,0x8980,0x99c1,0x91a0,0x8960, 15 | 0x8160,0x9180,0xaa22,0xc2a4,0xc2e5,0x7161,0x738d,0x9492,0x8c51,0x7bef,0x83ae,0x72a9,0x61c6,0x5123,0x5923,0x50e2, 16 | 0x5903,0x5944,0x7b4c,0x94d3,0x7ac8,0x99e2,0xc2a4,0xa1c0,0x91a0,0x8960,0x8960,0x8980,0x8980,0x8160,0x8160,0x8160, 17 | 0x91a0,0x99c1,0x99a0,0xc2a4,0xcb05,0x7161,0x6b4c,0x9492,0x8c0f,0x61e6,0x4880,0x6060,0x78a0,0x9121,0x9962,0x9921, 18 | 0xa141,0x70a0,0x48a1,0x7b6d,0x830a,0xa202,0xc2c4,0x9180,0x9180,0x8980,0x8980,0x8980,0x8980,0x8960,0x8160,0x8140, 19 | 0x99c1,0x8980,0xa1e1,0xd346,0xba83,0x6183,0x73cf,0x83ce,0x6164,0x4820,0x78c0,0x9921,0xb1c3,0xb1c3,0xa162,0xb9e4, 20 | 0xba04,0xa9c4,0x5040,0x51a6,0x832a,0x99e1,0xcae5,0x9180,0x9180,0x8980,0x8980,0x8980,0x8980,0x8160,0x7940,0x8980, 21 | 0x8960,0x8960,0xba63,0xc2e5,0x8160,0x62ca,0x83ae,0x5923,0x4840,0x9962,0xa982,0x80e0,0x8921,0x80c0,0xa1a3,0x8942, 22 | 0x8962,0xb205,0x5860,0x51a6,0x830a,0x99e1,0xc2c5,0x9180,0x9180,0x8980,0x8980,0x8980,0x8960,0x7940,0x7940,0x8160, 23 | 0x8160,0x99c1,0xc2e5,0x8980,0x61e5,0x734c,0x50c1,0x4840,0x9142,0xa9a3,0x68c1,0x70a0,0x70a0,0x9162,0x9163,0x6080, 24 | 0x9983,0xb225,0x60a0,0x51a6,0x832a,0x99c1,0xcae5,0x99a0,0x8980,0x8980,0x8980,0x8980,0x8160,0x7940,0x7940,0x8140, 25 | 0x9180,0xba83,0xaa22,0x50e0,0x5289,0x5984,0x4840,0x78e0,0x9142,0x58a0,0x5080,0x6080,0x70e1,0x8942,0x58a0,0x70a0, 26 | 0x9162,0xaa05,0x6080,0x4985,0x8309,0x99c1,0xcb06,0x99a0,0x9180,0x8980,0x8980,0x8980,0x8160,0x7940,0x7940,0x8160, 27 | 0xa201,0xcb05,0x79a2,0x5acb,0x6aaa,0x4860,0x5880,0x68a0,0x5880,0x5080,0x5880,0x5080,0x7101,0x68c1,0x5880,0x78c0, 28 | 0x8121,0x9983,0x4840,0x51e7,0x832b,0x99c1,0xcb06,0xa1e1,0x9180,0x8980,0x8980,0x8980,0x8160,0x8140,0x8140,0x8960, 29 | 0xb222,0xb284,0x6a87,0x83ef,0x50c1,0x5060,0x6080,0x5880,0x5880,0x5880,0x5880,0x5880,0x58a0,0x5880,0x5880,0x6080, 30 | 0x9142,0x70c1,0x4080,0x6b2c,0x83ad,0x89a1,0xcb05,0xbaa4,0x99e1,0x8960,0x8980,0x8980,0x8160,0x8160,0x8160,0x8980, 31 | 0xb243,0x91e2,0x6b0b,0x6a68,0x4820,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x70c0, 32 | 0x8942,0x4860,0x49c6,0x7c10,0x83ef,0x81e3,0xb263,0xc2c5,0x99c1,0x9180,0x8980,0x8980,0x8160,0x8160,0x8160,0x91a0, 33 | 0x99c1,0x7141,0x7bae,0x7289,0x4820,0x6080,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x60a0,0x80e0, 34 | 0x5880,0x4923,0x7bcf,0x8410,0x8410,0x7aea,0x91c1,0xc2e5,0xaa43,0x9180,0x9180,0x9180,0x8980,0x8160,0x8960,0xa1c1, 35 | 0x8960,0x6183,0x8c51,0x69c5,0x5860,0x60a0,0x6080,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x60a0,0x60a0, 36 | 0x4840,0x51e7,0x7bcf,0x7bcf,0x8c51,0x9471,0x79e3,0xaa43,0xcb06,0xa202,0x9180,0x99a0,0x91a0,0x9180,0x9180,0xa1c0, 37 | 0x7920,0x6a47,0x8410,0x58c1,0x88e0,0x78c0,0x80e1,0x7101,0x60a0,0x5880,0x5880,0x5880,0x5880,0x5880,0x5880,0x4860, 38 | 0x4880,0x5aaa,0x9492,0x8c51,0x73ae,0x7c10,0x8bad,0x89a1,0xd305,0xba84,0x99a0,0x9180,0x9180,0x9180,0x99a0,0x99a0, 39 | 0x6920,0x62eb,0x8c0f,0x60c1,0xa162,0x88e0,0x8121,0x7942,0x60c0,0x5080,0x58a0,0x60a0,0x5880,0x5880,0x5080,0x4840, 40 | 0x4124,0x8c92,0x9471,0x8c10,0x7bae,0x8c0f,0x8c30,0x6ac9,0x9a23,0xd2e5,0xc306,0xaa22,0xaa02,0xa1e1,0x99a0,0x99a0, 41 | 0x6b0b,0x7bef,0x83ce,0x60c1,0xa9a3,0x80e0,0x9163,0x8122,0x5880,0x5880,0x7922,0x70e1,0x5880,0x68a0,0x5060,0x40a1, 42 | 0x6b4d,0x9471,0x7a26,0x6921,0x7981,0x7141,0x6121,0x6aeb,0x736d,0x81e3,0xa222,0xaa63,0xb243,0xa202,0x9180,0x7940, 43 | 0x8c51,0x8c71,0x83ae,0x60c1,0xb1c4,0x9121,0x9983,0x68c0,0x5880,0x78e1,0x8922,0x6880,0x70a0,0x88e0,0x5860,0x5207, 44 | 0x8c92,0x7ac9,0x7920,0x9a44,0xaa84,0xa223,0x7961,0x6100,0x730b,0x6b4d,0x69e5,0x7140,0x7940,0x7940,0x7140,0x51c5, 45 | 0x8c71,0x9492,0x83cf,0x50a1,0x9142,0xa9a3,0xa162,0x8921,0x9983,0x9983,0x78c0,0x8101,0xa183,0x70a0,0x48a1,0x6b6d, 46 | 0x9451,0x81e3,0xaa64,0xa202,0xa1c1,0xaa22,0xbb07,0x91e3,0x6121,0x83ce,0x7bef,0x6b6d,0x6b2c,0x5aaa,0x62eb,0x7bcf, 47 | 0x8c51,0x8c30,0x8430,0x6a68,0x5880,0x9121,0xb9c4,0xb9c3,0xb9c3,0xb1a3,0xb9e4,0xc1e4,0x8901,0x4860,0x5a69,0x9cf3, 48 | 0x8b6b,0x89a1,0xaa63,0x9980,0x9180,0x8960,0x9a02,0xaaa5,0x9a24,0x7141,0x69c4,0x82ea,0x93ce,0x9451,0x9492,0x8c71, 49 | 0x94b2,0x83ef,0x8c51,0x8c51,0x6228,0x5060,0x70a0,0x8921,0x9122,0x8921,0x78c0,0x6880,0x4880,0x49c6,0x8c51,0x9cf3, 50 | 0x7aa8,0x9202,0xa223,0x8960,0x7120,0x7120,0x8140,0x8960,0xa243,0xaa84,0x8981,0x68c0,0x60c0,0x6941,0x7226,0x9c92, 51 | 0x8c51,0x8c30,0x8c30,0x8451,0x8451,0x7b6d,0x51a6,0x48e2,0x40e2,0x40c2,0x48e2,0x4123,0x5aaa,0x7bef,0x83ef,0x8431, 52 | 0x7ac9,0x91e2,0xa223,0x8140,0x8160,0x7120,0x7120,0x7940,0x7120,0x89a1,0x91e2,0x8981,0x7120,0x7120,0x58a0,0x6983, 53 | 0x5aaa,0x8410,0x8430,0x834b,0x8b0a,0x830a,0x8b4a,0x72a9,0x7b4c,0x6b2c,0x7bef,0x8410,0x8c92,0x9471,0x8410,0x8c71, 54 | 0x7aea,0x89a2,0xb2a5,0x8160,0x7920,0x7120,0x7120,0x7120,0x7120,0x7120,0x7120,0x7940,0x8140,0x8960,0x8981,0x60e0, 55 | 0x5269,0x634d,0x9c0f,0x89a1,0x99e2,0xa243,0xaa64,0xa264,0x9203,0x89e2,0x8a04,0x8a45,0x8b4b,0x8430,0x7bf0,0x9cd3, 56 | 0x9c91,0x7161,0x9a23,0xa223,0x7940,0x7120,0x7120,0x7120,0x7120,0x7120,0x7120,0x7120,0x7940,0x7940,0xa202,0x9a03, 57 | 0x528a,0x6b6d,0x82c8,0xa223,0xd346,0xcac4,0xcac4,0xcac4,0xcae4,0xc2a4,0xba42,0xba83,0xa202,0x8224,0x8bce,0x8430, 58 | 0x9cf3,0x72a8,0x6900,0x8160,0x8140,0x7940,0x7120,0x7120,0x7120,0x7120,0x7120,0x7120,0x7940,0x8140,0x99c1,0x9a02, 59 | 0x5269,0x6b4d,0x830a,0xaa64,0xd326,0xba21,0xa9e1,0x99a0,0x99a0,0x99c1,0xa1c1,0xa1e1,0xaa22,0xa202,0x8181,0x6a67, 60 | 0x83ef,0x94d3,0x6aea,0x6921,0x7100,0x8140,0x8160,0x8140,0x8140,0x8140,0x8160,0x8160,0x9180,0x99e2,0xb2a5,0x8181, 61 | 0x528a,0x7bef,0x8bef,0x9203,0xcb26,0xba42,0xa1e1,0x99c1,0x8960,0x8960,0x8960,0x8960,0x8980,0xaa01,0xa201,0x7100, 62 | 0x6982,0x8b8c,0x94b3,0x8c0f,0x69a3,0x68e0,0x8140,0x9180,0x99e2,0xa243,0xaa85,0xaaa5,0xaa64,0xaa84,0x9a03,0x6900, 63 | 0x83ef,0x8c30,0x8c51,0x82a8,0xaa43,0xcb05,0xa1a0,0x91a0,0x8980,0x8980,0x8980,0x8980,0x8980,0x9180,0xa1e1,0xa1c1, 64 | 0x8140,0x7120,0x82c8,0xa514,0x7bcf,0x6227,0x6121,0x6900,0x7120,0x7120,0x7120,0x7120,0x7120,0x6900,0x58e0,0x49c6, 65 | 0x8c71,0x94b2,0x8410,0x83ae,0x81a1,0xbaa4,0xb242,0x9180,0x8960,0x8980,0x8980,0x8980,0x8980,0x8980,0x9180,0x99a0, 66 | 0x99a0,0x8160,0x7900,0x8a87,0x9cf3,0x8430,0x738d,0x6248,0x59a5,0x51a5,0x5164,0x59e6,0x59e5,0x59e6,0x5a69,0x7bef, 67 | 0x8ac8,0x8bad,0x8430,0x8430,0x7b0a,0x89a1,0xaa22,0xa1e1,0x99a0,0x8980,0x8960,0x8960,0x8980,0x8980,0x9180,0x99a0, 68 | 0x99a0,0x99a0,0x8960,0x7960,0x83ad,0x8c51,0x9492,0x8451,0x83ce,0x7aa8,0x7205,0x7a46,0x7204,0x71e4,0x8a87,0x8aa7, 69 | 0x9980,0x91c1,0x8a87,0x8c0f,0x8cb3,0x7ae9,0x8140,0xa1c1,0xb201,0xa9e1,0x99a0,0x91a0,0x9180,0x9180,0x99a0,0x99a0, 70 | 0x99a0,0x99a0,0x9180,0x7920,0x7ac9,0x8472,0x9492,0x82c8,0x91e2,0xaa22,0xb263,0xb263,0xb284,0xb283,0xbaa4,0xaa01, 71 | 0xba21,0xb221,0xa9c0,0x89e2,0x836c,0x8430,0x72e9,0x7161,0x8980,0xb221,0xba21,0xba21,0xa9e1,0x9180,0x99a0,0x99a0, 72 | 0x99a0,0x99a0,0x8960,0x7940,0x5a89,0x8bce,0x8224,0x9180,0xb222,0xba63,0xb242,0xb222,0xb242,0xc283,0xc283,0xc262, 73 | }; 74 | -------------------------------------------------------------------------------- /examples/ST7735_ColorClock_4LCD/pat5.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: pat5.bmp 3 | // Dimensions : 32x32x16 (65536 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | 7 | const uint16_t pat5[0x0400+3] PROGMEM = { 8 | 32,32,16, // width,height,bits 9 | 0x7a43,0x8327,0x93ca,0x8bca,0x940b,0x9c0b,0x8348,0x5a04,0x61c2,0x9326,0x9ba7,0xa3a8,0xa3a7,0xa3a7,0xa3a8,0x9b87, 10 | 0x69e2,0x7b07,0x8ba9,0x9c2b,0x8bca,0x93ca,0x8b89,0x6244,0x9367,0xa3e8,0xa3e8,0x9b87,0xa3a8,0xa3c8,0xa3c8,0x7a43, 11 | 0x9b67,0x7223,0x8368,0x9c2b,0x9c2b,0x8348,0x5a24,0x8ba9,0x8ba9,0x61e2,0x9346,0xa3a7,0xa3c8,0xa3c8,0x9b87,0xa3c8, 12 | 0xa3a7,0x69e3,0x8b88,0x8ba9,0x8bc9,0x8bca,0x6265,0x7b27,0x49c3,0x9ba8,0xabe8,0xa3a8,0x9b87,0xa3c8,0xa3c8,0x9b87, 13 | 0x9b87,0x9b67,0x7203,0x8b68,0x7b28,0x5a04,0x8bc9,0x93ea,0x9c4b,0x8bca,0x61c2,0x9b66,0xa3c8,0xa3c8,0xa3a7,0xa3a8, 14 | 0xabe8,0x9ba7,0x6a03,0x8368,0x8bca,0x6265,0x8389,0x8368,0x8368,0x5a04,0x9b88,0xa3e8,0x9b87,0x9b87,0xa3c8,0xa3c8, 15 | 0xa3a7,0x9b87,0x9347,0x6a02,0x5a04,0x8ba9,0x9c0b,0xa44c,0x9c0b,0x9c0b,0x8bca,0x61c2,0x9346,0xa3a7,0xa3c8,0xa3a8, 16 | 0xa3a8,0xa3c8,0x9ba8,0x61e2,0x5a24,0x8368,0x8b89,0x7b48,0x7b28,0x8ba9,0x6244,0x9b88,0xa3c8,0x9b87,0x9b87,0xa3c8, 17 | 0xa3e8,0xa3a7,0x9326,0x6203,0x8b68,0x9c2b,0xa46c,0x93ea,0x940a,0x93ea,0x8bca,0x7202,0x69c2,0x9b67,0xa3a8,0xa3c8, 18 | 0xa3a7,0xa3a8,0x9b88,0x59e3,0x7b07,0x8bc9,0x8348,0x7b27,0x8bca,0x93ea,0x8ba9,0x69e2,0x9b87,0xa3e8,0x9b87,0x9b66, 19 | 0x9b87,0x9b67,0x6a23,0x8bca,0x9c2b,0xa46c,0x8b89,0x8389,0x93ca,0x8ba9,0x61c2,0x9346,0x9b67,0x69e2,0x9b67,0xa3a7, 20 | 0xa3c8,0x9367,0x6a03,0x8389,0x8ba9,0x93ca,0x8ba9,0x93ca,0x93ea,0x8bca,0x7a84,0x9b87,0x7a43,0xabe9,0xa3e8,0x9366, 21 | 0x82a4,0x6a03,0x93ca,0x9c0b,0xa46c,0x8368,0x8368,0x93ca,0x8bca,0x6a23,0x9b67,0x9b87,0xa3e8,0xabe9,0x7203,0x9346, 22 | 0x9b67,0x69e2,0x8b89,0x93ca,0x93ea,0x8ba9,0x93ca,0x93ca,0x8b89,0x6203,0x9b67,0xa3e8,0xa3e8,0x7a64,0xac09,0xa3c8, 23 | 0x61a2,0x8ba9,0x93ea,0x9c2c,0x93ca,0x8ba9,0x93ea,0x8307,0x61e3,0xa3c8,0xa3e8,0x9b87,0x9b87,0xb44a,0xac09,0x7203, 24 | 0x69e2,0x8b89,0x93ca,0x93ea,0x8ba9,0x93ca,0x93ea,0x8347,0x6203,0x9b87,0x9ba7,0xa3a7,0xa3e8,0xa3c8,0x82a4,0xa3a7, 25 | 0x7223,0x8b89,0x940a,0x93ea,0x93ea,0x93ea,0x8b89,0x5203,0x5982,0x9b87,0xabe8,0xa3e8,0x9b66,0xa3c8,0xb48b,0xa3e9, 26 | 0x7203,0x8ba9,0x93ea,0x8b89,0x93ca,0x93ea,0x8368,0x49c3,0x61e2,0xa3c8,0xa3c8,0xa3a8,0xa3c8,0xa3c8,0x9ba7,0x8ac4, 27 | 0x8284,0x8b68,0x8ba9,0x93ea,0x93ca,0x8389,0x5a04,0x8ba9,0x8368,0x59a2,0x9b67,0xac09,0xa3c8,0x9b87,0xa3c8,0xac4a, 28 | 0xa3c8,0x7a43,0x8368,0x8bc9,0x93ca,0x8388,0x51c3,0x8b89,0x93ea,0x6a03,0xa3a8,0xa3c8,0x9b87,0x9b67,0xa3a7,0x9b87, 29 | 0xa3a8,0x7223,0x8368,0x8b89,0x8368,0x5a24,0x93ca,0x93ca,0x93ea,0x8b89,0x61c2,0x9b87,0xac09,0xa3a7,0x9b67,0xa3c8, 30 | 0xa3c8,0x9ba7,0x7223,0x8b88,0x8b89,0x51c3,0x8368,0x9c0b,0x940b,0x8368,0x6a03,0xa3a7,0x9b87,0x9326,0x9b87,0x9b87, 31 | 0x9ba7,0x9b87,0x7203,0x7b07,0x5a03,0x8bca,0x93ca,0x93ea,0x7b48,0x8368,0x8348,0x59a2,0x9346,0xa3c8,0xa3a7,0x9b87, 32 | 0xa3c8,0xa3a7,0x9ba8,0x69e2,0x51c3,0x8389,0x9c2b,0x940b,0x8ba9,0x8ba9,0x8ba9,0x6a23,0x8b06,0xa3a7,0x9b87,0xa3a8, 33 | 0xabe9,0x9b87,0x9347,0x6203,0x8b89,0x93ea,0x8bca,0x7b28,0x8369,0x8ba9,0x8389,0x61c2,0x5981,0x9b87,0xa3c8,0x9ba7, 34 | 0xa3a7,0xa3c8,0x9346,0x59c2,0x7b07,0x9c2b,0x93ea,0x8b89,0x8ba9,0x93ea,0x93ca,0x69e2,0x7202,0xa3a7,0xa3c8,0xabe8, 35 | 0x9b87,0x9367,0x6203,0x9c0b,0x940b,0x8b89,0x7b07,0x8ba9,0x93ca,0x8389,0x61c2,0x8b26,0x8b05,0x61c2,0x9b67,0xa3c8, 36 | 0x9b87,0x9b67,0x61e2,0x8b89,0x93ea,0x93ca,0x8ba9,0x8bca,0x9c0b,0x93ea,0x61c2,0x8ae5,0x82a5,0x7203,0xa3a8,0xa3c8, 37 | 0x82c5,0x69e2,0x93ea,0x93ea,0x8ba9,0x8b89,0x8ba9,0x8ba9,0x8ba9,0x6a23,0x9b67,0x9b66,0x9b67,0x9b87,0x69e2,0x9ba7, 38 | 0x9b67,0x69e2,0x8b89,0x940a,0x93ca,0x8ba9,0x8bca,0x940b,0x93ea,0x59c2,0x9346,0x9b66,0x8b05,0x8ae5,0x7223,0xa3a8, 39 | 0x69e2,0x93ca,0x8bca,0x8ba9,0x940a,0x93ea,0x8ba9,0x8327,0x6203,0x9b87,0xa3c8,0x9b87,0x9366,0x9b87,0x9b87,0x6a02, 40 | 0x6a03,0x93c9,0x940a,0x8bca,0x8ba9,0x8bca,0x93ea,0x8b68,0x6a23,0x9367,0x9b87,0x9b87,0x9b87,0x9b87,0x9346,0x7223, 41 | 0x69e2,0x8b89,0x93ca,0x9c2b,0x9c0b,0x8ba9,0x8ba9,0x6244,0x6203,0x9ba7,0xa3e8,0xa3a8,0x9b87,0x9b66,0x9b87,0x9b66, 42 | 0x6a03,0x8b88,0x8ba9,0x93ca,0x93ea,0x8bca,0x8bca,0x5a04,0x6a23,0xa3c8,0xa3a7,0xa3a7,0xa3c8,0xa3e8,0xa3a7,0x7a64, 43 | 0x9346,0x69e2,0x8ba9,0x93ea,0x8ba9,0x8ba9,0x6244,0x93ea,0x8348,0x69e2,0xa3c8,0x9306,0x9b67,0x9b87,0x9b87,0x9326, 44 | 0x9346,0x6a03,0x8b88,0x93ea,0x93ca,0x8bc9,0x6244,0x8ba9,0x8389,0x7223,0xa3c8,0xa3a7,0xa3e8,0xac4a,0x9ba7,0x9b87, 45 | 0xac09,0x9346,0x69e2,0x8368,0x8ba9,0x5a44,0x9c4c,0xa46c,0x8ba9,0x8368,0x6a03,0xa3a8,0x8ae5,0x9b67,0x9b87,0x9346, 46 | 0x82e5,0x9b66,0x7203,0x8b68,0x93ca,0x5a24,0x8ba9,0x93ea,0x93ea,0x8b89,0x7223,0xa3a8,0xa3c8,0xac09,0xac4a,0x9b87, 47 | 0xb429,0xabe9,0x9346,0x61e2,0x5a24,0x9c4c,0xa46c,0x8ba9,0x93ea,0x93ca,0x8348,0x6a03,0x9b67,0x9326,0x9b66,0xa3a7, 48 | 0x8b06,0x82a5,0x9346,0x61c2,0x5a03,0x93ca,0x93ea,0x93ea,0x93ea,0x940b,0x8ba9,0x6a23,0x9346,0xa3c8,0xac2a,0xa3e9, 49 | 0xb42a,0xac09,0x9b87,0x6224,0x93ea,0xa46c,0x8ba9,0x93ca,0x93ea,0x93ca,0x8bc9,0x61c2,0x69e2,0x9b87,0x8b05,0x9b87, 50 | 0xa3a8,0x9346,0x8b26,0x61e3,0x8327,0x93ea,0x93ca,0x93ca,0x93ea,0x93ea,0x8389,0x6a02,0x7a23,0xa3c8,0xa3c8,0xac09, 51 | 0xac09,0xa3a8,0x7264,0x9c2b,0xa46c,0x8bca,0x93ea,0x93ea,0x8bca,0x8bc9,0x6a03,0x8b05,0x8b05,0x6a02,0x9b67,0x82c5, 52 | 0x9b87,0x9346,0x69e2,0x93ea,0x93ea,0x8ba9,0x8bc9,0x940a,0x93ea,0x8389,0x61e3,0x9346,0x9346,0x7a23,0xa3a8,0xabe8, 53 | 0x9346,0x8284,0x93ea,0x93ca,0x93ea,0x8b89,0x8369,0x93ca,0x93ca,0x6a23,0xa3c8,0xa3c8,0x9b87,0x9b67,0x7203,0x9326, 54 | 0x8ae5,0x61c2,0x93ea,0x93ea,0x8ba9,0x8ba9,0x940a,0x940a,0x8b89,0x59e3,0x9b87,0xa3c8,0x9b87,0x9b67,0x7223,0xa3a8, 55 | 0x69e2,0x93ea,0x8ba9,0x8ba9,0x8348,0x7b27,0x8ba9,0x8348,0x61e3,0x9367,0xa3c8,0xabe8,0xa3e8,0xa3a7,0x9b87,0x7223, 56 | 0x7223,0x93ea,0x93ca,0x8389,0x8ba9,0x93ca,0x93ea,0x7b48,0x59e3,0x9347,0x9ba7,0xb46b,0xa3e8,0xa3a7,0x9b67,0x7202, 57 | 0x69e2,0x8b68,0x8b89,0x8348,0x8348,0x8ba9,0x8ba9,0x5a03,0x61e2,0x9b67,0xa3c8,0xac09,0xabe9,0xabe8,0x9b87,0x9b67, 58 | 0x7a43,0x8b68,0x8389,0x8ba9,0x8bc9,0x8bc9,0x8ba9,0x5a04,0x61e3,0x9b87,0x9b87,0x9b87,0xb44b,0xa3a8,0x9ba7,0x7a64, 59 | 0x8b06,0x69e2,0x8348,0x8389,0x93ea,0x8b89,0x5a04,0x8b89,0x7b48,0x61e2,0xa3c8,0xb46b,0xac09,0xa3e8,0xa3c8,0x9b87, 60 | 0x9ba7,0x7243,0x8347,0x8ba9,0x8bc9,0x8ba9,0x5a24,0x8bca,0x8ba9,0x61e2,0x9b87,0x9b87,0x9b87,0xac2a,0x9ba7,0xa3a8, 61 | 0xabe8,0x8b06,0x69c2,0x8b89,0x8b89,0x5a04,0x8ba9,0x8ba9,0x8ba9,0x8368,0x69e2,0xa3c8,0xb48b,0xa3e8,0xa3e8,0xa3c8, 62 | 0x9b87,0x9b87,0x7223,0x8b68,0x8bca,0x6244,0x8ba9,0x93ea,0x8bca,0x8369,0x6a03,0xa3a8,0x9b87,0x9b87,0x9b66,0x9b87, 63 | 0xa3e8,0xabe9,0x8b05,0x61c2,0x5a04,0x93ea,0x8ba9,0x8389,0x8ba9,0x8ba9,0x7b48,0x61e2,0xa3e8,0xb46b,0xa3a8,0xa3c8, 64 | 0xabe8,0x9b87,0x9b87,0x69e2,0x6224,0x8ba9,0x93ea,0x93ea,0x93ca,0x940b,0x93a9,0x69e2,0x9346,0x9ba7,0x9325,0x9346, 65 | 0x9ba7,0xac09,0x9347,0x61e3,0x8b88,0x8bc9,0x8368,0x8ba9,0x8bca,0x8bc9,0x93ca,0x5982,0x69c2,0xac2a,0xac09,0x9b87, 66 | 0xac09,0xa3c8,0x9346,0x61c2,0x8327,0x93ca,0x93ea,0x93ea,0x940b,0x9c0b,0x9ba8,0x61c2,0x69e2,0xa3c8,0x9ba7,0x9326, 67 | 0xa3a7,0x9346,0x7243,0x93ea,0x8bca,0x8368,0x8389,0x8ba9,0x93ca,0x93ea,0x6a03,0x8b05,0x8ae5,0x69e2,0xac09,0xa3a7, 68 | 0xa3a7,0x9b67,0x6a03,0x93c9,0x93ea,0x93ea,0x93ea,0x940a,0x93ea,0x93c9,0x6a03,0x9347,0x8b06,0x7202,0xa3e8,0x9ba7, 69 | 0x8b05,0x7223,0x9c0a,0x8bca,0x8348,0x8388,0x8ba9,0x93ca,0x93ea,0x6203,0x9326,0x9b87,0x9b87,0x8b05,0x69c2,0xa3a8, 70 | 0x9b67,0x69e2,0x93c9,0x93ea,0x940b,0x940b,0x93ca,0x93ca,0x9bea,0x6a23,0x8b26,0xa3a8,0xa3c8,0x8b06,0x6a02,0xa3e8, 71 | 0x7243,0x9c0a,0x8bca,0x8368,0x8368,0x8ba9,0x93ea,0x8348,0x6203,0x9326,0x9b87,0x9b87,0x9b87,0xa3a7,0x8ae5,0x61a2, 72 | 0x7223,0x93c9,0x93ea,0x9c0b,0x9c2b,0x8ba9,0x8bca,0x93a9,0x6a23,0x8b26,0x9b87,0x9b87,0xa3a8,0xa3c8,0x8b05,0x7202, 73 | }; 74 | -------------------------------------------------------------------------------- /examples/ST7735_ColorClock_4LCD/pat6.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: pat6.bmp 3 | // Dimensions : 32x32x16 (65536 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | 7 | const uint16_t pat6[0x0400+3] PROGMEM = { 8 | 32,32,16, // width,height,bits 9 | 0xe590,0xe590,0xe5b0,0xd571,0xd532,0xd5b1,0xddd1,0xe5b0,0xe590,0xdd90,0xd591,0xddd0,0xddd0,0xde11,0xddf1,0xe590, 10 | 0xe590,0xe590,0xe5b0,0xd571,0xd532,0xd5b1,0xddd1,0xe5b0,0xe590,0xdd90,0xd591,0xddd0,0xddd0,0xde11,0xddf1,0xe590, 11 | 0x9307,0x9b29,0x9329,0xa369,0xc50e,0x8ac9,0x8ac8,0x9b4a,0x9b4a,0x9309,0x9309,0xa36a,0xe590,0x9b4a,0x9309,0x8288, 12 | 0x9307,0x9b29,0x9329,0xa369,0xc50e,0x8ac9,0x8ac8,0x9b4a,0x9b4a,0x9309,0x9309,0xa36a,0xe590,0x9b4a,0x9309,0x8288, 13 | 0x9b4a,0x9b29,0x9b4a,0x9b29,0xd590,0x8288,0x930a,0x932a,0x9b4a,0x9b4a,0x9b2a,0x92c8,0xcccd,0x7a68,0x930a,0x9b4a, 14 | 0x930a,0x92e8,0x9b4a,0x9b29,0xd590,0x8288,0x930a,0x932a,0x9b4a,0x9b4a,0x9b2a,0x92c8,0xcccd,0x7a68,0x82c9,0x9b6a, 15 | 0x932a,0x932a,0x9b49,0x9349,0xd5b1,0x8ac8,0x92e9,0x930a,0x930a,0x8b09,0xa38c,0x8ac9,0xd590,0x9308,0x9b4a,0x932a, 16 | 0x8b09,0x82c9,0x9b49,0x9349,0xd5b1,0x8ac8,0x92e9,0x930a,0x930a,0x8b09,0xa38c,0x8ac9,0xd590,0x9308,0x9b4a,0x932a, 17 | 0xd532,0xd512,0xd572,0xd5f1,0xd5d1,0xd510,0xd512,0xccd1,0xd511,0xccd0,0xd4f1,0xd551,0xd5b1,0xd5f1,0xcd6f,0xd591, 18 | 0xd532,0xd512,0xd572,0xd5f1,0xd5d1,0xd510,0xd512,0xccd1,0xd511,0xccd0,0xd4f1,0xd551,0xd5b1,0xd5f1,0xcd6f,0xd591, 19 | 0xe590,0xa38b,0x9307,0x9309,0x9b4a,0x9b49,0xa38b,0x9307,0xe590,0xa36a,0x9308,0x9308,0x9308,0x9308,0xa36a,0xa36a, 20 | 0xe590,0xa38b,0x9307,0x9309,0x9b4a,0x9b49,0xa38b,0x9307,0xe590,0xa36a,0x9308,0x9308,0x9308,0x9308,0xa36a,0xa36a, 21 | 0xddd0,0xa36a,0x8ac7,0x8287,0x9308,0xa36a,0xa36a,0x8ae9,0xdd70,0x9b28,0x9308,0x9b29,0x9b4a,0x9309,0x82c9,0x9b49, 22 | 0xddd0,0xa36a,0x8ac7,0x8287,0x9308,0xa36a,0xa36a,0x8ae9,0xdd70,0x9b28,0x9308,0x9b29,0x9b4a,0x9309,0x82c9,0x9b49, 23 | 0xd5b1,0x82c9,0x9b28,0x8ae8,0x9309,0x9b29,0x9308,0x936b,0xde11,0x8b4a,0x932a,0x7ac9,0x930a,0x92e8,0x9b28,0x8b4b, 24 | 0xd5b1,0x82c9,0x9b28,0x8ae8,0x9309,0x9b29,0x9308,0x936b,0xde11,0x8b4a,0x932a,0x7ac9,0x930a,0x92e8,0x9b28,0x8b4b, 25 | 0xddb1,0xe590,0xd631,0xe590,0xdd31,0xde31,0xccd1,0xd610,0xd631,0xd591,0xd571,0xdd90,0xddb0,0xddb1,0xdd90,0xddb1, 26 | 0xddb1,0xe590,0xd631,0xe590,0xdd31,0xde31,0xccd1,0xd610,0xd631,0xd591,0xd571,0xdd90,0xddb0,0xddb1,0xdd90,0xddb1, 27 | 0x9b29,0x9b28,0x9309,0x9308,0xdd6f,0x9309,0x8288,0x9309,0x9309,0x9308,0xa38b,0xa38b,0xd4f1,0x9b29,0x9309,0x9308, 28 | 0x9b29,0x9b28,0x9309,0x9308,0xdd6f,0x9309,0x8288,0x9309,0x9309,0x9308,0xa38b,0xa38b,0xd4f1,0x9b29,0x9309,0x9308, 29 | 0x9b4a,0x9b29,0x8ae8,0x9309,0xddf0,0x934a,0x8ac9,0xa36a,0x9308,0x9b49,0x9307,0xa36a,0xe590,0x9b29,0xa36a,0x9309, 30 | 0x9b4a,0x9b29,0x8ae8,0x9309,0xddf0,0x934a,0x8ac9,0xa36a,0x9308,0x9b49,0x9307,0xa36a,0xe590,0x9b29,0xa36a,0x9309, 31 | 0xa38b,0x82c9,0x9309,0x8b0a,0xddd0,0x8b0a,0x8ae9,0x8ae8,0x9b49,0x9307,0x9307,0x7aaa,0xe590,0x7aaa,0x9b4a,0x932a, 32 | 0xa38b,0x82c9,0x9309,0x8b0a,0xddd0,0x8b0a,0x8ae9,0x8ae8,0x9b49,0x9307,0x9307,0x7aaa,0xe590,0x7aaa,0x9b4a,0x932a, 33 | 0xd512,0xd512,0xe5b0,0xd5f1,0xd5f1,0xe5b0,0xd5d0,0xd511,0xddf1,0xde11,0xe590,0xd631,0xd631,0xd631,0xd631,0xd512, 34 | 0xd512,0xd512,0xe5b0,0xd5f1,0xd5f1,0xe5b0,0xd5d0,0xd511,0xddf1,0xde11,0xe590,0xd631,0xd631,0xd631,0xd631,0xd512, 35 | 0xe590,0xa38b,0x9b2a,0x8287,0x92e7,0x9307,0x8aea,0x9b8b,0xcd50,0x8b0a,0x8aea,0x8ae9,0x9309,0x92e8,0x9b2a,0x9b4a, 36 | 0xe590,0xa38b,0x9b2a,0x8287,0x92e7,0x9307,0x8aea,0x9b8b,0xcd50,0x8b0a,0x8aea,0x8ae9,0x9309,0x92e8,0x9b2a,0x9b4a, 37 | 0xccce,0xa36a,0x9307,0x9b08,0x9b28,0x92e9,0x82ea,0x8b0a,0xc4cf,0x8b09,0x82c9,0x9309,0x8b0a,0x930a,0x8ae9,0x8ae9, 38 | 0xccce,0xa36a,0x9307,0x9b08,0x9b28,0x92e9,0x82ea,0x8b0a,0xc4cf,0x8b09,0x82c9,0x9309,0x8b0a,0x930a,0x8ae9,0x8ae9, 39 | 0xe590,0x7aaa,0x9b08,0x8ae8,0xa36a,0x9b4a,0x9b29,0x7aa9,0xe590,0x82c9,0x8b09,0x9b4a,0x932a,0x8aea,0x82ca,0x82c9, 40 | 0xe590,0x7aaa,0x9b08,0x8ae8,0xa36a,0x9b4a,0x9b29,0x7aa9,0xe590,0x82c9,0x8b09,0x9b4a,0x932a,0x8aea,0x82ca,0x82c9, 41 | 0xe590,0xe590,0xe5b0,0xd571,0xd532,0xd5b1,0xddd1,0xe5b0,0xe590,0xdd90,0xd591,0xddd0,0xddd0,0xde11,0xddf1,0xe590, 42 | 0xe590,0xe590,0xe5b0,0xd571,0xd532,0xd5b1,0xddd1,0xe5b0,0xe590,0xdd90,0xd591,0xddd0,0xddd0,0xde11,0xddf1,0xe590, 43 | 0x9307,0x9b29,0x9329,0xa369,0xc50e,0x8ac9,0x8ac8,0x9b4a,0x9b4a,0x9309,0x9309,0xa36a,0xe590,0x9b4a,0x9309,0x8288, 44 | 0x9307,0x9b29,0x9329,0xa369,0xc50e,0x8ac9,0x8ac8,0x9b4a,0x9b4a,0x9309,0x9309,0xa36a,0xe590,0x9b4a,0x9309,0x8288, 45 | 0x9b4a,0x9b29,0x9b4a,0x9b29,0xd590,0x8288,0x930a,0x932a,0x9b4a,0x9b4a,0x9b2a,0x92c8,0xcccd,0x7a68,0x930a,0x9b4a, 46 | 0x930a,0x92e8,0x9b4a,0x9b29,0xd590,0x8288,0x930a,0x932a,0x9b4a,0x9b4a,0x9b2a,0x92c8,0xcccd,0x7a68,0x82c9,0x9b6a, 47 | 0x932a,0x932a,0x9b49,0x9349,0xd5b1,0x8ac8,0x92e9,0x930a,0x930a,0x8b09,0xa38c,0x8ac9,0xd590,0x9308,0x9b4a,0x932a, 48 | 0x8b09,0x82c9,0x9b49,0x9349,0xd5b1,0x8ac8,0x92e9,0x930a,0x930a,0x8b09,0xa38c,0x8ac9,0xd590,0x9308,0x9b4a,0x932a, 49 | 0xd532,0xd512,0xd572,0xd5f1,0xd5d1,0xd510,0xd512,0xccd1,0xd511,0xccd0,0xd4f1,0xd551,0xd5b1,0xd5f1,0xcd6f,0xd591, 50 | 0xd532,0xd512,0xd572,0xd5f1,0xd5d1,0xd510,0xd512,0xccd1,0xd511,0xccd0,0xd4f1,0xd551,0xd5b1,0xd5f1,0xcd6f,0xd591, 51 | 0xe590,0xa38b,0x9307,0x9309,0x9b4a,0x9b49,0xa38b,0x9307,0xe590,0xa36a,0x9308,0x9308,0x9308,0x9308,0xa36a,0xa36a, 52 | 0xe590,0xa38b,0x9307,0x9309,0x9b4a,0x9b49,0xa38b,0x9307,0xe590,0xa36a,0x9308,0x9308,0x9308,0x9308,0xa36a,0xa36a, 53 | 0xddd0,0xa36a,0x8ac7,0x8287,0x9308,0xa36a,0xa36a,0x8ae9,0xdd70,0x9b28,0x9308,0x9b29,0x9b4a,0x9309,0x82c9,0x9b49, 54 | 0xddd0,0xa36a,0x8ac7,0x8287,0x9308,0xa36a,0xa36a,0x8ae9,0xdd70,0x9b28,0x9308,0x9b29,0x9b4a,0x9309,0x82c9,0x9b49, 55 | 0xd5b1,0x82c9,0x9b28,0x8ae8,0x9309,0x9b29,0x9308,0x936b,0xde11,0x8b4a,0x932a,0x7ac9,0x930a,0x92e8,0x9b28,0x8b4b, 56 | 0xd5b1,0x82c9,0x9b28,0x8ae8,0x9309,0x9b29,0x9308,0x936b,0xde11,0x8b4a,0x932a,0x7ac9,0x930a,0x92e8,0x9b28,0x8b4b, 57 | 0xddb1,0xe590,0xd631,0xe590,0xdd31,0xde31,0xccd1,0xd610,0xd631,0xd591,0xd571,0xdd90,0xddb0,0xddb1,0xdd90,0xddb1, 58 | 0xddb1,0xe590,0xd631,0xe590,0xdd31,0xde31,0xccd1,0xd610,0xd631,0xd591,0xd571,0xdd90,0xddb0,0xddb1,0xdd90,0xddb1, 59 | 0x9b29,0x9b28,0x9309,0x9308,0xdd6f,0x9309,0x8288,0x9309,0x9309,0x9308,0xa38b,0xa38b,0xd4f1,0x9b29,0x9309,0x9308, 60 | 0x9b29,0x9b28,0x9309,0x9308,0xdd6f,0x9309,0x8288,0x9309,0x9309,0x9308,0xa38b,0xa38b,0xd4f1,0x9b29,0x9309,0x9308, 61 | 0x9b4a,0x9b29,0x8ae8,0x9309,0xddf0,0x934a,0x8ac9,0xa36a,0x9308,0x9b49,0x9307,0xa36a,0xe590,0x9b29,0xa36a,0x9309, 62 | 0x9b4a,0x9b29,0x8ae8,0x9309,0xddf0,0x934a,0x8ac9,0xa36a,0x9308,0x9b49,0x9307,0xa36a,0xe590,0x9b29,0xa36a,0x9309, 63 | 0xa38b,0x82c9,0x9309,0x8b0a,0xddd0,0x8b0a,0x8ae9,0x8ae8,0x9b49,0x9307,0x9307,0x7aaa,0xe590,0x7aaa,0x9b4a,0x932a, 64 | 0xa38b,0x82c9,0x9309,0x8b0a,0xddd0,0x8b0a,0x8ae9,0x8ae8,0x9b49,0x9307,0x9307,0x7aaa,0xe590,0x7aaa,0x9b4a,0x932a, 65 | 0xd512,0xd512,0xe5b0,0xd5f1,0xd5f1,0xe5b0,0xd5d0,0xd511,0xddf1,0xde11,0xe590,0xd631,0xd631,0xd631,0xd631,0xd512, 66 | 0xd512,0xd512,0xe5b0,0xd5f1,0xd5f1,0xe5b0,0xd5d0,0xd511,0xddf1,0xde11,0xe590,0xd631,0xd631,0xd631,0xd631,0xd512, 67 | 0xe590,0xa38b,0x9b2a,0x8287,0x92e7,0x9307,0x8aea,0x9b8b,0xcd50,0x8b0a,0x8aea,0x8ae9,0x9309,0x92e8,0x9b2a,0x9b4a, 68 | 0xe590,0xa38b,0x9b2a,0x8287,0x92e7,0x9307,0x8aea,0x9b8b,0xcd50,0x8b0a,0x8aea,0x8ae9,0x9309,0x92e8,0x9b2a,0x9b4a, 69 | 0xccce,0xa36a,0x9307,0x9b08,0x9b28,0x92e9,0x82ea,0x8b0a,0xc4cf,0x8b09,0x82c9,0x9309,0x8b0a,0x930a,0x8ae9,0x8ae9, 70 | 0xccce,0xa36a,0x9307,0x9b08,0x9b28,0x92e9,0x82ea,0x8b0a,0xc4cf,0x8b09,0x82c9,0x9309,0x8b0a,0x930a,0x8ae9,0x8ae9, 71 | 0xe590,0x7aaa,0x9b08,0x8ae8,0xa36a,0x9b4a,0x9b29,0x7aa9,0xe590,0x82c9,0x8b09,0x9b4a,0x932a,0x8aea,0x82ca,0x82c9, 72 | 0xe590,0x7aaa,0x9b08,0x8ae8,0xa36a,0x9b4a,0x9b29,0x7aa9,0xe590,0x82c9,0x8b09,0x9b4a,0x932a,0x8aea,0x82ca,0x82c9, 73 | }; 74 | -------------------------------------------------------------------------------- /examples/ST7735_ColorClock_4LCD/pat7.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: pat7.bmp 3 | // Dimensions : 32x32x16 (65536 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | 7 | const uint16_t pat7[0x0400+3] PROGMEM = { 8 | 32,32,16, // width,height,bits 9 | 0x8b86,0x8b86,0x4180,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180,0x5a84,0x5a84,0x5a84,0x5a84,0x5a84, 10 | 0x5a84,0x41e1,0x41e1,0x41e1,0x41e1,0x5a21,0x5a21,0x5a21,0x41e1,0x41e1,0x4180,0xa448,0xa448,0xa448,0xa448,0xa448, 11 | 0x8b86,0x8b86,0x4180,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180,0x7346,0x7346,0x7346,0x7346,0x7346, 12 | 0x5a84,0x41e1,0xa448,0xa448,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x4180,0xa448,0x8b86,0x8b86,0x8b86,0x8b86, 13 | 0x8b86,0x8b86,0x4180,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0x4180,0x7346,0x7346,0x7346,0x7346,0x7346, 14 | 0x5a84,0x41e1,0xa448,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x4180,0xa448,0xa446,0x8b86,0x8b86,0x8b86, 15 | 0x4180,0x4180,0x4180,0x4180,0x5a21,0x5a21,0x4180,0x5a21,0x5a21,0x5a21,0x4180,0x5a84,0x5a84,0x5a84,0x5a84,0x5a84, 16 | 0x5a84,0x4180,0x4180,0x4180,0x5a21,0x7263,0x7263,0x7263,0x7263,0x4180,0x4180,0x4180,0x5a21,0x5a21,0x4180,0x4180, 17 | 0x8b84,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0x7263,0x5a21,0x5a21,0x5a21,0x5a21,0x5a21,0x7263, 18 | 0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x5a21,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84, 19 | 0x8b84,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0x7263,0x5a21,0x5a21,0x5a21,0x5a21,0x5a21,0x7263, 20 | 0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180,0xa446,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84, 21 | 0x8b84,0x8b84,0x8b84,0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0x7263,0x5a21,0x5a21,0x5a21,0x5a21,0x5a21,0x7263, 22 | 0x8b84,0x8b84,0x8b84,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180,0xa446,0xa446,0xa446,0x8b84,0x8b84,0x8b84,0x8b84, 23 | 0x4180,0x4180,0x5a21,0x5a21,0x5a21,0x7263,0x5a21,0x5a21,0x41e1,0x7263,0x7263,0x5a21,0x41e1,0x7263,0x7263,0x7263, 24 | 0x7263,0x41e1,0x41e1,0x41e1,0x7263,0x7263,0x5a21,0x5a21,0x5a21,0x41e1,0x41e1,0x41e1,0x5a21,0x5a21,0x5a21,0x5a21, 25 | 0x7263,0x7263,0x5a21,0xa448,0xa448,0xa448,0x8b86,0x5a21,0x7263,0x7263,0x7263,0x7263,0x41e1,0x7263,0x7263,0x7263, 26 | 0x7263,0x7263,0x41e1,0xa446,0xa446,0x8b84,0x8b84,0x5a21,0x7263,0x7263,0x7263,0x41e1,0x7263,0x7263,0x7263,0x7263, 27 | 0x7263,0x7263,0x5a21,0xa448,0xa446,0x8b86,0x8b86,0x4180,0x7263,0x7263,0x7263,0x7263,0x5a21,0x7263,0x7263,0x7263, 28 | 0x7263,0x7263,0x5a21,0xa446,0xa446,0x8b84,0x8b84,0x4180,0x7263,0x7263,0x7263,0x5a21,0x7263,0x7263,0x7263,0x7263, 29 | 0x7263,0x7263,0x5a21,0xa448,0x8b86,0x8b86,0x8b86,0x4180,0x8b84,0x7263,0x7263,0x7263,0x5a21,0x7263,0x7263,0x7263, 30 | 0x7263,0x7263,0x5a21,0xa446,0xa446,0xa446,0x8b84,0x4180,0x8b84,0x8b84,0x8b84,0x8b84,0x7263,0x7263,0x7263,0x7263, 31 | 0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0x7263,0x7263,0x7263,0x7263,0x7263,0x5a21,0x8b84,0x8b84,0x8b84,0x8b84, 32 | 0x8b84,0x8b84,0x5a21,0x5a21,0x5a21,0x41e1,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180,0x4180,0x4180,0x4180, 33 | 0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0x7263,0x7263,0x7263,0x7263,0x7263,0x5a21,0x8b84,0x8b84,0x8b84,0x8b84, 34 | 0x8b84,0x8b84,0x5a21,0x5a21,0x5a21,0x41e1,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180, 35 | 0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0x5a21,0x8b84,0x8b84,0x8b84,0x7263,0x5a21,0x8b84,0x8b84,0x8b84,0x8b84, 36 | 0x8b84,0x8b84,0x5a21,0x5a21,0x5a21,0x41e1,0x5a21,0x8b84,0x8b84,0x8b84,0x7263,0x7263,0x7263,0x7263,0x5a21,0x4180, 37 | 0x5a21,0x4180,0x4180,0x4180,0x5a21,0x41e1,0x4180,0x5a21,0x5a21,0x5a21,0x4180,0x4180,0x5a21,0x5a21,0x4180,0x4180, 38 | 0x5a21,0x4180,0x5a21,0x4180,0x5a21,0x41e1,0x4180,0x5a21,0x5a21,0x5a21,0x4180,0x4180,0x5a21,0x5a21,0x4180,0x4180, 39 | 0x8b84,0x7263,0x4180,0x8b86,0xa448,0x8b86,0x8b86,0x8b86,0x8b84,0x4180,0x8b84,0xa446,0x8b84,0x8b84,0x7263,0x7263, 40 | 0x7263,0x7263,0x4180,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180,0xa446,0x8b84,0x8b84,0x8b84,0x8b84, 41 | 0x8b84,0x7263,0x4180,0x8b86,0x8b86,0x8b86,0x8b84,0x8b84,0x8b84,0x4180,0x8b84,0xa446,0xa446,0x8b84,0x7263,0x7263, 42 | 0x7263,0x7263,0x4180,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180,0xa446,0xa446,0x8b84,0x8b84,0x8b84, 43 | 0x8b84,0x7263,0x4180,0x8b86,0x8b86,0x8b84,0x8b84,0x8b84,0x8b84,0x4180,0x8b84,0x8b84,0x8b84,0x7263,0x7263,0x7263, 44 | 0x7263,0x7263,0x4180,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180,0xa446,0xa446,0x8b84,0x8b84,0x8b84, 45 | 0x5a21,0x4180,0x4180,0x4180,0x5a21,0x5a21,0x4180,0x7263,0x7263,0x7263,0x7263,0x7263,0x5a21,0x5a21,0x7263,0x4180, 46 | 0x4180,0x4180,0x4180,0x4180,0x5a21,0x5a21,0x4180,0x4180,0x41e1,0x41e1,0x41e1,0x4180,0x5a21,0x5a21,0x5a21,0x4180, 47 | 0x7346,0x7346,0x7346,0x7346,0x7346,0x7346,0x7346,0x7346,0x5a21,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84, 48 | 0x7263,0xa446,0xa446,0xa446,0xa446,0xa446,0x8b84,0x8b84,0x41e1,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x7263,0x4180, 49 | 0x7346,0x7346,0x7346,0x7346,0x7346,0x7346,0x7346,0x7346,0x4180,0xa446,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x7263, 50 | 0x7263,0xbce6,0xa446,0xa446,0xa446,0xa446,0x8b84,0x8b84,0x7263,0xa446,0x8b84,0x8b84,0x8b84,0x8b84,0x7263,0x4180, 51 | 0x7346,0x7346,0x7346,0x7346,0x7346,0x7346,0x7346,0x7346,0x4180,0xa446,0xa446,0xa446,0x8b84,0x8b84,0x8b84,0x7263, 52 | 0x7263,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x8b84,0x41e1,0xa446,0xa446,0xa446,0x8b84,0x8b84,0x7263,0x4180, 53 | 0x4180,0x4180,0x4180,0x4180,0x5a21,0x5a21,0x5a21,0x5a21,0x5a21,0x5a21,0x7263,0x41e1,0x41e1,0x41e1,0x7263,0x7263, 54 | 0x5a21,0x5a21,0x41e1,0x5a21,0x5a21,0x5a21,0x41e1,0x41e1,0x41e1,0x41e1,0x7263,0x5a21,0x5a21,0x5a21,0x5a21,0x4180, 55 | 0x7263,0x7263,0x4180,0xa446,0xa446,0x8b84,0x8b84,0x5a21,0x7263,0x7263,0x7263,0x7263,0x41e1,0x8b84,0x8b84,0x8b84, 56 | 0x8b84,0x7263,0x41e1,0xa448,0xa448,0xa448,0x8b86,0x5a21,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263, 57 | 0x7263,0x7263,0x4180,0xa446,0xa446,0x8b84,0x8b84,0x41e1,0x7263,0x7263,0x7263,0x7263,0x41e1,0x8b84,0x8b84,0x8b84, 58 | 0x8b84,0x7263,0x5a21,0xa448,0xa448,0xa448,0x8b86,0x4180,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263, 59 | 0x7263,0x7263,0x5a21,0xa446,0xa446,0xa446,0x8b84,0x41e1,0x8b84,0x7263,0x7263,0x7263,0x41e1,0x8b84,0x8b84,0x8b84, 60 | 0x8b84,0x7263,0x5a21,0x8b86,0x8b86,0x8b86,0x8b86,0x4180,0x8b84,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263,0x7263, 61 | 0x4180,0x4180,0x4180,0x5a21,0x5a21,0x5a21,0x5a21,0x41e1,0x41e1,0x41e1,0x41e1,0x41e1,0x41e1,0x7263,0x7263,0x41e1, 62 | 0x4180,0x41e1,0x41e1,0x41e1,0x41e1,0x41e1,0x41e1,0x41e1,0x41e1,0x41e1,0x41e1,0x5a21,0x41e1,0x4180,0x4180,0x4180, 63 | 0x5a21,0x5a21,0x5a21,0x5a21,0x5a21,0x41e1,0xa448,0xa448,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x41e1, 64 | 0x7263,0x7263,0x7263,0x4180,0x8b84,0x7346,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x4180,0x5a21,0x5a21, 65 | 0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0xa448,0xa448,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x7346,0x7346,0x41e1, 66 | 0x8b84,0x8b84,0x8b84,0x4180,0x8b84,0x8b84,0x7346,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x4180,0x7263,0x5a21, 67 | 0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0xa448,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x7346,0x5a21,0x4180, 68 | 0x8b84,0x8b84,0x8b84,0x4180,0x8b84,0x8b84,0x8b84,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x4180,0x7263,0x5a21, 69 | 0x7263,0x7263,0x7263,0x7263,0x7263,0x41e1,0xa448,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x7346,0x5a21,0x4180, 70 | 0x8b84,0x8b84,0x8b84,0x4180,0x8b84,0x8b84,0x8b84,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x8b86,0x4180,0x7263,0x5a21, 71 | 0x5a21,0x4180,0x4180,0x4180,0x5a21,0x5a21,0x5a84,0x5a84,0x5a84,0x5a84,0x5a84,0x5a84,0x5a84,0x5a84,0x7263,0x4180, 72 | 0x7263,0x7263,0x7263,0x7263,0x7263,0x3140,0x7263,0x7263,0x7263,0x7263,0x7263,0x4180,0x5a21,0x5a21,0x4180,0x4180, 73 | }; 74 | -------------------------------------------------------------------------------- /examples/ST7735_ColorClock_4LCD/pat8.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: pat8.bmp 3 | // Dimensions : 32x32x16 (65536 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | 7 | const uint16_t pat8[0x0400+3] PROGMEM = { 8 | 32,32,16, // width,height,bits 9 | 0x1840,0x38c0,0x4100,0x4940,0x4940,0x5161,0x4961,0x2060,0x1860,0x4960,0x4940,0x4940,0x4940,0x4920,0x4940,0x4941, 10 | 0x2060,0x4100,0x4920,0x4940,0x4940,0x4940,0x4120,0x1840,0x4960,0x59a1,0x5161,0x4940,0x4940,0x4100,0x4120,0x38e0, 11 | 0x5181,0x1020,0x38e0,0x4960,0x5181,0x4961,0x2060,0x4120,0x4120,0x1860,0x5160,0x4940,0x4940,0x4940,0x4920,0x4940, 12 | 0x5161,0x2060,0x4100,0x4940,0x4940,0x4940,0x2080,0x4940,0x2080,0x5181,0x59a1,0x5181,0x4960,0x4940,0x4100,0x38e0, 13 | 0x5160,0x4961,0x1840,0x4120,0x4961,0x2060,0x4140,0x4961,0x4940,0x30c0,0x1840,0x4940,0x5160,0x4940,0x4920,0x4940, 14 | 0x4940,0x4961,0x2080,0x4120,0x4120,0x2060,0x5181,0x5161,0x4120,0x2060,0x5181,0x59a1,0x5161,0x4960,0x4940,0x4100, 15 | 0x4920,0x5181,0x4941,0x1840,0x2060,0x4100,0x4941,0x4120,0x38e0,0x4100,0x4100,0x1840,0x4940,0x5181,0x4940,0x4940, 16 | 0x4920,0x4941,0x5181,0x1840,0x1840,0x4940,0x5161,0x3900,0x4120,0x4961,0x2080,0x4961,0x5181,0x4941,0x5181,0x5181, 17 | 0x59c2,0x4920,0x4120,0x2060,0x3900,0x4140,0x4941,0x30c0,0x3900,0x4120,0x4920,0x1840,0x1840,0x5160,0x5181,0x4940, 18 | 0x4940,0x4920,0x4121,0x1840,0x38e0,0x4941,0x4100,0x4120,0x5161,0x5181,0x5161,0x1840,0x4940,0x4940,0x4941,0x59a1, 19 | 0x59a1,0x4961,0x1840,0x4120,0x4981,0x4981,0x28a0,0x30c0,0x4140,0x4140,0x1840,0x30c0,0x38e0,0x1840,0x4960,0x5181, 20 | 0x4120,0x4100,0x1840,0x4120,0x4940,0x4941,0x5161,0x5161,0x5181,0x5181,0x2080,0x4940,0x1860,0x4120,0x4920,0x5161, 21 | 0x38c0,0x2880,0x4920,0x4940,0x51a1,0x28a0,0x30c0,0x4100,0x4120,0x1860,0x4121,0x4121,0x38e0,0x4100,0x1860,0x4120, 22 | 0x4120,0x1840,0x4100,0x4120,0x5161,0x5181,0x5181,0x5160,0x51a1,0x2060,0x4100,0x5181,0x4940,0x1860,0x4100,0x4100, 23 | 0x1020,0x4120,0x4940,0x5181,0x3900,0x38e0,0x4120,0x30c0,0x1840,0x4120,0x4121,0x4120,0x3900,0x3901,0x4141,0x1840, 24 | 0x1840,0x4120,0x4920,0x4941,0x5181,0x5181,0x5160,0x4140,0x2060,0x4140,0x4940,0x4120,0x4961,0x4920,0x2060,0x30a0, 25 | 0x1840,0x4120,0x4940,0x4120,0x4100,0x4140,0x4100,0x1840,0x1840,0x4120,0x3900,0x3900,0x38e0,0x3900,0x4981,0x4120, 26 | 0x1840,0x4100,0x5161,0x5181,0x5181,0x5180,0x5161,0x1860,0x1840,0x4940,0x4940,0x4120,0x4120,0x4940,0x4920,0x1860, 27 | 0x28a0,0x4100,0x4940,0x4120,0x4920,0x3900,0x2060,0x5161,0x4120,0x1840,0x3900,0x38e0,0x30e0,0x38e0,0x4120,0x4961, 28 | 0x4100,0x1840,0x4121,0x5161,0x5180,0x4960,0x2060,0x4100,0x4120,0x2060,0x4100,0x4920,0x3900,0x38e0,0x4940,0x4120, 29 | 0x5181,0x2060,0x38e0,0x4120,0x4120,0x1860,0x59a1,0x5161,0x4920,0x3900,0x1840,0x4120,0x3920,0x38e0,0x4100,0x4140, 30 | 0x4100,0x38c0,0x1840,0x4940,0x5161,0x2060,0x4100,0x4940,0x5160,0x4940,0x2060,0x4120,0x4120,0x30c0,0x38e0,0x4940, 31 | 0x4920,0x5181,0x1860,0x3900,0x2060,0x51a1,0x5181,0x4100,0x30c0,0x38e0,0x4120,0x1840,0x4121,0x4120,0x4120,0x4120, 32 | 0x4121,0x38e0,0x38e0,0x1840,0x1840,0x4940,0x4920,0x5160,0x59e1,0x5181,0x4120,0x1860,0x3900,0x4940,0x38e0,0x38e0, 33 | 0x4940,0x4920,0x4941,0x2060,0x4961,0x5161,0x4100,0x30c0,0x38e0,0x4940,0x4940,0x1840,0x1840,0x4120,0x4940,0x4120, 34 | 0x4120,0x4941,0x38c0,0x1840,0x38e0,0x4940,0x5160,0x59c1,0x5181,0x4960,0x4100,0x2060,0x1860,0x4941,0x4940,0x40e0, 35 | 0x5161,0x4100,0x2060,0x59a1,0x4960,0x40e0,0x30c0,0x4120,0x4961,0x4940,0x1840,0x4100,0x4120,0x1840,0x4120,0x4940, 36 | 0x4120,0x4120,0x1840,0x4940,0x5160,0x5180,0x59c1,0x5181,0x4960,0x4100,0x1840,0x3900,0x38e0,0x1860,0x5161,0x4940, 37 | 0x38e0,0x2080,0x51a1,0x5161,0x40e0,0x3900,0x4120,0x5161,0x4961,0x1840,0x4940,0x4940,0x5181,0x4940,0x1860,0x4120, 38 | 0x4120,0x1840,0x4920,0x5181,0x4940,0x59c1,0x5181,0x5181,0x4120,0x1840,0x4120,0x38e0,0x4100,0x3900,0x2060,0x5181, 39 | 0x1840,0x5181,0x5181,0x4100,0x4100,0x4940,0x4960,0x3900,0x1840,0x4940,0x5161,0x4920,0x4960,0x5160,0x4940,0x2060, 40 | 0x1860,0x4940,0x5160,0x4960,0x4920,0x5181,0x5181,0x38e0,0x1860,0x4120,0x4940,0x4120,0x4120,0x5161,0x4960,0x1840, 41 | 0x1860,0x4940,0x4920,0x4920,0x4940,0x4940,0x4941,0x1840,0x1820,0x4100,0x5160,0x4940,0x4920,0x5160,0x5160,0x4941, 42 | 0x2060,0x4120,0x5160,0x4920,0x5160,0x5160,0x4920,0x1840,0x1840,0x4941,0x4940,0x4940,0x5160,0x5181,0x59a1,0x4140, 43 | 0x4941,0x1840,0x4120,0x4960,0x5161,0x4941,0x1840,0x4120,0x3900,0x1840,0x4100,0x38e0,0x38e0,0x4940,0x5160,0x4140, 44 | 0x4121,0x2060,0x4120,0x4920,0x5160,0x4100,0x1840,0x4120,0x4120,0x1840,0x4941,0x5161,0x5181,0x61e1,0x5181,0x59a1, 45 | 0x4100,0x4941,0x1840,0x4120,0x4940,0x1840,0x4960,0x51a1,0x4961,0x4120,0x1020,0x4120,0x30e0,0x38e0,0x4960,0x4940, 46 | 0x38e0,0x4941,0x2060,0x4120,0x4920,0x1840,0x3900,0x4120,0x4941,0x4121,0x1840,0x4940,0x4941,0x5181,0x6222,0x5161, 47 | 0x4100,0x4100,0x4941,0x1840,0x1040,0x4960,0x51a1,0x4120,0x4120,0x38e0,0x3900,0x1840,0x4100,0x38e0,0x4100,0x4940, 48 | 0x4100,0x38e0,0x4120,0x1840,0x1820,0x3900,0x4100,0x4941,0x4121,0x4120,0x3900,0x1840,0x4100,0x4941,0x59c1,0x59c1, 49 | 0x59a1,0x4100,0x3900,0x1840,0x4100,0x59c1,0x4100,0x3900,0x30c0,0x4100,0x4940,0x1840,0x1840,0x4940,0x38e0,0x4920, 50 | 0x4940,0x4120,0x4120,0x1840,0x30c0,0x4120,0x4961,0x4141,0x4120,0x4120,0x3900,0x1840,0x1840,0x5161,0x4921,0x5181, 51 | 0x61e2,0x4141,0x1840,0x4140,0x59c1,0x4120,0x30e0,0x30c0,0x38e0,0x4120,0x2060,0x4120,0x4100,0x2060,0x4120,0x38e0, 52 | 0x4940,0x4100,0x1840,0x38e0,0x3900,0x4961,0x4121,0x38e0,0x3900,0x38e0,0x1860,0x4941,0x38e0,0x1860,0x5161,0x4921, 53 | 0x4941,0x2880,0x38e0,0x4941,0x4121,0x30c0,0x28a0,0x30c0,0x4120,0x1860,0x5181,0x5181,0x4940,0x4940,0x2060,0x4121, 54 | 0x3900,0x1840,0x3900,0x38e0,0x4160,0x3900,0x30c0,0x38e0,0x38e0,0x1040,0x4940,0x59c1,0x5181,0x38e0,0x2060,0x5161, 55 | 0x1020,0x4100,0x4941,0x4121,0x30c0,0x2080,0x30e0,0x30e0,0x1840,0x4941,0x4940,0x5161,0x5181,0x4960,0x4940,0x2060, 56 | 0x2060,0x4120,0x3900,0x3900,0x30e0,0x28a0,0x30c0,0x30c0,0x1040,0x4120,0x4940,0x61e1,0x59c1,0x5181,0x4120,0x1860, 57 | 0x1020,0x4100,0x4941,0x38e0,0x30c0,0x4100,0x4940,0x1860,0x1840,0x4961,0x5181,0x51a1,0x5181,0x5181,0x4940,0x4120, 58 | 0x2080,0x3900,0x4120,0x3900,0x30c0,0x30c0,0x38e0,0x1840,0x1840,0x5161,0x5160,0x4940,0x6201,0x59a1,0x5161,0x4100, 59 | 0x38c0,0x1020,0x3900,0x4120,0x4120,0x4940,0x2060,0x4941,0x4120,0x1840,0x51a1,0x6202,0x5181,0x5181,0x5181,0x4960, 60 | 0x4940,0x2080,0x3920,0x38e0,0x38e0,0x4121,0x1840,0x4141,0x4120,0x2060,0x5161,0x4940,0x51a1,0x61e1,0x5181,0x5161, 61 | 0x4940,0x38e0,0x1020,0x4120,0x4940,0x2060,0x4941,0x5161,0x4920,0x30c0,0x1860,0x59a2,0x61e1,0x5161,0x5181,0x5181, 62 | 0x4940,0x4940,0x2080,0x3900,0x4941,0x1840,0x51a1,0x61e2,0x4961,0x4121,0x2060,0x4940,0x5160,0x59c1,0x5181,0x4961, 63 | 0x51a1,0x4940,0x3900,0x1020,0x2060,0x4940,0x5161,0x4940,0x4100,0x4920,0x4961,0x2060,0x51a1,0x61e2,0x4940,0x5161, 64 | 0x5161,0x4940,0x4120,0x1860,0x1860,0x5181,0x6222,0x51a1,0x4961,0x5161,0x4120,0x1860,0x3900,0x5181,0x59a1,0x5181, 65 | 0x59c1,0x5181,0x3900,0x2060,0x4120,0x4960,0x4920,0x4100,0x4940,0x59a1,0x59c1,0x1840,0x1860,0x59e2,0x59a1,0x4920, 66 | 0x5181,0x5181,0x4120,0x1840,0x4961,0x6201,0x59c1,0x5181,0x5161,0x4940,0x4120,0x1840,0x1840,0x4921,0x59a1,0x61e2, 67 | 0x5181,0x4961,0x2060,0x4940,0x5160,0x4920,0x4100,0x4940,0x59a1,0x51a1,0x2060,0x4120,0x38e0,0x2060,0x59c2,0x4960, 68 | 0x4940,0x4961,0x2080,0x4120,0x59a1,0x59a1,0x5181,0x5161,0x4941,0x38e0,0x1840,0x4120,0x3900,0x1840,0x4920,0x59a1, 69 | 0x38e0,0x2080,0x4940,0x5160,0x4940,0x4100,0x4940,0x59a1,0x51a1,0x2060,0x4940,0x59a1,0x4940,0x3900,0x2060,0x51a1, 70 | 0x4120,0x2060,0x4940,0x4940,0x59a1,0x5181,0x5160,0x4940,0x4100,0x1840,0x38e0,0x4940,0x5160,0x38e0,0x1840,0x4100, 71 | 0x1840,0x4920,0x4940,0x4940,0x4940,0x4940,0x59a1,0x4141,0x1840,0x4120,0x5160,0x5181,0x5160,0x4960,0x3900,0x2060, 72 | 0x2880,0x4940,0x4960,0x5160,0x5181,0x5160,0x4960,0x38e0,0x1860,0x4941,0x4940,0x4940,0x4940,0x4940,0x38c0,0x1020, 73 | }; 74 | -------------------------------------------------------------------------------- /examples/ST7735_Mario_RRE/rre_mario0.h: -------------------------------------------------------------------------------- 1 | #ifndef __font_mario0_h__ 2 | #define __font_mario0_h__ 3 | 4 | /* 5 | *** Generated by rrefontgen *** 6 | Font: [mario0] 48x64 7 | Total chars: 4 (' ' to '#') 8 | Total rects: 456 * 3 bytes 9 | Total pixels: 3519 (742 overlapping) 10 | Total bytes: 1376 (1368 rects + 8 offs) 11 | Bitmap size: 1536 (48x64 * 4) (+4 opt) 12 | */ 13 | 14 | const unsigned char fontmario0_Rects[1368] PROGMEM = { 15 | 0xcb,0xa5,0x01, 0x53,0x3e,0x0b, 0x68,0x02,0x07, 0xcd,0x70,0x01, 0x95,0x56,0x01, 0x93,0x5c,0x01, 0x5e,0x23,0x06, 0xdb,0x0c,0x02, 0xd7,0x12,0x02, 0x64,0x04,0x04, 0x13,0x2b,0x09, 0xa0,0x07,0x02, 0x8f,0x21,0x02, 0xde,0x09,0x01, 0xca,0x67,0x00, 0x99,0x0f,0x02, 16 | 0x8c,0x23,0x02, 0x0e,0x76,0x01, 0x62,0x06,0x03, 0xa2,0x2e,0x01, 0x90,0x3a,0x01, 0xda,0x29,0x01, 0xd6,0x14,0x02, 0x94,0x59,0x01, 0x2b,0x01,0x04, 0x11,0x2c,0x04, 0x21,0x33,0x04, 0x11,0x3d,0x04, 0x66,0x03,0x05, 0x6e,0x15,0x01, 0xd2,0x1f,0x00, 0x25,0x23,0x03, 17 | 0x60,0x26,0x01, 0x5b,0x27,0x01, 0x50,0x2d,0x01, 0xcf,0x2f,0x00, 0x5f,0x3d,0x01, 0x20,0x3f,0x03, 0x5d,0x0a,0x03, 0xab,0x0e,0x00, 0x2b,0x17,0x02, 0x28,0x19,0x02, 0x25,0x1b,0x02, 0x2b,0x21,0x02, 0x28,0x22,0x02, 0x93,0x23,0x00, 0x9d,0x24,0x00, 0x24,0x2c,0x02, 18 | 0x9d,0x2d,0x00, 0xa7,0x2d,0x00, 0xa5,0x30,0x00, 0xd2,0x3b,0x00, 0x5a,0x4e,0x00, 0xcc,0x2e,0x01, 0x6c,0x0b,0x00, 0x57,0x18,0x00, 0x2a,0x18,0x01, 0x27,0x1a,0x01, 0x24,0x1c,0x01, 0x23,0x1d,0x01, 0x22,0x1e,0x01, 0x21,0x1f,0x01, 0x20,0x20,0x01, 0x2e,0x20,0x01, 19 | 0x1f,0x21,0x01, 0x61,0x28,0x00, 0x62,0x29,0x00, 0x63,0x2a,0x00, 0x5c,0x2c,0x00, 0x5e,0x2f,0x00, 0x66,0x2f,0x00, 0x5f,0x30,0x00, 0x60,0x31,0x00, 0x5a,0x33,0x00, 0x5b,0x34,0x00, 0x2e,0x36,0x01, 0xe3,0x05,0x00, 0x5c,0x4b,0x00, 0x8e,0x22,0x01, 0x8f,0x39,0x01, 20 | 0x9f,0x08,0x02, 0x2f,0x00,0x00, 0x26,0x06,0x00, 0x2f,0x08,0x00, 0x2e,0x09,0x00, 0x2d,0x0a,0x00, 0x1e,0x0d,0x00, 0x18,0x11,0x00, 0x2c,0x13,0x00, 0x2d,0x14,0x00, 0x2d,0x16,0x00, 0x11,0x20,0x00, 0x1f,0x22,0x00, 0x1e,0x25,0x00, 0x20,0x25,0x00, 0x0d,0x26,0x00, 21 | 0x1c,0x26,0x00, 0x24,0x2b,0x00, 0x12,0x2d,0x00, 0x26,0x2d,0x00, 0x24,0x2e,0x00, 0x10,0x2f,0x00, 0x21,0x2f,0x00, 0x17,0x31,0x00, 0x23,0x31,0x00, 0x19,0x32,0x00, 0x21,0x32,0x00, 0x23,0x34,0x00, 0x2f,0x37,0x00, 0x1b,0x38,0x00, 0x1a,0x39,0x00, 0x13,0x3c,0x00, 22 | 0x21,0x3e,0x00, 0xed,0x6e,0x02, 0x82,0x75,0x17, 0xcf,0x17,0x0a, 0x40,0x72,0x0b, 0x44,0xb4,0x0c, 0x96,0x15,0x09, 0xea,0x90,0x01, 0x9f,0xa5,0x01, 0x98,0x07,0x06, 0xce,0x0d,0x04, 0x4d,0x5e,0x02, 0x64,0x5f,0x02, 0x41,0x63,0x02, 0x40,0x01,0x07, 0x52,0x21,0x07, 23 | 0xa1,0x0a,0x04, 0x9e,0x25,0x06, 0x54,0x10,0x06, 0x95,0x0a,0x03, 0x8d,0x48,0x01, 0x19,0x73,0x02, 0x28,0x5a,0x01, 0x50,0x1b,0x04, 0x9e,0x6c,0x01, 0x88,0x03,0x02, 0xa6,0x0c,0x02, 0x95,0x3c,0x02, 0xa9,0x4e,0x01, 0x01,0xb1,0x06, 0xcb,0x05,0x01, 0x5b,0x11,0x03, 24 | 0xdc,0x31,0x01, 0xe6,0x1d,0x02, 0x4d,0x18,0x0e, 0x93,0x0b,0x02, 0x43,0x02,0x06, 0x52,0x56,0x05, 0x9f,0x09,0x01, 0x0b,0x11,0x05, 0x5d,0x13,0x02, 0x5b,0x23,0x02, 0xc0,0x22,0x02, 0xc2,0x26,0x02, 0xe9,0x56,0x01, 0x80,0x2f,0x01, 0xc2,0xf0,0x00, 0x56,0x74,0x04, 25 | 0x00,0x00,0x03, 0x02,0x07,0x03, 0x07,0x12,0x03, 0x04,0x13,0x03, 0x61,0x17,0x01, 0x51,0x1d,0x01, 0x52,0x1f,0x01, 0xd0,0x20,0x00, 0x13,0x3f,0x03, 0x4a,0x06,0x03, 0x5e,0x28,0x03, 0x11,0x0c,0x09, 0xa4,0x0b,0x03, 0xe3,0x23,0x02, 0x03,0x3c,0x10, 0x8f,0x0a,0x00, 26 | 0x1a,0x0d,0x02, 0x02,0x14,0x02, 0x07,0x1b,0x02, 0x05,0x1c,0x02, 0x21,0x20,0x02, 0x5a,0x22,0x01, 0x56,0x09,0x03, 0xe8,0x0d,0x01, 0x9d,0x08,0x02, 0x4c,0x09,0x00, 0x4a,0x0a,0x00, 0x4b,0x0c,0x00, 0x1c,0x0e,0x01, 0x1d,0x0f,0x01, 0x00,0x15,0x01, 0x1c,0x18,0x01, 27 | 0x0b,0x19,0x01, 0x09,0x1a,0x01, 0x04,0x1d,0x01, 0x0d,0x1d,0x01, 0x02,0x1e,0x01, 0x00,0x1f,0x01, 0x1e,0x20,0x01, 0x01,0x21,0x01, 0x1c,0x25,0x01, 0x0c,0x33,0x01, 0x47,0x3e,0x00, 0x0a,0x3e,0x01, 0x50,0x3e,0x00, 0x09,0x3f,0x01, 0x07,0x04,0x04, 0x22,0x64,0x00, 28 | 0x67,0x5c,0x00, 0xdd,0x30,0x01, 0xdb,0x32,0x01, 0x00,0x08,0x00, 0x07,0x08,0x00, 0x17,0x08,0x00, 0x09,0x09,0x00, 0x13,0x0e,0x00, 0x27,0x0f,0x00, 0x13,0x10,0x00, 0x1e,0x10,0x00, 0x20,0x17,0x00, 0x23,0x18,0x00, 0x11,0x22,0x00, 0x0e,0x24,0x00, 0x0d,0x25,0x00, 29 | 0x1d,0x26,0x00, 0x03,0x2a,0x00, 0x1e,0x2a,0x00, 0x03,0x30,0x00, 0x18,0x3c,0x00, 0x11,0x3d,0x00, 0x14,0x3e,0x00, 0x0f,0x3f,0x00, 0xac,0x52,0x00, 0x98,0x00,0x0c, 0x23,0x22,0x41, 0x92,0x3c,0x0a, 0x8b,0xeb,0x01, 0x8a,0x08,0x07, 0x49,0x24,0x0b, 0xa0,0x72,0x02, 30 | 0x41,0x94,0x01, 0x4f,0xb3,0x01, 0x9a,0x4e,0x01, 0x2b,0xc5,0x00, 0x13,0x1f,0x0c, 0xc7,0x0b,0x02, 0xa5,0x28,0x05, 0x9c,0x94,0x00, 0x9e,0xa4,0x00, 0x54,0x03,0x04, 0x1e,0x16,0x09, 0x0d,0x66,0x01, 0x4a,0xae,0x00, 0x84,0x20,0x02, 0xa0,0x21,0x02, 0x9e,0x39,0x02, 31 | 0x65,0x03,0x03, 0x51,0x05,0x03, 0xdc,0x0c,0x01, 0xef,0x50,0x00, 0x87,0x22,0x02, 0x90,0x6c,0x00, 0x02,0x5b,0x01, 0x65,0xa7,0x00, 0x85,0x0e,0x01, 0x83,0x10,0x01, 0x88,0x15,0x01, 0x97,0x20,0x01, 0x8d,0x39,0x01, 0x4f,0x06,0x03, 0xdd,0x3a,0x01, 0x4c,0x68,0x01, 32 | 0x08,0x0a,0x0d, 0x2c,0x4a,0x00, 0x1d,0x58,0x00, 0x11,0x68,0x00, 0x15,0x3f,0x04, 0x2a,0x06,0x05, 0xc2,0x12,0x01, 0x56,0x02,0x05, 0x62,0x6e,0x01, 0x1f,0x76,0x02, 0x69,0x04,0x01, 0x66,0x05,0x01, 0xce,0x16,0x00, 0x21,0x17,0x03, 0x54,0x1d,0x01, 0x1d,0x20,0x03, 33 | 0x55,0x23,0x01, 0xd1,0x3a,0x00, 0x9d,0x0b,0x01, 0x63,0x02,0x03, 0x15,0x00,0x02, 0x23,0x08,0x02, 0x21,0x09,0x02, 0x1f,0x0a,0x02, 0x14,0x0b,0x02, 0x16,0x0c,0x02, 0xaa,0x11,0x00, 0x26,0x15,0x02, 0x8d,0x18,0x00, 0x9b,0x1c,0x00, 0x9f,0x23,0x00, 0x1b,0x15,0x03, 34 | 0x47,0x17,0x01, 0x83,0x1e,0x01, 0x06,0x23,0x05, 0x1b,0x4d,0x01, 0x25,0x07,0x01, 0x18,0x0d,0x01, 0x69,0x13,0x00, 0x6e,0x13,0x00, 0x4f,0x15,0x00, 0x40,0x18,0x00, 0x15,0x1c,0x01, 0x13,0x20,0x01, 0x65,0x24,0x00, 0x52,0x26,0x00, 0x04,0x0f,0x03, 0x1a,0x1e,0x03, 35 | 0x16,0x20,0x03, 0x56,0x22,0x01, 0x0c,0x26,0x03, 0x26,0x67,0x00, 0x53,0x04,0x02, 0x89,0x09,0x01, 0x8c,0x38,0x01, 0x5c,0x3b,0x03, 0x25,0x01,0x00, 0x2c,0x05,0x00, 0x0e,0x07,0x00, 0x2a,0x07,0x00, 0x2f,0x07,0x00, 0x12,0x09,0x00, 0x1f,0x0b,0x00, 0x0a,0x0e,0x00, 36 | 0x19,0x0e,0x00, 0x05,0x11,0x00, 0x09,0x14,0x00, 0x28,0x14,0x00, 0x1b,0x16,0x00, 0x05,0x1f,0x00, 0x07,0x21,0x00, 0x1f,0x21,0x00, 0x21,0x31,0x00, 0x12,0x3b,0x00, 0xa8,0x29,0x07, 0x99,0x25,0x0c, 0x9c,0x06,0x09, 0x17,0xcb,0x01, 0xd4,0x99,0x01, 0x81,0x28,0x07, 37 | 0xd1,0x09,0x04, 0x0e,0x44,0x02, 0x2a,0x56,0x02, 0x26,0x5d,0x02, 0x95,0x56,0x02, 0x55,0x24,0x0b, 0xa8,0x49,0x01, 0xd1,0x20,0x02, 0xce,0x23,0x02, 0x8a,0x26,0x03, 0x00,0x06,0x0a, 0x19,0x48,0x01, 0xa8,0x1a,0x03, 0xe4,0x22,0x02, 0x92,0x00,0x02, 0x16,0x8a,0x00, 38 | 0xa3,0x07,0x04, 0x49,0x04,0x03, 0xaa,0x0b,0x02, 0x07,0x0b,0x06, 0x01,0x0e,0x06, 0x01,0x19,0x06, 0x90,0x02,0x02, 0x91,0x87,0x00, 0x80,0x29,0x04, 0x9a,0x07,0x03, 0x87,0x27,0x03, 0x6b,0x53,0x02, 0x00,0x07,0x04, 0x0a,0x52,0x00, 0xe8,0x88,0x00, 0x93,0x1c,0x03, 39 | 0x25,0x5f,0x02, 0x03,0x03,0x03, 0x05,0x0c,0x03, 0xd2,0x11,0x00, 0xd9,0x12,0x00, 0xe7,0x13,0x00, 0x20,0x28,0x03, 0xa9,0x58,0x00, 0xd7,0x23,0x01, 0x55,0x0d,0x04, 0x10,0x61,0x01, 0x07,0x05,0x0a, 0xa7,0x0a,0x03, 0x82,0x00,0x00, 0x88,0x00,0x00, 0x1f,0x05,0x02, 40 | 0x84,0x09,0x00, 0x93,0x13,0x00, 0x80,0x16,0x00, 0x03,0x1a,0x02, 0xa3,0x1d,0x00, 0xa2,0x1f,0x00, 0x0c,0x42,0x00, 0x4f,0x08,0x03, 0x58,0x09,0x03, 0xcd,0x24,0x01, 0xeb,0x0c,0x02, 0x0e,0x00,0x01, 0x55,0x00,0x00, 0x0d,0x01,0x01, 0x06,0x02,0x01, 0x4d,0x06,0x00, 41 | 0x0a,0x07,0x01, 0x02,0x08,0x01, 0x4c,0x09,0x00, 0x00,0x0f,0x01, 0x49,0x10,0x00, 0x54,0x15,0x00, 0x49,0x16,0x00, 0x48,0x17,0x00, 0x66,0x17,0x00, 0x01,0x18,0x01, 0x65,0x19,0x00, 0x64,0x1b,0x00, 0x12,0x1f,0x01, 0x61,0x21,0x00, 0x56,0x22,0x00, 0x60,0x22,0x00, 42 | 0x0f,0x03,0x04, 0x67,0x1c,0x03, 0x09,0x00,0x00, 0x11,0x01,0x00, 0x03,0x02,0x00, 0x0d,0x02,0x00, 0x0b,0x03,0x00, 0x0b,0x08,0x00, 0x03,0x09,0x00, 0x0d,0x0a,0x00, 0x10,0x0a,0x00, 0x26,0x0a,0x00, 0x05,0x0b,0x00, 0x04,0x0d,0x00, 0x14,0x0d,0x00, 0x08,0x0f,0x00, 43 | 0x00,0x10,0x00, 0x16,0x15,0x00, 0x07,0x18,0x00, 0x1f,0x23,0x00, 0x12,0x24,0x00, 0x23,0x24,0x00, 0x0c,0x25,0x00, 0x2c,0x8d,0x02, 44 | }; 45 | 46 | const unsigned short fontmario0_CharOffs[5] PROGMEM = { 47 | 0x0000, 0x0072, 0x00e9, 0x015b, 0x01c8, 48 | }; 49 | 50 | RRE_Font rre_mario0 = { RRE_24B, 48,64, 0x20, 0x23, (const uint8_t*)fontmario0_Rects, (const uint16_t*)fontmario0_CharOffs }; 51 | 52 | #endif 53 | 54 | -------------------------------------------------------------------------------- /examples/ST7735_AmigaBallMulti/ST7735_AmigaBallMulti.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library example 2 | // Amiga Multi Boing Ball Demo 3 | // (c) 2019 Pawel A. Hernik 4 | // YT videos: 5 | // https://youtu.be/rtnI4TEeBpA 6 | // https://youtu.be/KwtkfmglT-c 7 | 8 | /* 9 | ST7735 128x160 LCD pinout (header at the top for better viewwing angles, from left): 10 | #1 LED -> 3.3V 11 | #2 SCK -> SCL/D13/PA5 12 | #3 SDA -> MOSI/D11/PA7 13 | #4 A0/DC -> D8/PA1 or any digital 14 | #5 RESET -> D9/PA0 or any digital 15 | #6 CS -> D10/PA2 or any digital 16 | #7 GND -> GND 17 | #8 VCC -> 3.3V 18 | */ 19 | 20 | #define SCR_WD 128 21 | #define SCR_HT 160 22 | #include 23 | #include 24 | 25 | #if (__STM32F1__) // bluepill 26 | #define TFT_CS PA2 27 | #define TFT_DC PA1 28 | #define TFT_RST PA0 29 | #include 30 | #else 31 | #define TFT_CS 10 32 | #define TFT_DC 8 33 | #define TFT_RST 9 34 | //#include 35 | #endif 36 | 37 | Arduino_ST7735 lcd = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS); 38 | 39 | #include "ball64.h" 40 | #include "ball48.h" 41 | #include "ball32.h" 42 | 43 | uint16_t line[SCR_WD]; 44 | uint16_t bgCol = RGBto565(160,160,160); 45 | uint16_t bgColS = RGBto565(90,90,90); 46 | uint16_t lineCol = RGBto565(150,40,150); 47 | uint16_t lineColS = RGBto565(80,10,80); 48 | uint16_t ballCol1 = RGBto565(255,255,255); 49 | uint16_t ballCol2 = RGBto565(255,0,0); 50 | uint16_t ballCol1S = RGBto565(128,128,128); 51 | uint16_t ballCol2S = RGBto565(128,0,0); 52 | 53 | 54 | uint8_t colsRGB[7*3] = { 55 | 255,0,0, 56 | 0,155,0, 57 | 255,0,255, 58 | 185,125,0, 59 | 0,185,185, 60 | 0,0,255, 61 | 55,55,55, 62 | }; 63 | 64 | uint16_t cols[7], colsS[7]; 65 | 66 | #define LINE_YS 10 67 | #define LINE_XS1 19 68 | #define LINE_XS2 2 69 | 70 | #define BALL_SWD 128 71 | #define BALL_SHT 145 72 | 73 | int shadow=20; 74 | 75 | struct BallData { 76 | int anim,animd; 77 | int x,xd; 78 | int y,yd; 79 | int wd = 64; 80 | int ht = 64; 81 | uint8_t *img; 82 | uint16_t palette[16]; 83 | uint16_t ballCol1 = RGBto565(255,255,255); 84 | uint16_t ballCol2 = RGBto565(255,0,0); 85 | uint16_t ballCol1S = RGBto565(128,128,128); 86 | uint16_t ballCol2S = RGBto565(128,0,0); 87 | }; 88 | 89 | #define NUM_BALLS 10 90 | int numBalls=7; 91 | struct BallData ball[NUM_BALLS]; 92 | 93 | 94 | void drawShadow(int ii, int c) 95 | { 96 | if(ii<0 || ii>=SCR_WD) return; 97 | if(line[ii]==bgCol) line[ii]=bgColS; else 98 | if(line[ii]==lineCol) line[ii]=lineColS; 99 | if(c<0) return; 100 | if(line[ii]==ballCol1) line[ii]=ballCol1S; else 101 | for(int i=0;i=ball[b].y && y=0;i--) { 113 | v = pgm_read_byte(img); 114 | v = (i&1) ? v&0xf : v>>4; 115 | if((i&1)==0) img--; 116 | if(v) { 117 | line[ball[b].x+i] = ball[b].palette[v]; 118 | if(shadow) drawShadow(ball[b].x+i+shadow,b-1); 119 | } 120 | } 121 | } else { 122 | uint8_t v,*img = ball[b].img+16*2+6+(y-ball[b].y)*ball[b].wd/2; 123 | for(int i=0;i>4; 126 | if(i&1) img++; 127 | if(v) { 128 | line[ball[b].x+i] = ball[b].palette[v]; 129 | if(shadow) drawShadow(ball[b].x+i+shadow,b-1); 130 | } 131 | } 132 | } 133 | } 134 | } 135 | lcd.drawImage(0,y,SCR_WD,1,line); 136 | } 137 | } 138 | 139 | void drawBg(int yy) 140 | { 141 | int i; 142 | // horizontal lines 143 | if(yy==LINE_YS || yy==LINE_YS+1*10 || yy==LINE_YS+2*10 || yy==LINE_YS+3*10 || yy==LINE_YS+4*10 || yy==LINE_YS+5*10 || yy==LINE_YS+6*10 || 144 | yy==LINE_YS+7*10 || yy==LINE_YS+8*10 || yy==LINE_YS+9*10 || yy==LINE_YS+10*10 || yy==LINE_YS+11*10 || yy==LINE_YS+12*10) { 145 | for(i=0;iSCR_HT-LINE_YS) { 149 | for(i=0;iLINE_YS && yy=SCR_HT-LINE_YS+3 && yy=BALL_SWD-ball[b].wd) { ball[b].x=BALL_SWD-ball[b].wd; ball[b].xd=-ball[b].xd; ball[b].animd=-ball[b].animd; } 219 | if(ball[b].y<0) { ball[b].y=0; ball[b].yd=-ball[b].yd; } 220 | if(ball[b].y>=BALL_SHT-ball[b].ht) { ball[b].y=BALL_SHT-ball[b].ht; ball[b].yd=-ball[b].yd; } 221 | } 222 | renderFrame(); 223 | while(millis()-ms<40); // limit to 25fps 224 | //ms=millis()-ms; Serial.println(ms); 225 | } 226 | 227 | void loop() 228 | { 229 | for(int i=30*5;i>-30*5;i--) { shadow=i/5; render(); } 230 | for(int i=0*5;i<20*5;i++) { shadow=-30; render(); } 231 | for(int i=-30*5;i<30*5;i++) { shadow=i/5; render(); } 232 | for(int i=0*5;i<20*5;i++) { shadow=30; render(); } 233 | } 234 | 235 | -------------------------------------------------------------------------------- /examples/ST7735_Mario_RRE/rre_mario2_v.h: -------------------------------------------------------------------------------- 1 | #ifndef __font_mario2_h__ 2 | #define __font_mario2_h__ 3 | 4 | /* 5 | *** Generated by rrefontgen *** 6 | Font: [mario2] 96x128 7 | Total chars: 1 (' ' to ' ') 8 | Total rects: 478 * 3 bytes 9 | Total pixels: 1255 (1 overlapping) 10 | Total bytes: 1436 (1434 rects + 2 offs) 11 | Bitmap size: 1536 (96x128 * 1) (+1 opt) 12 | */ 13 | 14 | const unsigned char fontmario2_Rects[1434] PROGMEM = { 15 | 0x00,0x56,0x01, 0x00,0x5a,0x00, 0x01,0x53,0x00, 0x02,0x51,0x00, 0x03,0x56,0x04, 0x03,0x61,0x00, 0x04,0x53,0x00, 0x05,0x63,0x00, 0x06,0x4d,0x00, 0x07,0x4a,0x00, 0x07,0x56,0x00, 0x08,0x49,0x00, 0x08,0x4f,0x00, 0x08,0x65,0x00, 0x09,0x29,0x03, 0x09,0x48,0x00, 16 | 0x09,0x53,0x00, 0x0a,0x26,0x00, 0x0a,0x2f,0x00, 0x0a,0x53,0x01, 0x0a,0x6d,0x00, 0x0a,0x78,0x00, 0x0b,0x24,0x00, 0x0b,0x31,0x00, 0x0b,0x4e,0x00, 0x0b,0x66,0x00, 0x0b,0x6a,0x00, 0x0c,0x32,0x00, 0x0c,0x59,0x01, 0x0c,0x63,0x00, 0x0c,0x67,0x00, 0x0d,0x22,0x00, 17 | 0x0d,0x27,0x00, 0x0d,0x2d,0x00, 0x0d,0x38,0x00, 0x0d,0x47,0x00, 0x0d,0x57,0x00, 0x0e,0x21,0x00, 0x0e,0x2f,0x00, 0x0e,0x5a,0x00, 0x0e,0x7c,0x00, 0x0f,0x2e,0x00, 0x0f,0x33,0x02, 0x0f,0x3c,0x00, 0x0f,0x57,0x00, 0x0f,0x67,0x01, 0x0f,0x70,0x02, 0x10,0x20,0x00, 18 | 0x10,0x24,0x00, 0x10,0x30,0x00, 0x10,0x38,0x00, 0x10,0x3d,0x00, 0x10,0x45,0x00, 0x10,0x6b,0x00, 0x10,0x7d,0x00, 0x11,0x3e,0x00, 0x11,0x66,0x01, 0x11,0x6d,0x0c, 0x12,0x1e,0x00, 0x12,0x23,0x00, 0x12,0x2b,0x00, 0x12,0x44,0x00, 0x12,0x68,0x12, 0x13,0x1a,0x01, 19 | 0x13,0x2d,0x00, 0x13,0x47,0x00, 0x13,0x49,0x00, 0x13,0x61,0x00, 0x13,0x66,0x15, 0x14,0x18,0x00, 0x14,0x23,0x01, 0x14,0x3c,0x00, 0x14,0x63,0x00, 0x14,0x66,0x15, 0x14,0x7f,0x00, 0x15,0x15,0x00, 0x15,0x20,0x00, 0x15,0x60,0x00, 0x15,0x65,0x16, 0x16,0x13,0x00, 20 | 0x16,0x1d,0x00, 0x16,0x2c,0x00, 0x16,0x31,0x00, 0x16,0x3d,0x00, 0x16,0x45,0x00, 0x16,0x65,0x16, 0x17,0x1a,0x00, 0x17,0x2c,0x00, 0x17,0x3d,0x00, 0x17,0x41,0x00, 0x17,0x4b,0x00, 0x17,0x64,0x17, 0x18,0x10,0x00, 0x18,0x18,0x00, 0x18,0x2c,0x00, 0x18,0x31,0x01, 21 | 0x18,0x52,0x00, 0x18,0x63,0x18, 0x19,0x16,0x00, 0x19,0x2c,0x00, 0x19,0x33,0x01, 0x19,0x39,0x00, 0x19,0x44,0x00, 0x19,0x4f,0x00, 0x19,0x52,0x01, 0x19,0x5e,0x00, 0x19,0x61,0x1a, 0x1a,0x0d,0x00, 0x1a,0x14,0x00, 0x1a,0x32,0x00, 0x1a,0x4d,0x00, 0x1a,0x5d,0x00, 22 | 0x1a,0x60,0x1b, 0x1a,0x7f,0x00, 0x1b,0x12,0x00, 0x1b,0x2d,0x00, 0x1b,0x33,0x00, 0x1b,0x36,0x01, 0x1b,0x4c,0x00, 0x1b,0x57,0x00, 0x1b,0x5b,0x00, 0x1b,0x60,0x1b, 0x1c,0x11,0x00, 0x1c,0x25,0x00, 0x1c,0x29,0x01, 0x1c,0x2e,0x00, 0x1c,0x35,0x02, 0x1c,0x43,0x00, 23 | 0x1c,0x52,0x01, 0x1c,0x60,0x1a, 0x1d,0x23,0x00, 0x1d,0x27,0x05, 0x1d,0x43,0x00, 0x1d,0x50,0x00, 0x1d,0x54,0x00, 0x1d,0x61,0x18, 0x1d,0x7e,0x00, 0x1e,0x0e,0x00, 0x1e,0x22,0x00, 0x1e,0x26,0x08, 0x1e,0x3d,0x00, 0x1e,0x43,0x00, 0x1e,0x4a,0x00, 0x1e,0x4e,0x00, 24 | 0x1e,0x61,0x02, 0x1e,0x6f,0x09, 0x1f,0x0d,0x00, 0x1f,0x25,0x0a, 0x1f,0x32,0x00, 0x1f,0x3f,0x00, 0x1f,0x43,0x00, 0x1f,0x55,0x00, 0x1f,0x62,0x00, 0x1f,0x66,0x0f, 0x20,0x22,0x00, 0x20,0x28,0x08, 0x20,0x43,0x00, 0x20,0x49,0x00, 0x20,0x4b,0x00, 0x20,0x64,0x0d, 25 | 0x20,0x7c,0x00, 0x21,0x06,0x00, 0x21,0x21,0x00, 0x21,0x2a,0x04, 0x21,0x30,0x01, 0x21,0x3d,0x00, 0x21,0x43,0x00, 0x21,0x64,0x0c, 0x22,0x05,0x00, 0x22,0x20,0x00, 0x22,0x28,0x00, 0x22,0x2b,0x02, 0x22,0x31,0x01, 0x22,0x34,0x00, 0x22,0x3e,0x00, 0x22,0x43,0x00, 26 | 0x22,0x48,0x00, 0x22,0x4a,0x00, 0x22,0x64,0x09, 0x22,0x79,0x00, 0x23,0x09,0x00, 0x23,0x1f,0x00, 0x23,0x2c,0x01, 0x23,0x32,0x00, 0x23,0x74,0x00, 0x24,0x08,0x00, 0x24,0x1e,0x00, 0x24,0x2d,0x00, 0x24,0x2f,0x03, 0x24,0x34,0x00, 0x24,0x47,0x00, 0x24,0x49,0x00, 27 | 0x24,0x73,0x00, 0x25,0x1d,0x00, 0x25,0x24,0x00, 0x25,0x2b,0x00, 0x25,0x2d,0x02, 0x25,0x55,0x00, 0x25,0x71,0x00, 0x26,0x1a,0x00, 0x26,0x1c,0x00, 0x26,0x2e,0x00, 0x26,0x31,0x01, 0x26,0x48,0x00, 0x26,0x6c,0x01, 0x27,0x02,0x00, 0x27,0x06,0x00, 0x27,0x19,0x00, 28 | 0x27,0x22,0x00, 0x27,0x2c,0x00, 0x27,0x30,0x00, 0x27,0x42,0x00, 0x27,0x47,0x00, 0x27,0x54,0x00, 0x27,0x6b,0x00, 0x28,0x45,0x00, 0x28,0x53,0x00, 0x29,0x05,0x00, 0x29,0x18,0x00, 0x29,0x1a,0x00, 0x29,0x23,0x00, 0x29,0x43,0x00, 0x29,0x46,0x00, 0x29,0x52,0x00, 29 | 0x2a,0x01,0x00, 0x2a,0x21,0x00, 0x2a,0x48,0x00, 0x2a,0x4f,0x01, 0x2b,0x0d,0x00, 0x2b,0x11,0x01, 0x2b,0x22,0x00, 0x2b,0x44,0x00, 0x2c,0x04,0x00, 0x2c,0x0d,0x00, 0x2c,0x12,0x00, 0x2c,0x14,0x00, 0x2c,0x16,0x00, 0x2c,0x18,0x00, 0x2c,0x2f,0x04, 0x2d,0x00,0x00, 30 | 0x2d,0x15,0x00, 0x2d,0x20,0x00, 0x2d,0x2d,0x00, 0x2d,0x45,0x00, 0x2e,0x00,0x00, 0x2e,0x17,0x00, 0x2e,0x2d,0x00, 0x2e,0x45,0x00, 0x2f,0x1f,0x00, 0x30,0x03,0x00, 0x30,0x07,0x00, 0x30,0x16,0x00, 0x30,0x21,0x00, 0x30,0x26,0x00, 0x30,0x51,0x00, 0x30,0x55,0x00, 31 | 0x31,0x03,0x00, 0x31,0x07,0x00, 0x31,0x14,0x00, 0x31,0x1e,0x00, 0x31,0x29,0x00, 0x31,0x3a,0x05, 0x31,0x57,0x00, 0x32,0x03,0x00, 0x32,0x15,0x00, 0x32,0x2a,0x00, 0x32,0x2f,0x00, 0x33,0x1d,0x00, 0x33,0x22,0x00, 0x33,0x3d,0x00, 0x33,0x40,0x01, 0x34,0x00,0x00, 32 | 0x34,0x24,0x01, 0x34,0x2a,0x00, 0x34,0x30,0x00, 0x34,0x42,0x00, 0x35,0x00,0x00, 0x35,0x14,0x00, 0x35,0x42,0x00, 0x35,0x47,0x00, 0x35,0x4a,0x00, 0x35,0x6b,0x00, 0x36,0x04,0x00, 0x36,0x07,0x01, 0x36,0x1b,0x00, 0x36,0x3e,0x00, 0x36,0x45,0x00, 0x36,0x47,0x00, 33 | 0x36,0x4b,0x00, 0x36,0x58,0x00, 0x36,0x6b,0x00, 0x37,0x40,0x01, 0x37,0x43,0x00, 0x37,0x4f,0x00, 0x38,0x01,0x00, 0x38,0x08,0x01, 0x38,0x13,0x00, 0x38,0x1a,0x00, 0x38,0x31,0x00, 0x38,0x3e,0x01, 0x38,0x50,0x00, 0x39,0x06,0x00, 0x39,0x0a,0x00, 0x39,0x31,0x00, 34 | 0x39,0x3e,0x00, 0x39,0x41,0x00, 0x39,0x47,0x00, 0x39,0x52,0x03, 0x39,0x6a,0x00, 0x3a,0x11,0x00, 0x3a,0x19,0x00, 0x3a,0x31,0x00, 0x3a,0x40,0x00, 0x3a,0x48,0x00, 0x3b,0x09,0x00, 0x3b,0x0b,0x00, 0x3b,0x0e,0x02, 0x3b,0x12,0x00, 0x3b,0x1a,0x00, 0x3b,0x49,0x01, 35 | 0x3b,0x69,0x00, 0x3c,0x0b,0x00, 0x3c,0x0e,0x02, 0x3c,0x12,0x00, 0x3c,0x18,0x00, 0x3c,0x1e,0x02, 0x3c,0x26,0x00, 0x3c,0x32,0x00, 0x3c,0x3e,0x00, 0x3d,0x0f,0x01, 0x3d,0x24,0x00, 0x3d,0x3e,0x00, 0x3d,0x43,0x01, 0x3e,0x07,0x00, 0x3e,0x17,0x00, 0x3e,0x33,0x00, 36 | 0x3e,0x3e,0x00, 0x3e,0x42,0x00, 0x3f,0x09,0x00, 0x3f,0x1b,0x00, 0x3f,0x24,0x00, 0x3f,0x3e,0x00, 0x3f,0x67,0x00, 0x40,0x1f,0x00, 0x41,0x11,0x00, 0x41,0x16,0x00, 0x41,0x1f,0x00, 0x41,0x23,0x00, 0x41,0x34,0x00, 0x41,0x3e,0x00, 0x42,0x0b,0x00, 0x42,0x11,0x00, 37 | 0x42,0x23,0x00, 0x42,0x34,0x00, 0x42,0x3d,0x00, 0x42,0x50,0x00, 0x43,0x0f,0x00, 0x43,0x11,0x00, 0x43,0x1d,0x01, 0x43,0x34,0x00, 0x43,0x3e,0x00, 0x44,0x0a,0x00, 0x44,0x15,0x00, 0x44,0x20,0x00, 0x44,0x34,0x00, 0x44,0x3c,0x01, 0x44,0x54,0x00, 0x45,0x09,0x00, 38 | 0x45,0x15,0x00, 0x45,0x34,0x00, 0x45,0x4f,0x00, 0x45,0x55,0x00, 0x46,0x08,0x00, 0x46,0x0d,0x00, 0x46,0x40,0x00, 0x46,0x53,0x01, 0x46,0x5f,0x02, 0x46,0x66,0x00, 0x47,0x0d,0x00, 0x47,0x4a,0x00, 0x47,0x5d,0x05, 0x48,0x1b,0x00, 0x48,0x33,0x00, 0x48,0x3d,0x00, 39 | 0x48,0x58,0x0a, 0x48,0x67,0x00, 0x49,0x0d,0x00, 0x49,0x12,0x00, 0x49,0x14,0x00, 0x49,0x23,0x00, 0x49,0x4f,0x02, 0x49,0x56,0x0d, 0x4a,0x12,0x00, 0x4a,0x14,0x00, 0x4a,0x1a,0x00, 0x4a,0x21,0x00, 0x4a,0x32,0x00, 0x4a,0x3a,0x00, 0x4a,0x4d,0x16, 0x4b,0x06,0x00, 40 | 0x4b,0x0c,0x00, 0x4b,0x14,0x00, 0x4b,0x38,0x00, 0x4b,0x46,0x00, 0x4b,0x4b,0x18, 0x4c,0x06,0x00, 0x4c,0x13,0x01, 0x4c,0x22,0x00, 0x4c,0x36,0x00, 0x4c,0x4a,0x19, 0x4d,0x0d,0x00, 0x4d,0x10,0x00, 0x4d,0x27,0x00, 0x4d,0x2f,0x00, 0x4d,0x45,0x00, 0x4d,0x4a,0x19, 41 | 0x4e,0x0b,0x00, 0x4e,0x0e,0x00, 0x4e,0x24,0x00, 0x4e,0x2b,0x00, 0x4e,0x45,0x00, 0x4e,0x49,0x1a, 0x4f,0x07,0x00, 0x4f,0x49,0x19, 0x50,0x08,0x00, 0x50,0x0c,0x00, 0x50,0x16,0x00, 0x50,0x18,0x00, 0x50,0x20,0x00, 0x50,0x30,0x00, 0x50,0x49,0x18, 0x51,0x09,0x00, 42 | 0x51,0x2a,0x00, 0x51,0x49,0x17, 0x52,0x09,0x00, 0x52,0x45,0x00, 0x52,0x49,0x15, 0x53,0x09,0x00, 0x53,0x17,0x00, 0x53,0x28,0x00, 0x53,0x45,0x00, 0x53,0x4a,0x12, 0x54,0x17,0x01, 0x54,0x4a,0x10, 0x54,0x68,0x00, 0x55,0x17,0x00, 0x55,0x1e,0x00, 0x55,0x4a,0x0e, 43 | 0x55,0x5b,0x00, 0x56,0x25,0x00, 0x56,0x46,0x00, 0x56,0x4b,0x0b, 0x56,0x59,0x00, 0x56,0x66,0x00, 0x57,0x4d,0x05, 0x57,0x57,0x00, 0x57,0x64,0x00, 0x58,0x11,0x00, 0x58,0x19,0x00, 0x58,0x47,0x00, 0x58,0x54,0x00, 0x58,0x62,0x00, 0x59,0x15,0x00, 0x59,0x1f,0x00, 44 | 0x59,0x48,0x00, 0x59,0x50,0x01, 0x59,0x5f,0x00, 0x5a,0x4e,0x00, 0x5a,0x5e,0x00, 0x5b,0x0f,0x00, 0x5b,0x4a,0x00, 0x5b,0x50,0x02, 0x5c,0x11,0x00, 0x5c,0x19,0x00, 0x5c,0x5b,0x00, 0x5d,0x59,0x00, 0x5e,0x56,0x00, 0x5f,0x4f,0x03, 45 | }; 46 | 47 | const unsigned short fontmario2_CharOffs[2] PROGMEM = { 48 | 0x0000, 0x01de, 49 | }; 50 | 51 | RRE_Font rre_mario2 = { RRE_V24B, 96,128, 0x20, 0x20, (const uint8_t*)fontmario2_Rects, (const uint16_t*)fontmario2_CharOffs }; 52 | 53 | #endif 54 | 55 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | 9 | This version of the GNU Lesser General Public License incorporates 10 | the terms and conditions of version 3 of the GNU General Public 11 | License, supplemented by the additional permissions listed below. 12 | 13 | 0. Additional Definitions. 14 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 17 | General Public License. 18 | 19 | "The Library" refers to a covered work governed by this License, 20 | other than an Application or a Combined Work as defined below. 21 | 22 | An "Application" is any work that makes use of an interface provided 23 | by the Library, but which is not otherwise based on the Library. 24 | Defining a subclass of a class defined by the Library is deemed a mode 25 | of using an interface provided by the Library. 26 | 27 | A "Combined Work" is a work produced by combining or linking an 28 | Application with the Library. The particular version of the Library 29 | with which the Combined Work was made is also called the "Linked 30 | Version". 31 | 32 | The "Minimal Corresponding Source" for a Combined Work means the 33 | Corresponding Source for the Combined Work, excluding any source code 34 | for portions of the Combined Work that, considered in isolation, are 35 | based on the Application, and not on the Linked Version. 36 | 37 | The "Corresponding Application Code" for a Combined Work means the 38 | object code and/or source code for the Application, including any data 39 | and utility programs needed for reproducing the Combined Work from the 40 | Application, but excluding the System Libraries of the Combined Work. 41 | 42 | 1. Exception to Section 3 of the GNU GPL. 43 | 44 | You may convey a covered work under sections 3 and 4 of this License 45 | without being bound by section 3 of the GNU GPL. 46 | 47 | 2. Conveying Modified Versions. 48 | 49 | If you modify a copy of the Library, and, in your modifications, a 50 | facility refers to a function or data to be supplied by an Application 51 | that uses the facility (other than as an argument passed when the 52 | facility is invoked), then you may convey a copy of the modified 53 | version: 54 | 55 | a) under this License, provided that you make a good faith effort to 56 | ensure that, in the event an Application does not supply the 57 | function or data, the facility still operates, and performs 58 | whatever part of its purpose remains meaningful, or 59 | 60 | b) under the GNU GPL, with none of the additional permissions of 61 | this License applicable to that copy. 62 | 63 | 3. Object Code Incorporating Material from Library Header Files. 64 | 65 | The object code form of an Application may incorporate material from 66 | a header file that is part of the Library. You may convey such object 67 | code under terms of your choice, provided that, if the incorporated 68 | material is not limited to numerical parameters, data structure 69 | layouts and accessors, or small macros, inline functions and templates 70 | (ten or fewer lines in length), you do both of the following: 71 | 72 | a) Give prominent notice with each copy of the object code that the 73 | Library is used in it and that the Library and its use are 74 | covered by this License. 75 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license 77 | document. 78 | 79 | 4. Combined Works. 80 | 81 | You may convey a Combined Work under terms of your choice that, 82 | taken together, effectively do not restrict modification of the 83 | portions of the Library contained in the Combined Work and reverse 84 | engineering for debugging such modifications, if you also do each of 85 | the following: 86 | 87 | a) Give prominent notice with each copy of the Combined Work that 88 | the Library is used in it and that the Library and its use are 89 | covered by this License. 90 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 92 | document. 93 | 94 | c) For a Combined Work that displays copyright notices during 95 | execution, include the copyright notice for the Library among 96 | these notices, as well as a reference directing the user to the 97 | copies of the GNU GPL and this license document. 98 | 99 | d) Do one of the following: 100 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this 102 | License, and the Corresponding Application Code in a form 103 | suitable for, and under terms that permit, the user to 104 | recombine or relink the Application with a modified version of 105 | the Linked Version to produce a modified Combined Work, in the 106 | manner specified by section 6 of the GNU GPL for conveying 107 | Corresponding Source. 108 | 109 | 1) Use a suitable shared library mechanism for linking with the 110 | Library. A suitable mechanism is one that (a) uses at run time 111 | a copy of the Library already present on the user's computer 112 | system, and (b) will operate properly with a modified version 113 | of the Library that is interface-compatible with the Linked 114 | Version. 115 | 116 | e) Provide Installation Information, but only if you would otherwise 117 | be required to provide such information under section 6 of the 118 | GNU GPL, and only to the extent that such information is 119 | necessary to install and execute a modified version of the 120 | Combined Work produced by recombining or relinking the 121 | Application with a modified version of the Linked Version. (If 122 | you use option 4d0, the Installation Information must accompany 123 | the Minimal Corresponding Source and Corresponding Application 124 | Code. If you use option 4d1, you must provide the Installation 125 | Information in the manner specified by section 6 of the GNU GPL 126 | for conveying Corresponding Source.) 127 | 128 | 5. Combined Libraries. 129 | 130 | You may place library facilities that are a work based on the 131 | Library side by side in a single library together with other library 132 | facilities that are not Applications and are not covered by this 133 | License, and convey such a combined library under terms of your 134 | choice, if you do both of the following: 135 | 136 | a) Accompany the combined library with a copy of the same work based 137 | on the Library, uncombined with any other library facilities, 138 | conveyed under the terms of this License. 139 | 140 | b) Give prominent notice with the combined library that part of it 141 | is a work based on the Library, and explaining where to find the 142 | accompanying uncombined form of the same work. 143 | 144 | 6. Revised Versions of the GNU Lesser General Public License. 145 | 146 | The Free Software Foundation may publish revised and/or new versions 147 | of the GNU Lesser General Public License from time to time. Such new 148 | versions will be similar in spirit to the present version, but may 149 | differ in detail to address new problems or concerns. 150 | 151 | Each version is given a distinguishing version number. If the 152 | Library as you received it specifies that a certain numbered version 153 | of the GNU Lesser General Public License "or any later version" 154 | applies to it, you have the option of following the terms and 155 | conditions either of that published version or of any later version 156 | published by the Free Software Foundation. If the Library as you 157 | received it does not specify a version number of the GNU Lesser 158 | General Public License, you may choose any version of the GNU Lesser 159 | General Public License ever published by the Free Software Foundation. 160 | 161 | If the Library as you received it specifies that a proxy can decide 162 | whether future versions of the GNU Lesser General Public License shall 163 | apply, that proxy's public statement of acceptance of any version is 164 | permanent authorization for you to choose that version for the 165 | Library. 166 | -------------------------------------------------------------------------------- /examples/ST7735_ColorClock_4LCD/ST7735_ColorClock_4LCD.ino: -------------------------------------------------------------------------------- 1 | // ST7735 library axample 2 | // MultiLCD Color RTC Clock 3 | // Requires RRE font library 4 | // (C)2019 Pawel A. Hernik 5 | // YouTube video: https://youtu.be/tBNnuXBP5rg 6 | 7 | /* 8 | ST7735 128x160 1.8" LCD pinout (header at the top, from left): 9 | #1 LED -> 3.3V 10 | #2 SCK -> SCL/PA5 11 | #3 SDA -> MOSI/PA7 12 | #4 A0/DC -> PA1 or any digital 13 | #5 RESET -> PA0 or any digital 14 | #6 CS -> PA2/PA3/PA4/PB0 or any digital 15 | #7 GND -> GND 16 | #8 VCC -> 3.3V 17 | */ 18 | 19 | #include 20 | #include 21 | 22 | #if (__STM32F1__) // bluepill 23 | #define TFT_CS1 PA2 24 | #define TFT_CS2 PA3 25 | #define TFT_CS3 PA4 26 | #define TFT_CS4 PB0 27 | #define TFT_DC PA1 28 | #define TFT_RST PA0 29 | #include 30 | #else 31 | #define TFT_CS1 7 32 | #define TFT_CS2 6 33 | #define TFT_CS3 5 34 | #define TFT_CS4 4 35 | #define TFT_DC 8 36 | #define TFT_RST 9 37 | //#include 38 | #endif 39 | 40 | #define SCR_WD 128 41 | #define SCR_HT 160 42 | Arduino_ST7735 lcd1 = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS1); // only 1 reset line 43 | Arduino_ST7735 lcd2 = Arduino_ST7735(TFT_DC, -1, TFT_CS2); 44 | Arduino_ST7735 lcd3 = Arduino_ST7735(TFT_DC, -1, TFT_CS3); 45 | Arduino_ST7735 lcd4 = Arduino_ST7735(TFT_DC, -1, TFT_CS4); 46 | 47 | static Arduino_ST7735 *lcd = &lcd1; // current LCD for RRE fillRect callbacks 48 | 49 | #include 50 | RTClock rtclock(RTCSEL_LSE); // RTC set to LSE 32768Hz clock, counts seconds 51 | tm_t curTime; 52 | 53 | uint8_t txt2num(const char* p) 54 | { 55 | return 10*(*p-'0') + *(p+1)-'0'; 56 | } 57 | 58 | uint8_t hh = txt2num(__TIME__+0); 59 | uint8_t mm = txt2num(__TIME__+3); 60 | uint8_t ss = txt2num(__TIME__+6); 61 | 62 | #include "RREFont.h" 63 | #include "rre_bold13x20h.h" 64 | #include "rre_kx16x26h.h" 65 | #include "rre_kx9x14h.h" 66 | #include "rre_arialdig72nh.h" 67 | #include "rre_arialdig150b.h" 68 | 69 | #include "pat1.h" 70 | #include "pat2.h" 71 | #include "pat3.h" 72 | #include "pat4.h" 73 | #include "pat5.h" 74 | #include "pat6.h" 75 | #include "pat7.h" 76 | #include "pat8.h" 77 | 78 | RREFont font; 79 | 80 | // ------------------------- 81 | // regular 1 color fillRect 82 | void customRect(int x, int y, int w, int h, int c) { lcd->fillRect(x, y, w, h, c); } 83 | // ------------------------- 84 | int yy0,colH=13; 85 | int wheelStart = 0, wheelMul = 1; 86 | void setWheel(int st, int mul) 87 | { 88 | wheelStart = st; 89 | wheelMul = mul; 90 | } 91 | // RGB wheel rainbow fillRect 92 | void customRectWheel(int x, int y, int w, int h, int c) 93 | { 94 | int yy = y-yy0; 95 | for(int i=0;ifillRect(x, y+i, w, 1, lcd->rgbWheel(wheelStart+(yy+i)*wheelMul)); 96 | } 97 | // ------------------------- 98 | uint8_t col1R=0,col1G=130,col1B=130; 99 | uint8_t col2R=0,col2G=240,col2B=200; 100 | uint8_t col3R=0,col3G=130,col3B=130; 101 | 102 | void set2Cols(int r1,int g1,int b1,int r2,int g2,int b2,int h) 103 | { 104 | col1R=r1,col1G=g1,col1B=b1; 105 | col2R=r2,col2G=g2,col2B=b2; 106 | colH=h; 107 | } 108 | 109 | void set3Cols(int r1,int g1,int b1,int r2,int g2,int b2,int r3,int g3,int b3,int h) 110 | { 111 | col1R=r1,col1G=g1,col1B=b1; 112 | col2R=r2,col2G=g2,col2B=b2; 113 | col3R=r3,col3G=g3,col3B=b3; 114 | colH=h; 115 | } 116 | 117 | // smooth transition between 2 colors (top/bottom) 118 | void customRect2Cols(int x, int y, int w, int h, int c) 119 | { 120 | int yy = y-yy0; 121 | uint16_t cc; 122 | for(int i=0;ifillRect(x, y+i, w, 1, cc); 125 | } 126 | } 127 | 128 | // smooth transition between 3 colors (top/middle/bottom) 129 | void customRect3Cols(int x, int y, int w, int h, int c) 130 | { 131 | int yy,h2 = colH/2; 132 | uint16_t cc; 133 | for(int i=0;ifillRect(x, y+i, w, 1, cc); 140 | } 141 | } 142 | // ------------------------- 143 | const uint16_t *fontPat = pat6+3; 144 | // RRE font filled with RGB pattern 145 | void customRectPat(int x, int y, int w, int h, int c) 146 | { 147 | uint16_t pat[128]; 148 | for(int j=0;jdrawImage(x, y+j, w, 1, pat); 151 | } 152 | } 153 | // ------------------------- 154 | 155 | char buf[100]; 156 | unsigned long cnt; 157 | 158 | // simplified outline, requires only 4 draws 159 | void printOutline(int x, int y, char *txt, int mode=0, int outl=1) 160 | { 161 | font.setFillRectFun(customRect); 162 | if(outl>0) { 163 | font.printStr(x-outl,y-outl,txt); 164 | font.printStr(x+outl,y-outl,txt); 165 | font.printStr(x-outl,y+outl,txt); 166 | font.printStr(x+outl,y+outl,txt); 167 | } 168 | if((mode&7)==0) font.setFillRectFun(customRectPat); else 169 | if((mode&7)==1) font.setFillRectFun(customRectWheel); else 170 | if((mode&7)==2) font.setFillRectFun(customRect2Cols); else 171 | if((mode&7)==3) font.setFillRectFun(customRect3Cols); 172 | font.printStr(x,y,txt); 173 | } 174 | 175 | void fillPatternAll(const uint16_t *pat) 176 | { 177 | for(int j=0;jdrawImageF(i,j,pat); 188 | } 189 | 190 | // -------------------------------------------------------------------------- 191 | const char *months[] = {"???", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; 192 | const char *delim = " :"; 193 | char bld[40]; 194 | 195 | uint8_t str2month(const char * d) 196 | { 197 | uint8_t i = 13; 198 | while((--i) && strcmp(months[i], d)); 199 | return i; 200 | } 201 | 202 | void setBuildTime(struct tm_t & mt) 203 | { 204 | // Timestamp format: "Mar 3 2019 12:34:56" 205 | snprintf(bld,40,"%s %s\n", __DATE__, __TIME__); 206 | char *token = strtok(bld, delim); 207 | while(token) { 208 | int m = str2month((const char*)token); 209 | if(m>0) { 210 | mt.month = m; 211 | token = strtok(NULL, delim); mt.day = atoi(token); 212 | token = strtok(NULL, delim); mt.year = atoi(token) - 1970; 213 | token = strtok(NULL, delim); mt.hour = atoi(token); 214 | token = strtok(NULL, delim); mt.minute = atoi(token); 215 | token = strtok(NULL, delim); mt.second = atoi(token); 216 | } 217 | token = strtok(NULL, delim); 218 | } 219 | //snprintf(bld,40,"Build: %02d-%02d-%02d %02d:%02d:%02d\n",mt.year+1970,mt.month,mt.day,mt.hour,mt.minute,mt.second); Serial.println(bld); 220 | rtclock.setTime(rtclock.makeTime(mt)+10); 221 | } 222 | //----------------------------------------------------------------------------- 223 | 224 | void setup() 225 | { 226 | //Serial.begin(9600); 227 | lcd1.init(); 228 | lcd2.init(); 229 | lcd3.init(); 230 | lcd4.init(); 231 | lcd1.fillScreen(RED); 232 | lcd2.fillScreen(GREEN); 233 | lcd3.fillScreen(BLUE); 234 | lcd4.fillScreen(MAGENTA); 235 | //delay(1000); 236 | font.init(customRect, SCR_WD, SCR_HT); // custom fillRect function and screen width and height values 237 | font.setScale(1,1); 238 | 239 | rtclock.breakTime(rtclock.now(), curTime); 240 | if(curTime.year+1970<2019) setBuildTime(curTime); // <2019 - invalid year 241 | } 242 | 243 | void printStyle(int x, int y, int style) 244 | { 245 | switch(style) { 246 | case 0: // RGB wheel 247 | setWheel(170,3); 248 | printOutline(x,y,buf,1); 249 | break; 250 | case 1: // cyan bright top 251 | set2Cols(0,230,230, 0,40,40, 146); 252 | printOutline(x,y,buf,2); 253 | break; 254 | case 2: // yellow-red 255 | set2Cols(240,240,0, 200,0,0, 146); 256 | printOutline(x,y,buf,2); 257 | break; 258 | case 3: // green-yellow 259 | set2Cols(0,240,0, 250,0,0, 146); 260 | printOutline(x,y,buf,2); 261 | break; 262 | case 4: // cyan 263 | set3Cols(0,90,90, 0,240,200, 0,90,90, 146); 264 | printOutline(x,y,buf,3); 265 | break; 266 | case 5: // red-yellow-red 267 | set3Cols(210,0,0, 250,250,0, 210,0,0, 146); 268 | printOutline(x,y,buf,3); 269 | break; 270 | case 6: // green-yellow-red 271 | set3Cols(0,190,0, 220,220,0, 190,0,0, 146); 272 | printOutline(x,y,buf,3); 273 | break; 274 | case 7: 275 | fontPat = pat1+3; 276 | printOutline(x,y,buf,0); 277 | break; 278 | case 8: 279 | fontPat = pat6+3; 280 | printOutline(x,y,buf,0); 281 | break; 282 | case 9: 283 | fontPat = pat5+3; 284 | printOutline(x,y,buf,0); 285 | break; 286 | } 287 | } 288 | 289 | int i=1; 290 | 291 | void loop() 292 | { 293 | rtclock.breakTime(rtclock.now(), curTime); 294 | hh=curTime.hour; 295 | mm=curTime.minute; 296 | ss=curTime.second; 297 | font.setColor(BLACK); 298 | yy0 = 6; 299 | font.setFont(&rre_ArialDig150b); font.setDigitMinWd(103); font.setCharMinWd(20); font.setScale(1); 300 | 301 | buf[0] = '0'+hh/10; 302 | lcd = &lcd1; 303 | //fillPattern(i&1 ? pat2 : pat7); // no room for pat7 in 64KB version of STM32 304 | fillPattern(i&1 ? pat2 : pat5); 305 | printStyle(12,yy0,i); 306 | 307 | buf[0] = '0'+hh%10; 308 | lcd = &lcd2; 309 | fillPattern(i&1 ? pat2 : pat5); 310 | printStyle(12,yy0,i); 311 | 312 | buf[0] = '0'+mm/10; 313 | lcd = &lcd3; 314 | fillPattern(i&1 ? pat2 : pat5); 315 | printStyle(12,yy0,i); 316 | 317 | buf[0] = '0'+mm%10; 318 | lcd = &lcd4; 319 | fillPattern(i&1 ? pat2 : pat5); 320 | printStyle(12,yy0,i); 321 | 322 | delay(6000); 323 | if(++i>9) i=0; 324 | } 325 | 326 | -------------------------------------------------------------------------------- /examples/ST7735_Mario_RRE/rre_mario0_v.h: -------------------------------------------------------------------------------- 1 | #ifndef __font_mario0_h__ 2 | #define __font_mario0_h__ 3 | 4 | /* 5 | *** Generated by rrefontgen *** 6 | Font: [mario0] 96x128 7 | Total chars: 1 (' ' to ' ') 8 | Total rects: 647 * 3 bytes 9 | Total pixels: 2777 (4 overlapping) 10 | Total bytes: 1943 (1941 rects + 2 offs) 11 | Bitmap size: 1536 (96x128 * 1) (+1 opt) 12 | */ 13 | 14 | const unsigned char fontmario0_Rects[1941] PROGMEM = { 15 | 0x00,0x58,0x01, 0x01,0x54,0x09, 0x02,0x52,0x0d, 0x03,0x50,0x05, 0x03,0x5b,0x05, 0x04,0x4f,0x03, 0x04,0x5e,0x04, 0x05,0x4e,0x03, 0x05,0x5f,0x03, 0x06,0x4e,0x02, 0x06,0x60,0x03, 0x07,0x4b,0x04, 0x07,0x57,0x01, 0x07,0x61,0x03, 0x08,0x4a,0x04, 0x08,0x55,0x03, 16 | 0x08,0x62,0x02, 0x09,0x49,0x05, 0x09,0x54,0x03, 0x09,0x62,0x03, 0x0a,0x27,0x07, 0x0a,0x48,0x03, 0x0a,0x4e,0x00, 0x0a,0x63,0x02, 0x0a,0x6e,0x09, 0x0b,0x25,0x0b, 0x0b,0x48,0x02, 0x0b,0x63,0x02, 0x0b,0x6b,0x0e, 0x0c,0x23,0x0e, 0x0c,0x48,0x02, 0x0c,0x64,0x02, 17 | 0x0c,0x68,0x12, 0x0d,0x23,0x03, 0x0d,0x2e,0x09, 0x0d,0x48,0x02, 0x0d,0x58,0x02, 0x0d,0x64,0x09, 0x0d,0x78,0x03, 0x0e,0x22,0x03, 0x0e,0x30,0x0a, 0x0e,0x47,0x03, 0x0e,0x56,0x03, 0x0e,0x64,0x06, 0x0e,0x79,0x02, 0x0f,0x21,0x03, 0x0f,0x2f,0x03, 0x0f,0x36,0x05, 18 | 0x0f,0x46,0x04, 0x0f,0x55,0x01, 0x0f,0x64,0x02, 0x0f,0x73,0x09, 0x10,0x21,0x02, 0x10,0x2d,0x02, 0x10,0x39,0x03, 0x10,0x46,0x04, 0x10,0x64,0x01, 0x10,0x6c,0x10, 0x11,0x20,0x03, 0x11,0x2c,0x02, 0x11,0x3a,0x03, 0x11,0x45,0x05, 0x11,0x64,0x01, 0x11,0x68,0x04, 19 | 0x11,0x7a,0x03, 0x12,0x1f,0x03, 0x12,0x2c,0x01, 0x12,0x3b,0x03, 0x12,0x45,0x02, 0x12,0x49,0x01, 0x12,0x64,0x03, 0x12,0x7b,0x03, 0x13,0x1c,0x09, 0x13,0x2b,0x01, 0x13,0x3c,0x03, 0x13,0x44,0x02, 0x13,0x4a,0x00, 0x13,0x5f,0x01, 0x13,0x64,0x01, 0x13,0x7c,0x02, 20 | 0x14,0x19,0x09, 0x14,0x2b,0x01, 0x14,0x3d,0x02, 0x14,0x43,0x03, 0x14,0x4a,0x01, 0x14,0x5d,0x03, 0x14,0x64,0x01, 0x14,0x7c,0x02, 0x15,0x16,0x09, 0x15,0x2b,0x01, 0x15,0x3d,0x03, 0x15,0x43,0x02, 0x15,0x4a,0x01, 0x15,0x5c,0x03, 0x15,0x63,0x01, 0x15,0x7c,0x03, 21 | 0x16,0x14,0x08, 0x16,0x2b,0x00, 0x16,0x3e,0x02, 0x16,0x42,0x02, 0x16,0x4b,0x01, 0x16,0x5c,0x00, 0x16,0x5f,0x01, 0x16,0x62,0x02, 0x16,0x7c,0x03, 0x17,0x12,0x07, 0x17,0x2b,0x00, 0x17,0x31,0x00, 0x17,0x3e,0x02, 0x17,0x42,0x02, 0x17,0x4c,0x00, 0x17,0x5f,0x04, 22 | 0x17,0x7c,0x03, 0x18,0x11,0x06, 0x18,0x2b,0x00, 0x18,0x3e,0x06, 0x18,0x4c,0x01, 0x18,0x5f,0x03, 0x18,0x7c,0x03, 0x19,0x0f,0x06, 0x19,0x2b,0x00, 0x19,0x32,0x00, 0x19,0x3e,0x05, 0x19,0x4d,0x01, 0x19,0x5f,0x01, 0x19,0x7c,0x03, 0x1a,0x0e,0x05, 0x1a,0x29,0x03, 23 | 0x1a,0x33,0x01, 0x1a,0x39,0x00, 0x1a,0x3e,0x05, 0x1a,0x4e,0x06, 0x1a,0x5e,0x01, 0x1a,0x7c,0x02, 0x1b,0x0c,0x05, 0x1b,0x27,0x05, 0x1b,0x34,0x01, 0x1b,0x38,0x00, 0x1b,0x3e,0x05, 0x1b,0x4d,0x09, 0x1b,0x5c,0x03, 0x1b,0x7c,0x02, 0x1c,0x0b,0x05, 0x1c,0x26,0x02, 24 | 0x1c,0x2b,0x02, 0x1c,0x3e,0x04, 0x1c,0x4c,0x05, 0x1c,0x54,0x0b, 0x1c,0x7b,0x03, 0x1d,0x0a,0x05, 0x1d,0x24,0x02, 0x1d,0x2d,0x02, 0x1d,0x3e,0x04, 0x1d,0x4b,0x04, 0x1d,0x55,0x00, 0x1d,0x58,0x04, 0x1d,0x5e,0x02, 0x1d,0x7a,0x03, 0x1e,0x09,0x04, 0x1e,0x23,0x02, 25 | 0x1e,0x2f,0x01, 0x1e,0x3e,0x04, 0x1e,0x4b,0x02, 0x1e,0x55,0x01, 0x1e,0x5f,0x01, 0x1e,0x64,0x0a, 0x1e,0x79,0x04, 0x1f,0x08,0x04, 0x1f,0x21,0x03, 0x1f,0x30,0x01, 0x1f,0x3d,0x01, 0x1f,0x40,0x02, 0x1f,0x4a,0x01, 0x1f,0x56,0x00, 0x1f,0x5f,0x02, 0x1f,0x63,0x02, 26 | 0x1f,0x76,0x06, 0x20,0x07,0x04, 0x20,0x20,0x01, 0x20,0x23,0x04, 0x20,0x31,0x01, 0x20,0x3d,0x05, 0x20,0x4a,0x00, 0x20,0x56,0x00, 0x20,0x60,0x03, 0x20,0x72,0x09, 0x21,0x07,0x03, 0x21,0x1f,0x01, 0x21,0x23,0x01, 0x21,0x26,0x03, 0x21,0x2f,0x00, 0x21,0x32,0x01, 27 | 0x21,0x3e,0x04, 0x21,0x49,0x01, 0x21,0x56,0x01, 0x21,0x61,0x02, 0x21,0x71,0x09, 0x22,0x06,0x03, 0x22,0x1e,0x01, 0x22,0x23,0x01, 0x22,0x29,0x01, 0x22,0x2e,0x02, 0x22,0x33,0x00, 0x22,0x3f,0x03, 0x22,0x49,0x00, 0x22,0x56,0x01, 0x22,0x61,0x02, 0x22,0x6e,0x0a, 28 | 0x23,0x05,0x03, 0x23,0x1d,0x01, 0x23,0x23,0x01, 0x23,0x2a,0x01, 0x23,0x2e,0x03, 0x23,0x33,0x01, 0x23,0x3f,0x04, 0x23,0x48,0x01, 0x23,0x56,0x01, 0x23,0x62,0x11, 0x24,0x04,0x03, 0x24,0x1c,0x01, 0x24,0x23,0x01, 0x24,0x2b,0x01, 0x24,0x2e,0x00, 0x24,0x33,0x00, 29 | 0x24,0x40,0x03, 0x24,0x48,0x00, 0x24,0x56,0x01, 0x24,0x62,0x10, 0x25,0x04,0x03, 0x25,0x1b,0x01, 0x25,0x23,0x00, 0x25,0x2c,0x00, 0x25,0x30,0x03, 0x25,0x41,0x03, 0x25,0x47,0x01, 0x25,0x56,0x00, 0x25,0x64,0x01, 0x25,0x67,0x09, 0x26,0x03,0x03, 0x26,0x1b,0x00, 30 | 0x26,0x23,0x00, 0x26,0x2c,0x01, 0x26,0x2f,0x01, 0x26,0x42,0x05, 0x26,0x55,0x01, 0x26,0x67,0x04, 0x27,0x03,0x02, 0x27,0x1a,0x01, 0x27,0x23,0x00, 0x27,0x2d,0x02, 0x27,0x43,0x03, 0x27,0x55,0x01, 0x27,0x68,0x02, 0x28,0x02,0x03, 0x28,0x19,0x01, 0x28,0x22,0x01, 31 | 0x28,0x43,0x01, 0x28,0x54,0x01, 0x28,0x68,0x03, 0x29,0x02,0x02, 0x29,0x19,0x00, 0x29,0x22,0x00, 0x29,0x44,0x01, 0x29,0x53,0x01, 0x29,0x68,0x03, 0x2a,0x02,0x02, 0x2a,0x18,0x01, 0x2a,0x22,0x00, 0x2a,0x44,0x03, 0x2a,0x51,0x02, 0x2a,0x68,0x03, 0x2b,0x01,0x03, 32 | 0x2b,0x0e,0x02, 0x2b,0x17,0x01, 0x2b,0x21,0x00, 0x2b,0x45,0x0c, 0x2b,0x69,0x02, 0x2c,0x01,0x02, 0x2c,0x0b,0x01, 0x2c,0x13,0x00, 0x2c,0x17,0x00, 0x2c,0x21,0x00, 0x2c,0x45,0x01, 0x2c,0x4a,0x04, 0x2c,0x69,0x02, 0x2d,0x01,0x02, 0x2d,0x0a,0x00, 0x2d,0x14,0x00, 33 | 0x2d,0x16,0x01, 0x2d,0x21,0x00, 0x2d,0x2e,0x07, 0x2d,0x46,0x00, 0x2d,0x69,0x02, 0x2e,0x01,0x02, 0x2e,0x09,0x00, 0x2e,0x15,0x01, 0x2e,0x20,0x00, 0x2e,0x2e,0x08, 0x2e,0x46,0x00, 0x2e,0x53,0x01, 0x2e,0x69,0x02, 0x2f,0x00,0x03, 0x2f,0x08,0x00, 0x2f,0x15,0x01, 34 | 0x2f,0x20,0x00, 0x2f,0x2e,0x09, 0x2f,0x46,0x01, 0x2f,0x50,0x07, 0x2f,0x69,0x02, 0x30,0x00,0x02, 0x30,0x08,0x00, 0x30,0x15,0x00, 0x30,0x1f,0x00, 0x30,0x22,0x03, 0x30,0x2f,0x08, 0x30,0x46,0x01, 0x30,0x4f,0x01, 0x30,0x56,0x02, 0x30,0x69,0x02, 0x31,0x00,0x02, 35 | 0x31,0x15,0x00, 0x31,0x1f,0x00, 0x31,0x21,0x07, 0x31,0x2f,0x0a, 0x31,0x46,0x01, 0x31,0x4e,0x01, 0x31,0x58,0x01, 0x31,0x68,0x03, 0x32,0x00,0x02, 0x32,0x07,0x00, 0x32,0x14,0x00, 0x32,0x1e,0x00, 0x32,0x21,0x08, 0x32,0x30,0x12, 0x32,0x46,0x02, 0x32,0x4e,0x00, 36 | 0x32,0x58,0x01, 0x32,0x68,0x03, 0x33,0x00,0x03, 0x33,0x07,0x00, 0x33,0x14,0x00, 0x33,0x1e,0x00, 0x33,0x23,0x07, 0x33,0x30,0x0c, 0x33,0x42,0x01, 0x33,0x46,0x03, 0x33,0x4e,0x00, 0x33,0x59,0x01, 0x33,0x68,0x03, 0x34,0x01,0x02, 0x34,0x07,0x00, 0x34,0x13,0x01, 37 | 0x34,0x1d,0x00, 0x34,0x26,0x03, 0x34,0x31,0x0c, 0x34,0x43,0x00, 0x34,0x46,0x01, 0x34,0x49,0x02, 0x34,0x4d,0x01, 0x34,0x59,0x01, 0x34,0x68,0x03, 0x35,0x01,0x02, 0x35,0x07,0x00, 0x35,0x13,0x00, 0x35,0x1c,0x01, 0x35,0x31,0x0c, 0x35,0x43,0x00, 0x35,0x46,0x00, 38 | 0x35,0x4b,0x01, 0x35,0x4e,0x00, 0x35,0x59,0x01, 0x35,0x68,0x02, 0x36,0x01,0x02, 0x36,0x13,0x00, 0x36,0x1c,0x00, 0x36,0x31,0x0c, 0x36,0x42,0x01, 0x36,0x46,0x00, 0x36,0x4c,0x00, 0x36,0x4e,0x00, 0x36,0x59,0x00, 0x36,0x68,0x02, 0x37,0x01,0x03, 0x37,0x08,0x00, 39 | 0x37,0x12,0x01, 0x37,0x1b,0x01, 0x37,0x31,0x0e, 0x37,0x42,0x00, 0x37,0x45,0x01, 0x37,0x4b,0x01, 0x37,0x4e,0x00, 0x37,0x58,0x01, 0x37,0x67,0x03, 0x38,0x02,0x03, 0x38,0x12,0x00, 0x38,0x1b,0x00, 0x38,0x32,0x0b, 0x38,0x40,0x02, 0x38,0x45,0x01, 0x38,0x4b,0x01, 40 | 0x38,0x4f,0x00, 0x38,0x57,0x01, 0x38,0x67,0x03, 0x39,0x02,0x03, 0x39,0x09,0x00, 0x39,0x12,0x00, 0x39,0x1a,0x01, 0x39,0x32,0x0b, 0x39,0x3f,0x01, 0x39,0x44,0x02, 0x39,0x4b,0x00, 0x39,0x50,0x01, 0x39,0x56,0x01, 0x39,0x67,0x02, 0x3a,0x03,0x04, 0x3a,0x0a,0x01, 41 | 0x3a,0x12,0x00, 0x3a,0x1a,0x00, 0x3a,0x32,0x0d, 0x3a,0x44,0x03, 0x3a,0x4b,0x00, 0x3a,0x52,0x04, 0x3a,0x66,0x03, 0x3b,0x04,0x04, 0x3b,0x0c,0x01, 0x3b,0x11,0x00, 0x3b,0x19,0x00, 0x3b,0x32,0x0c, 0x3b,0x43,0x02, 0x3b,0x47,0x01, 0x3b,0x4b,0x00, 0x3b,0x66,0x02, 42 | 0x3c,0x05,0x05, 0x3c,0x11,0x00, 0x3c,0x19,0x00, 0x3c,0x33,0x0a, 0x3c,0x42,0x04, 0x3c,0x49,0x02, 0x3c,0x65,0x03, 0x3d,0x06,0x08, 0x3d,0x11,0x00, 0x3d,0x18,0x01, 0x3d,0x1d,0x06, 0x3d,0x25,0x00, 0x3d,0x33,0x0a, 0x3d,0x41,0x01, 0x3d,0x45,0x02, 0x3d,0x4a,0x01, 43 | 0x3d,0x64,0x04, 0x3e,0x08,0x09, 0x3e,0x18,0x01, 0x3e,0x1d,0x07, 0x3e,0x34,0x09, 0x3e,0x40,0x01, 0x3e,0x44,0x04, 0x3e,0x63,0x04, 0x3f,0x0a,0x07, 0x3f,0x17,0x03, 0x3f,0x1e,0x05, 0x3f,0x34,0x09, 0x3f,0x3f,0x01, 0x3f,0x43,0x06, 0x3f,0x63,0x03, 0x40,0x0d,0x04, 44 | 0x40,0x17,0x05, 0x40,0x20,0x03, 0x40,0x34,0x0b, 0x40,0x42,0x08, 0x40,0x61,0x05, 0x41,0x0c,0x04, 0x41,0x17,0x07, 0x41,0x22,0x00, 0x41,0x35,0x08, 0x41,0x41,0x04, 0x41,0x47,0x0a, 0x41,0x60,0x05, 0x42,0x0c,0x04, 0x42,0x16,0x0c, 0x42,0x35,0x07, 0x42,0x40,0x04, 45 | 0x42,0x48,0x04, 0x42,0x51,0x03, 0x42,0x5f,0x05, 0x43,0x0b,0x03, 0x43,0x10,0x00, 0x43,0x16,0x06, 0x43,0x1f,0x03, 0x43,0x35,0x07, 0x43,0x3f,0x04, 0x43,0x49,0x03, 0x43,0x53,0x02, 0x43,0x5c,0x07, 0x44,0x0b,0x02, 0x44,0x10,0x01, 0x44,0x16,0x06, 0x44,0x21,0x01, 46 | 0x44,0x35,0x06, 0x44,0x3e,0x04, 0x44,0x49,0x04, 0x44,0x55,0x01, 0x44,0x59,0x0b, 0x45,0x0a,0x03, 0x45,0x10,0x01, 0x45,0x16,0x05, 0x45,0x21,0x01, 0x45,0x35,0x0c, 0x45,0x49,0x05, 0x45,0x56,0x0f, 0x46,0x09,0x03, 0x46,0x10,0x01, 0x46,0x15,0x06, 0x46,0x21,0x01, 47 | 0x46,0x34,0x0b, 0x46,0x4a,0x08, 0x46,0x55,0x09, 0x46,0x62,0x03, 0x47,0x08,0x04, 0x47,0x10,0x01, 0x47,0x15,0x06, 0x47,0x21,0x01, 0x47,0x34,0x0a, 0x47,0x4b,0x11, 0x47,0x63,0x03, 0x48,0x07,0x05, 0x48,0x10,0x01, 0x48,0x15,0x05, 0x48,0x21,0x01, 0x48,0x34,0x08, 48 | 0x48,0x49,0x0e, 0x48,0x63,0x03, 0x49,0x07,0x03, 0x49,0x0c,0x00, 0x49,0x10,0x01, 0x49,0x15,0x05, 0x49,0x21,0x01, 0x49,0x33,0x08, 0x49,0x48,0x06, 0x49,0x52,0x03, 0x49,0x64,0x03, 0x4a,0x07,0x02, 0x4a,0x0c,0x01, 0x4a,0x10,0x01, 0x4a,0x15,0x04, 0x4a,0x22,0x01, 49 | 0x4a,0x33,0x06, 0x4a,0x47,0x05, 0x4a,0x64,0x03, 0x4b,0x07,0x02, 0x4b,0x0d,0x00, 0x4b,0x11,0x01, 0x4b,0x15,0x04, 0x4b,0x22,0x02, 0x4b,0x32,0x05, 0x4b,0x47,0x03, 0x4b,0x64,0x03, 0x4c,0x07,0x02, 0x4c,0x0d,0x01, 0x4c,0x11,0x01, 0x4c,0x15,0x03, 0x4c,0x23,0x02, 50 | 0x4c,0x31,0x04, 0x4c,0x46,0x03, 0x4c,0x64,0x03, 0x4d,0x07,0x03, 0x4d,0x0e,0x01, 0x4d,0x11,0x07, 0x4d,0x23,0x03, 0x4d,0x30,0x04, 0x4d,0x46,0x03, 0x4d,0x64,0x03, 0x4e,0x07,0x03, 0x4e,0x0f,0x08, 0x4e,0x20,0x00, 0x4e,0x25,0x05, 0x4e,0x2c,0x07, 0x4e,0x46,0x02, 51 | 0x4e,0x64,0x03, 0x4f,0x08,0x03, 0x4f,0x13,0x04, 0x4f,0x20,0x00, 0x4f,0x25,0x0d, 0x4f,0x45,0x03, 0x4f,0x63,0x04, 0x50,0x09,0x02, 0x50,0x17,0x00, 0x50,0x25,0x0a, 0x50,0x45,0x03, 0x50,0x62,0x06, 0x51,0x0a,0x02, 0x51,0x17,0x01, 0x51,0x20,0x00, 0x51,0x25,0x04, 52 | 0x51,0x45,0x03, 0x51,0x61,0x01, 0x51,0x65,0x03, 0x52,0x0a,0x02, 0x52,0x17,0x01, 0x52,0x20,0x00, 0x52,0x24,0x04, 0x52,0x46,0x02, 0x52,0x5f,0x02, 0x52,0x65,0x03, 0x53,0x0a,0x02, 0x53,0x18,0x00, 0x53,0x20,0x00, 0x53,0x23,0x04, 0x53,0x46,0x03, 0x53,0x5d,0x02, 53 | 0x53,0x64,0x04, 0x54,0x0a,0x03, 0x54,0x1f,0x08, 0x54,0x46,0x03, 0x54,0x5b,0x01, 0x54,0x62,0x05, 0x55,0x0a,0x03, 0x55,0x1f,0x07, 0x55,0x46,0x03, 0x55,0x59,0x01, 0x55,0x5f,0x08, 0x56,0x0b,0x03, 0x56,0x1d,0x07, 0x56,0x47,0x03, 0x56,0x57,0x01, 0x56,0x5d,0x08, 54 | 0x57,0x0b,0x04, 0x57,0x1c,0x05, 0x57,0x47,0x05, 0x57,0x53,0x03, 0x57,0x5c,0x07, 0x58,0x0c,0x04, 0x58,0x1a,0x06, 0x58,0x48,0x0b, 0x58,0x5a,0x07, 0x59,0x0d,0x07, 0x59,0x16,0x08, 0x59,0x49,0x06, 0x59,0x58,0x06, 0x5a,0x0e,0x0f, 0x5a,0x4a,0x03, 0x5a,0x56,0x07, 55 | 0x5b,0x10,0x0b, 0x5b,0x4b,0x04, 0x5b,0x53,0x09, 0x5c,0x12,0x06, 0x5c,0x4b,0x0f, 0x5d,0x4c,0x0c, 0x5e,0x4d,0x08, 56 | }; 57 | 58 | const unsigned short fontmario0_CharOffs[2] PROGMEM = { 59 | 0x0000, 0x0287, 60 | }; 61 | 62 | RRE_Font rre_mario0 = { RRE_V24B, 96,128, 0x20, 0x20, (const uint8_t*)fontmario0_Rects, (const uint16_t*)fontmario0_CharOffs }; 63 | 64 | #endif 65 | 66 | -------------------------------------------------------------------------------- /examples/ST7735_AmigaBallMulti/ball64.h: -------------------------------------------------------------------------------- 1 | // Generated by bmp2src by Pawel A. Hernik 2 | // Generated from: ball.bmp 3 | // Dimensions : 64x64x4 (16 colors) 4 | // Size : 2048 [0x0800] bytes 5 | 6 | 7 | const unsigned char ball64[2048+16*2+6] PROGMEM = { 8 | 64,0,64,0,4,0, // width,height,bits 9 | 0x10,0x84, // c000->130,130,130 10 | 0x00,0xf8, // c001->255, 0, 0 11 | 0x00,0xf8, // c002->255, 0, 0 12 | 0x00,0xf8, // c003->255, 0, 0 13 | 0x00,0xf8, // c004->255, 0, 0 14 | 0x00,0xf8, // c005->255, 0, 0 15 | 0x00,0xf8, // c006->255, 0, 0 16 | 0x00,0xf8, // c007->255, 0, 0 17 | 0xff,0xff, // c008->255,255,255 18 | 0xff,0xff, // c009->255,255,255 19 | 0xff,0xff, // c010->255,255,255 20 | 0xff,0xff, // c011->255,255,255 21 | 0xff,0xff, // c012->255,255,255 22 | 0xff,0xff, // c013->255,255,255 23 | 0xff,0xff, // c014->255,255,255 24 | 0xff,0xff, // c015->255,255,255 25 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 26 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 27 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 28 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 29 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x32,0x1e,0xed,0xdc, 30 | 0xcc,0xbb,0xbc,0x57,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 31 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x87,0x76,0xcc,0xbb,0xaa, 32 | 0x99,0x88,0x87,0x7e,0xe1,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 33 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x87,0x65,0x54,0x43,0xa9,0x88, 34 | 0x87,0x76,0x65,0x55,0x4b,0xaa,0xa2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 35 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x87,0x65,0x54,0x43,0x32,0x11,0x77, 36 | 0x66,0x55,0x54,0x43,0x21,0x87,0x65,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 37 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x87,0x66,0x54,0x43,0x32,0x11,0xee,0xd6, 38 | 0x55,0x54,0x43,0x32,0x1e,0xed,0x55,0x42,0xb0,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 39 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x98,0x76,0x55,0x43,0x32,0x11,0x1e,0xed,0xdc, 40 | 0xc4,0x43,0x32,0x11,0xee,0xdc,0xcc,0x32,0xda,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 41 | 0x00,0x00,0x00,0x00,0x00,0x00,0x42,0xed,0x65,0x44,0x33,0x21,0x1e,0xed,0xdc,0xcc, 42 | 0xbb,0xa3,0x21,0x1e,0xed,0xcc,0xcb,0xa2,0xec,0x93,0x00,0x00,0x00,0x00,0x00,0x00, 43 | 0x00,0x00,0x00,0x00,0x00,0x03,0x1e,0xdd,0xc4,0x43,0x22,0x11,0xee,0xdd,0xcc,0xbb, 44 | 0xaa,0xa9,0x11,0xee,0xdd,0xcc,0xba,0x98,0x75,0x48,0x30,0x00,0x00,0x00,0x00,0x00, 45 | 0x00,0x00,0x00,0x00,0x00,0x31,0xed,0xcc,0xbb,0xa2,0x21,0x1e,0xed,0xdc,0xcb,0xba, 46 | 0xaa,0x98,0x87,0x7d,0xdc,0xcc,0xba,0x98,0x76,0x43,0xe2,0x00,0x00,0x00,0x00,0x00, 47 | 0x00,0x00,0x00,0x00,0x04,0x1e,0xdc,0xcb,0xaa,0x98,0x1e,0xee,0xdd,0xcc,0xbb,0xaa, 48 | 0xa9,0x88,0x77,0x66,0xcc,0xcb,0xaa,0x98,0x76,0x53,0x1d,0x80,0x00,0x00,0x00,0x00, 49 | 0x00,0x00,0x00,0x00,0x42,0xed,0xcc,0xba,0xa9,0x88,0x77,0xed,0xdc,0xcb,0xba,0xaa, 50 | 0x98,0x87,0x76,0x66,0x5c,0xbb,0xa9,0x98,0x76,0x54,0x2e,0xb6,0x00,0x00,0x00,0x00, 51 | 0x00,0x00,0x00,0x00,0x21,0xdd,0xcb,0xba,0x99,0x88,0x77,0x66,0xcc,0xbb,0xaa,0xa9, 52 | 0x88,0x87,0x76,0x65,0x55,0x4a,0xa9,0x98,0x76,0x54,0x31,0xda,0x00,0x00,0x00,0x00, 53 | 0x00,0x00,0x00,0x03,0x1e,0xdc,0xbb,0xa9,0x98,0x87,0x76,0x65,0x54,0xbb,0xaa,0x98, 54 | 0x88,0x77,0x66,0x55,0x54,0x43,0x32,0x88,0x76,0x54,0x32,0xec,0x90,0x00,0x00,0x00, 55 | 0x00,0x00,0x00,0x31,0xed,0xcb,0xba,0xa9,0x88,0x77,0x66,0x55,0x44,0x4a,0xa9,0x98, 56 | 0x87,0x76,0x66,0x55,0x54,0x33,0x22,0x17,0x66,0x54,0x32,0x1d,0xa7,0x00,0x00,0x00, 57 | 0x00,0x00,0x00,0x2e,0xdc,0xcb,0xaa,0x98,0x87,0x76,0x65,0x55,0x44,0x33,0x29,0x88, 58 | 0x77,0x76,0x65,0x55,0x44,0x33,0x21,0x1e,0xd6,0x54,0x32,0x1d,0xb9,0x00,0x00,0x00, 59 | 0x00,0x00,0x0a,0x87,0xdc,0xbb,0xa9,0x88,0x77,0x66,0x65,0x54,0x43,0x33,0x21,0x18, 60 | 0x77,0x66,0x55,0x54,0x43,0x32,0x21,0x1e,0xdc,0xc4,0x32,0x1d,0xca,0x70,0x00,0x00, 61 | 0x00,0x00,0xc9,0x76,0x54,0xba,0xa9,0x88,0x77,0x66,0x55,0x44,0x33,0x32,0x11,0x1e, 62 | 0x76,0x66,0x55,0x54,0x43,0x32,0x21,0x1e,0xdc,0xcb,0xa2,0x1e,0xcb,0x94,0x00,0x00, 63 | 0x00,0x00,0xa8,0x76,0x54,0x3a,0x98,0x87,0x76,0x65,0x54,0x44,0x33,0x22,0x11,0xee, 64 | 0xed,0xd5,0x55,0x44,0x33,0x22,0x11,0xed,0xdc,0xcb,0xa9,0x87,0xdb,0xa6,0x00,0x00, 65 | 0x00,0x00,0x97,0x65,0x44,0x32,0x98,0x77,0x66,0x55,0x54,0x43,0x32,0x21,0x11,0xee, 66 | 0xdd,0xcc,0x55,0x44,0x33,0x22,0x11,0xed,0xdc,0xbb,0xa9,0x87,0x6c,0xa8,0x00,0x00, 67 | 0x00,0x0a,0x87,0x65,0x43,0x32,0x11,0xe7,0x66,0x55,0x44,0x33,0x32,0x11,0x1e,0xed, 68 | 0xdd,0xcc,0xcb,0x43,0x32,0x22,0x11,0xed,0xdc,0xbb,0xa9,0x87,0x65,0x42,0x50,0x00, 69 | 0x00,0x0a,0x86,0x55,0x43,0x21,0x1e,0xed,0x65,0x55,0x44,0x33,0x22,0x11,0xee,0xed, 70 | 0xdc,0xcc,0xbb,0xba,0x32,0x21,0x1e,0xdd,0xcc,0xbb,0xa9,0x87,0x65,0x42,0xe0,0x00, 71 | 0x00,0x09,0x76,0x54,0x33,0x21,0x1e,0xed,0xdc,0x54,0x43,0x33,0x21,0x11,0xee,0xdd, 72 | 0xdc,0xcc,0xbb,0xaa,0x99,0x21,0x1e,0xdd,0xcc,0xba,0xa9,0x87,0x65,0x43,0x10,0x00, 73 | 0x00,0xb8,0x76,0x54,0x32,0x21,0xee,0xdd,0xcc,0xb4,0x43,0x32,0x21,0x1e,0xee,0xdd, 74 | 0xcc,0xcb,0xbb,0xaa,0x99,0x88,0xee,0xdd,0xcc,0xba,0xa9,0x87,0x65,0x43,0x1c,0x00, 75 | 0x00,0xa8,0x65,0x44,0x32,0x11,0xee,0xdd,0xcc,0xbb,0xa3,0x22,0x11,0x1e,0xed,0xdd, 76 | 0xcc,0xcb,0xba,0xa9,0x99,0x88,0x7d,0xdc,0xcb,0xba,0xa9,0x87,0x65,0x43,0x1d,0x00, 77 | 0x00,0x97,0x65,0x43,0x32,0x1e,0xed,0xdc,0xcb,0xbb,0xaa,0x98,0x11,0xee,0xdd,0xdc, 78 | 0xcc,0xbb,0xaa,0xa9,0x98,0x88,0x76,0x65,0xcb,0xba,0x99,0x87,0x65,0x43,0x2d,0x00, 79 | 0x00,0x97,0x65,0x43,0x21,0x1e,0xed,0xdc,0xcb,0xba,0xa9,0x98,0x87,0xee,0xdd,0xcc, 80 | 0xcc,0xbb,0xaa,0x99,0x98,0x87,0x76,0x65,0x5b,0xba,0x99,0x87,0x65,0x43,0x2d,0x00, 81 | 0x00,0x17,0x65,0x43,0x21,0x1e,0xdd,0xcc,0xbb,0xba,0xa9,0x88,0x87,0x76,0xdd,0xcc, 82 | 0xcb,0xba,0xaa,0x99,0x88,0x87,0x66,0x55,0x44,0x3a,0x99,0x87,0x65,0x43,0x2e,0x00, 83 | 0x00,0x1e,0x54,0x43,0x21,0xee,0xdd,0xcc,0xbb,0xaa,0x99,0x88,0x77,0x76,0xdc,0xcc, 84 | 0xcb,0xba,0xa9,0x99,0x88,0x77,0x66,0x55,0x44,0x33,0x28,0x87,0x65,0x43,0x2e,0x00, 85 | 0x00,0x1d,0xcb,0x33,0x21,0xee,0xdd,0xcc,0xbb,0xaa,0x98,0x88,0x77,0x66,0x65,0x5c, 86 | 0xbb,0xaa,0xa9,0x98,0x88,0x76,0x66,0x55,0x44,0x32,0x21,0x17,0x65,0x43,0x2e,0x00, 87 | 0x00,0x1d,0xcb,0xa9,0x11,0xed,0xdc,0xcb,0xba,0xa9,0x98,0x87,0x77,0x66,0x55,0x54, 88 | 0xbb,0xaa,0x99,0x98,0x87,0x76,0x65,0x54,0x43,0x32,0x21,0xed,0xd5,0x43,0x2e,0x00, 89 | 0x00,0x1d,0xcb,0xa9,0x81,0xed,0xdc,0xcb,0xba,0xa9,0x88,0x87,0x76,0x66,0x55,0x54, 90 | 0x43,0xaa,0x99,0x88,0x87,0x66,0x65,0x54,0x43,0x32,0x21,0xed,0xdc,0xb3,0x2e,0x00, 91 | 0x00,0x1d,0xcb,0xa9,0x87,0x76,0xdc,0xbb,0xaa,0xa9,0x88,0x77,0x76,0x65,0x55,0x44, 92 | 0x43,0x32,0x99,0x88,0x77,0x66,0x55,0x44,0x33,0x22,0x11,0xed,0xcc,0xba,0x9e,0x00, 93 | 0x00,0x1d,0xcb,0xa9,0x87,0x76,0x55,0xbb,0xaa,0x99,0x88,0x77,0x66,0x65,0x55,0x44, 94 | 0x33,0x32,0x21,0x88,0x76,0x66,0x55,0x44,0x33,0x22,0x11,0xed,0xcb,0xba,0x86,0x00, 95 | 0x00,0x1d,0xcb,0xa9,0x87,0x66,0x55,0x4b,0xaa,0x98,0x87,0x77,0x66,0x55,0x54,0x44, 96 | 0x33,0x22,0x21,0x1e,0x76,0x65,0x54,0x44,0x33,0x22,0x1e,0xdd,0xcb,0xa9,0x86,0x00, 97 | 0x00,0x1d,0xcb,0xa9,0x87,0x66,0x54,0x43,0x39,0x98,0x87,0x76,0x66,0x55,0x54,0x43, 98 | 0x33,0x22,0x11,0x1e,0xdd,0x65,0x54,0x43,0x32,0x21,0x1e,0xdd,0xcb,0xa9,0x86,0x00, 99 | 0x00,0x2d,0xcb,0xa8,0x87,0x66,0x54,0x43,0x32,0x18,0x77,0x76,0x65,0x55,0x44,0x33, 100 | 0x32,0x22,0x11,0xee,0xdd,0xcc,0x44,0x43,0x32,0x21,0x1e,0xdc,0xcb,0xa9,0x86,0x00, 101 | 0x00,0x2e,0xcb,0xa8,0x87,0x65,0x54,0x43,0x32,0x11,0x77,0x66,0x65,0x55,0x44,0x33, 102 | 0x22,0x21,0x11,0xed,0xdd,0xcc,0xb4,0x33,0x22,0x11,0xed,0xdc,0xbb,0xa9,0x75,0x00, 103 | 0x00,0x3e,0xcb,0xa8,0x87,0x65,0x54,0x33,0x22,0x11,0xee,0x66,0x55,0x54,0x43,0x33, 104 | 0x22,0x11,0x1e,0xed,0xdc,0xcb,0xbb,0xa3,0x22,0x11,0xed,0xcc,0xba,0x98,0x74,0x00, 105 | 0x00,0x0e,0xcb,0xa8,0x87,0x65,0x54,0x33,0x21,0x1e,0xed,0xdd,0xc5,0x54,0x43,0x32, 106 | 0x22,0x11,0xee,0xdd,0xcc,0xcb,0xba,0xa9,0x91,0x1e,0xdd,0xcc,0xba,0x98,0x60,0x00, 107 | 0x00,0x08,0x6b,0xa9,0x87,0x65,0x44,0x33,0x21,0x1e,0xed,0xdc,0xcc,0x44,0x33,0x32, 108 | 0x21,0x11,0xed,0xdd,0xcc,0xbb,0xba,0xa9,0x98,0x8e,0xdd,0xcb,0xaa,0x98,0x60,0x00, 109 | 0x00,0x0a,0x64,0x39,0x87,0x65,0x44,0x32,0x21,0xee,0xdd,0xdc,0xcc,0xbb,0x33,0x22, 110 | 0x21,0x1e,0xed,0xdc,0xcc,0xbb,0xaa,0x99,0x88,0x76,0x6c,0xcb,0xa9,0x87,0x50,0x00, 111 | 0x00,0x00,0x75,0x32,0x87,0x65,0x44,0x32,0x11,0xee,0xdd,0xcc,0xcb,0xba,0xa2,0x22, 112 | 0x11,0xee,0xdd,0xcc,0xcb,0xba,0xaa,0x99,0x88,0x76,0x65,0x4b,0xa9,0x86,0x00,0x00, 113 | 0x00,0x00,0x85,0x42,0x1e,0x65,0x43,0x32,0x11,0xee,0xdd,0xcc,0xcb,0xba,0xa9,0x91, 114 | 0x11,0xed,0xdd,0xcc,0xbb,0xba,0xa9,0x98,0x87,0x66,0x55,0x43,0x98,0x75,0x00,0x00, 115 | 0x00,0x00,0xc6,0x43,0x1e,0xdc,0xb3,0x32,0x1e,0xed,0xdc,0xcc,0xbb,0xaa,0x99,0x98, 116 | 0x8e,0xed,0xdc,0xcc,0xbb,0xaa,0x99,0x88,0x77,0x65,0x54,0x33,0x21,0x63,0x00,0x00, 117 | 0x00,0x00,0x08,0x53,0x1e,0xdc,0xba,0x32,0x1e,0xed,0xdc,0xcc,0xba,0xaa,0x99,0x88, 118 | 0x77,0x66,0xcc,0xcb,0xba,0xa9,0x99,0x88,0x76,0x65,0x44,0x32,0x1e,0xc0,0x00,0x00, 119 | 0x00,0x00,0x00,0x64,0x2e,0xdc,0xba,0x98,0x1e,0xdd,0xcc,0xcb,0xba,0xa9,0x98,0x88, 120 | 0x76,0x66,0x5c,0xbb,0xaa,0xa9,0x98,0x87,0x66,0x55,0x43,0x32,0x1d,0x00,0x00,0x00, 121 | 0x00,0x00,0x00,0x85,0x21,0xdc,0xba,0x98,0x87,0xdd,0xcc,0xcb,0xaa,0x99,0x98,0x87, 122 | 0x76,0x65,0x54,0x4b,0xaa,0x99,0x88,0x77,0x65,0x54,0x43,0x21,0xec,0x00,0x00,0x00, 123 | 0x00,0x00,0x00,0x06,0x31,0xdc,0xba,0x98,0x77,0x65,0xcc,0xbb,0xaa,0x99,0x88,0x77, 124 | 0x66,0x55,0x44,0x43,0x39,0x98,0x87,0x76,0x65,0x44,0x32,0x1e,0xc0,0x00,0x00,0x00, 125 | 0x00,0x00,0x00,0x00,0x52,0xec,0xba,0x98,0x77,0x65,0x55,0xba,0xa9,0x98,0x87,0x76, 126 | 0x65,0x55,0x44,0x33,0x22,0x88,0x77,0x66,0x54,0x43,0x21,0x1d,0x00,0x00,0x00,0x00, 127 | 0x00,0x00,0x00,0x00,0x14,0x1d,0xba,0x98,0x76,0x65,0x54,0x43,0x99,0x98,0x87,0x66, 128 | 0x55,0x54,0x43,0x32,0x21,0x11,0x76,0x65,0x54,0x33,0x21,0xdb,0x00,0x00,0x00,0x00, 129 | 0x00,0x00,0x00,0x00,0x0e,0x9e,0xca,0x98,0x76,0x55,0x54,0x33,0x29,0x88,0x76,0x65, 130 | 0x55,0x44,0x33,0x22,0x11,0x1e,0xdd,0x55,0x43,0x32,0x1d,0xc0,0x00,0x00,0x00,0x00, 131 | 0x00,0x00,0x00,0x00,0x00,0xd8,0xcb,0x98,0x76,0x55,0x43,0x32,0x21,0x17,0x66,0x55, 132 | 0x54,0x43,0x32,0x21,0x1e,0xed,0xdc,0xcb,0x33,0x21,0xdc,0x00,0x00,0x00,0x00,0x00, 133 | 0x00,0x00,0x00,0x00,0x00,0x0c,0x74,0xa8,0x75,0x55,0x43,0x22,0x11,0xed,0xd5,0x55, 134 | 0x44,0x33,0x22,0x11,0xee,0xdd,0xcb,0xba,0x99,0x1d,0xc0,0x00,0x00,0x00,0x00,0x00, 135 | 0x00,0x00,0x00,0x00,0x00,0x00,0xd6,0x31,0xdc,0x54,0x33,0x21,0x1e,0xdd,0xcc,0xb4, 136 | 0x33,0x32,0x21,0x1e,0xdd,0xcc,0xbb,0xa9,0x98,0x64,0x00,0x00,0x00,0x00,0x00,0x00, 137 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x51,0xdc,0xc4,0x32,0x11,0xed,0xdc,0xcb,0xba, 138 | 0x32,0x21,0x11,0xed,0xdc,0xcb,0xaa,0x98,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 139 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xdc,0xba,0x21,0x1e,0xdc,0xcb,0xba,0xaa, 140 | 0x99,0x11,0xed,0xdc,0xcb,0xba,0x99,0x86,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 141 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0xa9,0x87,0xdd,0xcb,0xba,0xaa,0x99, 142 | 0x88,0x76,0xdc,0xcb,0xba,0xa9,0x87,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 143 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc5,0x55,0x44,0xaa,0xa9,0x98,0x87, 144 | 0x76,0x65,0x54,0xba,0x99,0x87,0x63,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 145 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0xe1,0x18,0x87,0x76,0x66, 146 | 0x55,0x44,0x33,0x21,0x86,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 147 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x8a,0xa4,0x44,0x33, 148 | 0x32,0x22,0x1e,0xdc,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 149 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a, 150 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 151 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 152 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 153 | }; 154 | --------------------------------------------------------------------------------