hadif azli
/
TEST123
BLYNK TEST
Adafruit_GFX/Adafruit_SSD1306.cpp@4:e5018e5ba340, 2016-06-16 (annotated)
- Committer:
- lixianyu
- Date:
- Thu Jun 16 08:12:33 2016 +0000
- Revision:
- 4:e5018e5ba340
- Parent:
- 2:6cd3b0947188
ok
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lixianyu | 1:0e75de2a5d21 | 1 | /********************************************************************* |
lixianyu | 1:0e75de2a5d21 | 2 | This is a library for our Monochrome OLEDs based on SSD1306 drivers |
lixianyu | 1:0e75de2a5d21 | 3 | |
lixianyu | 1:0e75de2a5d21 | 4 | Pick one up today in the adafruit shop! |
lixianyu | 1:0e75de2a5d21 | 5 | ------> http://www.adafruit.com/category/63_98 |
lixianyu | 1:0e75de2a5d21 | 6 | |
lixianyu | 1:0e75de2a5d21 | 7 | These displays use SPI to communicate, 4 or 5 pins are required to |
lixianyu | 1:0e75de2a5d21 | 8 | interface |
lixianyu | 1:0e75de2a5d21 | 9 | |
lixianyu | 1:0e75de2a5d21 | 10 | Adafruit invests time and resources providing this open source code, |
lixianyu | 1:0e75de2a5d21 | 11 | please support Adafruit and open-source hardware by purchasing |
lixianyu | 1:0e75de2a5d21 | 12 | products from Adafruit! |
lixianyu | 1:0e75de2a5d21 | 13 | |
lixianyu | 1:0e75de2a5d21 | 14 | Written by Limor Fried/Ladyada for Adafruit Industries. |
lixianyu | 1:0e75de2a5d21 | 15 | BSD license, check license.txt for more information |
lixianyu | 1:0e75de2a5d21 | 16 | All text above, and the splash screen below must be included in any redistribution |
lixianyu | 1:0e75de2a5d21 | 17 | *********************************************************************/ |
lixianyu | 1:0e75de2a5d21 | 18 | |
lixianyu | 1:0e75de2a5d21 | 19 | /* |
lixianyu | 1:0e75de2a5d21 | 20 | * Modified by Neal Horman 7/14/2012 for use in mbed |
lixianyu | 1:0e75de2a5d21 | 21 | */ |
lixianyu | 1:0e75de2a5d21 | 22 | |
lixianyu | 1:0e75de2a5d21 | 23 | #include "mbed.h" |
lixianyu | 1:0e75de2a5d21 | 24 | #include "Adafruit_SSD1306.h" |
lixianyu | 1:0e75de2a5d21 | 25 | |
lixianyu | 1:0e75de2a5d21 | 26 | #define SSD1306_SETCONTRAST 0x81 |
lixianyu | 1:0e75de2a5d21 | 27 | #define SSD1306_DISPLAYALLON_RESUME 0xA4 |
lixianyu | 1:0e75de2a5d21 | 28 | #define SSD1306_DISPLAYALLON 0xA5 |
lixianyu | 1:0e75de2a5d21 | 29 | #define SSD1306_NORMALDISPLAY 0xA6 |
lixianyu | 1:0e75de2a5d21 | 30 | #define SSD1306_INVERTDISPLAY 0xA7 |
lixianyu | 1:0e75de2a5d21 | 31 | #define SSD1306_DISPLAYOFF 0xAE |
lixianyu | 1:0e75de2a5d21 | 32 | #define SSD1306_DISPLAYON 0xAF |
lixianyu | 1:0e75de2a5d21 | 33 | #define SSD1306_SETDISPLAYOFFSET 0xD3 |
lixianyu | 1:0e75de2a5d21 | 34 | #define SSD1306_SETCOMPINS 0xDA |
lixianyu | 1:0e75de2a5d21 | 35 | #define SSD1306_SETVCOMDETECT 0xDB |
lixianyu | 1:0e75de2a5d21 | 36 | #define SSD1306_SETDISPLAYCLOCKDIV 0xD5 |
lixianyu | 1:0e75de2a5d21 | 37 | #define SSD1306_SETPRECHARGE 0xD9 |
lixianyu | 1:0e75de2a5d21 | 38 | #define SSD1306_SETMULTIPLEX 0xA8 |
lixianyu | 1:0e75de2a5d21 | 39 | #define SSD1306_SETLOWCOLUMN 0x00 |
lixianyu | 1:0e75de2a5d21 | 40 | #define SSD1306_SETHIGHCOLUMN 0x10 |
lixianyu | 1:0e75de2a5d21 | 41 | #define SSD1306_SETSTARTLINE 0x40 |
lixianyu | 1:0e75de2a5d21 | 42 | #define SSD1306_MEMORYMODE 0x20 |
lixianyu | 1:0e75de2a5d21 | 43 | #define SSD1306_COMSCANINC 0xC0 |
lixianyu | 1:0e75de2a5d21 | 44 | #define SSD1306_COMSCANDEC 0xC8 |
lixianyu | 1:0e75de2a5d21 | 45 | #define SSD1306_SEGREMAP 0xA0 |
lixianyu | 1:0e75de2a5d21 | 46 | #define SSD1306_CHARGEPUMP 0x8D |
lixianyu | 1:0e75de2a5d21 | 47 | |
lixianyu | 1:0e75de2a5d21 | 48 | //0xAE, 0xD5, 0x80, 0xA8, _rawHeight-1, 0xD3, 0x00, 0x40, 0x8D, 0x10, 0x20, 0x00, 0xA1, 0xC8, 0xDA, 0x12, 0x81, 0x9F, 0xD9, 0x22, 0xDB, 0x40, 0xA4, 0xA6, 0xAF |
lixianyu | 2:6cd3b0947188 | 49 | #if 1 |
lixianyu | 1:0e75de2a5d21 | 50 | void Adafruit_SSD1306::begin(uint8_t vccstate) |
lixianyu | 1:0e75de2a5d21 | 51 | { |
lixianyu | 1:0e75de2a5d21 | 52 | //printf("begin: vccstate = %d\r\n", vccstate); |
lixianyu | 1:0e75de2a5d21 | 53 | rst = 1; |
lixianyu | 1:0e75de2a5d21 | 54 | // VDD (3.3V) goes high at start, lets just chill for a ms |
lixianyu | 1:0e75de2a5d21 | 55 | wait_ms(1); |
lixianyu | 1:0e75de2a5d21 | 56 | // bring reset low |
lixianyu | 1:0e75de2a5d21 | 57 | rst = 0; |
lixianyu | 1:0e75de2a5d21 | 58 | // wait 10ms |
lixianyu | 1:0e75de2a5d21 | 59 | wait_ms(10); |
lixianyu | 1:0e75de2a5d21 | 60 | // bring out of reset |
lixianyu | 1:0e75de2a5d21 | 61 | rst = 1; |
lixianyu | 1:0e75de2a5d21 | 62 | // turn on VCC (9V?) |
lixianyu | 1:0e75de2a5d21 | 63 | |
lixianyu | 1:0e75de2a5d21 | 64 | command(SSD1306_DISPLAYOFF); |
lixianyu | 1:0e75de2a5d21 | 65 | command(SSD1306_SETDISPLAYCLOCKDIV); |
lixianyu | 1:0e75de2a5d21 | 66 | command(0x80); // the suggested ratio 0x80 |
lixianyu | 1:0e75de2a5d21 | 67 | |
lixianyu | 1:0e75de2a5d21 | 68 | command(SSD1306_SETMULTIPLEX); |
lixianyu | 1:0e75de2a5d21 | 69 | command(_rawHeight-1); |
lixianyu | 1:0e75de2a5d21 | 70 | |
lixianyu | 1:0e75de2a5d21 | 71 | command(SSD1306_SETDISPLAYOFFSET); |
lixianyu | 1:0e75de2a5d21 | 72 | command(0x0); // no offset |
lixianyu | 1:0e75de2a5d21 | 73 | |
lixianyu | 1:0e75de2a5d21 | 74 | command(SSD1306_SETSTARTLINE | 0x0); // line #0 |
lixianyu | 1:0e75de2a5d21 | 75 | |
lixianyu | 1:0e75de2a5d21 | 76 | command(SSD1306_CHARGEPUMP); |
lixianyu | 1:0e75de2a5d21 | 77 | command((vccstate == SSD1306_EXTERNALVCC) ? 0x10 : 0x14); |
lixianyu | 1:0e75de2a5d21 | 78 | |
lixianyu | 1:0e75de2a5d21 | 79 | command(SSD1306_MEMORYMODE); |
lixianyu | 1:0e75de2a5d21 | 80 | command(0x00); // 0x0 act like ks0108 |
lixianyu | 1:0e75de2a5d21 | 81 | |
lixianyu | 1:0e75de2a5d21 | 82 | command(SSD1306_SEGREMAP | 0x1); |
lixianyu | 1:0e75de2a5d21 | 83 | |
lixianyu | 1:0e75de2a5d21 | 84 | command(SSD1306_COMSCANDEC); |
lixianyu | 1:0e75de2a5d21 | 85 | |
lixianyu | 1:0e75de2a5d21 | 86 | command(SSD1306_SETCOMPINS); |
lixianyu | 1:0e75de2a5d21 | 87 | command(_rawHeight == 32 ? 0x02 : 0x12); // TODO - calculate based on _rawHieght ? |
lixianyu | 1:0e75de2a5d21 | 88 | |
lixianyu | 1:0e75de2a5d21 | 89 | command(SSD1306_SETCONTRAST); |
lixianyu | 1:0e75de2a5d21 | 90 | command(_rawHeight == 32 ? 0x8F : ((vccstate == SSD1306_EXTERNALVCC) ? 0x9F : 0xCF) ); |
lixianyu | 1:0e75de2a5d21 | 91 | |
lixianyu | 1:0e75de2a5d21 | 92 | command(SSD1306_SETPRECHARGE); |
lixianyu | 1:0e75de2a5d21 | 93 | command((vccstate == SSD1306_EXTERNALVCC) ? 0x22 : 0xF1); |
lixianyu | 1:0e75de2a5d21 | 94 | |
lixianyu | 1:0e75de2a5d21 | 95 | command(SSD1306_SETVCOMDETECT); |
lixianyu | 1:0e75de2a5d21 | 96 | command(0x40); |
lixianyu | 1:0e75de2a5d21 | 97 | |
lixianyu | 1:0e75de2a5d21 | 98 | command(SSD1306_DISPLAYALLON_RESUME); |
lixianyu | 1:0e75de2a5d21 | 99 | |
lixianyu | 1:0e75de2a5d21 | 100 | command(SSD1306_NORMALDISPLAY); |
lixianyu | 1:0e75de2a5d21 | 101 | |
lixianyu | 1:0e75de2a5d21 | 102 | command(SSD1306_DISPLAYON); |
lixianyu | 1:0e75de2a5d21 | 103 | } |
lixianyu | 1:0e75de2a5d21 | 104 | #else |
lixianyu | 1:0e75de2a5d21 | 105 | void Adafruit_SSD1306::begin(uint8_t vccstate) |
lixianyu | 1:0e75de2a5d21 | 106 | { |
lixianyu | 1:0e75de2a5d21 | 107 | command(0xAE); |
lixianyu | 1:0e75de2a5d21 | 108 | command(0xD5); |
lixianyu | 1:0e75de2a5d21 | 109 | command(0x80); // the suggested ratio 0x80 |
lixianyu | 1:0e75de2a5d21 | 110 | |
lixianyu | 1:0e75de2a5d21 | 111 | command(0xA8); |
lixianyu | 1:0e75de2a5d21 | 112 | command(_rawHeight-1); |
lixianyu | 1:0e75de2a5d21 | 113 | |
lixianyu | 1:0e75de2a5d21 | 114 | command(0xD3); |
lixianyu | 1:0e75de2a5d21 | 115 | command(0x0); // no offset |
lixianyu | 1:0e75de2a5d21 | 116 | |
lixianyu | 1:0e75de2a5d21 | 117 | command(0x40); // line #0 |
lixianyu | 1:0e75de2a5d21 | 118 | |
lixianyu | 1:0e75de2a5d21 | 119 | command(0x8D); |
lixianyu | 1:0e75de2a5d21 | 120 | command(0x14); |
lixianyu | 1:0e75de2a5d21 | 121 | |
lixianyu | 1:0e75de2a5d21 | 122 | command(0x20); |
lixianyu | 1:0e75de2a5d21 | 123 | command(0x00); // 0x0 act like ks0108 |
lixianyu | 1:0e75de2a5d21 | 124 | |
lixianyu | 1:0e75de2a5d21 | 125 | command(0xA1); |
lixianyu | 1:0e75de2a5d21 | 126 | |
lixianyu | 1:0e75de2a5d21 | 127 | command(0xC8); |
lixianyu | 1:0e75de2a5d21 | 128 | |
lixianyu | 1:0e75de2a5d21 | 129 | command(0xDA); |
lixianyu | 1:0e75de2a5d21 | 130 | command(0x12); // TODO - calculate based on _rawHieght ? |
lixianyu | 1:0e75de2a5d21 | 131 | |
lixianyu | 1:0e75de2a5d21 | 132 | command(0x8a); |
lixianyu | 1:0e75de2a5d21 | 133 | command(0xCF); |
lixianyu | 1:0e75de2a5d21 | 134 | |
lixianyu | 1:0e75de2a5d21 | 135 | command(0xD9); |
lixianyu | 1:0e75de2a5d21 | 136 | command(0xF1); |
lixianyu | 1:0e75de2a5d21 | 137 | |
lixianyu | 1:0e75de2a5d21 | 138 | command(0xDB); |
lixianyu | 1:0e75de2a5d21 | 139 | command(0x40); |
lixianyu | 1:0e75de2a5d21 | 140 | |
lixianyu | 1:0e75de2a5d21 | 141 | command(0x2E);//??? |
lixianyu | 1:0e75de2a5d21 | 142 | command(SSD1306_DISPLAYALLON_RESUME); |
lixianyu | 1:0e75de2a5d21 | 143 | |
lixianyu | 1:0e75de2a5d21 | 144 | command(SSD1306_NORMALDISPLAY); |
lixianyu | 1:0e75de2a5d21 | 145 | |
lixianyu | 1:0e75de2a5d21 | 146 | command(SSD1306_DISPLAYON); |
lixianyu | 1:0e75de2a5d21 | 147 | } |
lixianyu | 1:0e75de2a5d21 | 148 | #endif |
lixianyu | 1:0e75de2a5d21 | 149 | |
lixianyu | 1:0e75de2a5d21 | 150 | // Set a single pixel |
lixianyu | 1:0e75de2a5d21 | 151 | void Adafruit_SSD1306::drawPixel(int16_t x, int16_t y, uint16_t color) |
lixianyu | 1:0e75de2a5d21 | 152 | { |
lixianyu | 1:0e75de2a5d21 | 153 | if ((x < 0) || (x >= width()) || (y < 0) || (y >= height())) |
lixianyu | 1:0e75de2a5d21 | 154 | return; |
lixianyu | 1:0e75de2a5d21 | 155 | |
lixianyu | 1:0e75de2a5d21 | 156 | // check rotation, move pixel around if necessary |
lixianyu | 1:0e75de2a5d21 | 157 | switch (getRotation()) |
lixianyu | 1:0e75de2a5d21 | 158 | { |
lixianyu | 1:0e75de2a5d21 | 159 | case 1: |
lixianyu | 1:0e75de2a5d21 | 160 | swap(x, y); |
lixianyu | 1:0e75de2a5d21 | 161 | x = _rawWidth - x - 1; |
lixianyu | 1:0e75de2a5d21 | 162 | break; |
lixianyu | 1:0e75de2a5d21 | 163 | case 2: |
lixianyu | 1:0e75de2a5d21 | 164 | x = _rawWidth - x - 1; |
lixianyu | 1:0e75de2a5d21 | 165 | y = _rawHeight - y - 1; |
lixianyu | 1:0e75de2a5d21 | 166 | break; |
lixianyu | 1:0e75de2a5d21 | 167 | case 3: |
lixianyu | 1:0e75de2a5d21 | 168 | swap(x, y); |
lixianyu | 1:0e75de2a5d21 | 169 | y = _rawHeight - y - 1; |
lixianyu | 1:0e75de2a5d21 | 170 | break; |
lixianyu | 1:0e75de2a5d21 | 171 | } |
lixianyu | 1:0e75de2a5d21 | 172 | |
lixianyu | 1:0e75de2a5d21 | 173 | // x is which column |
lixianyu | 1:0e75de2a5d21 | 174 | if (color == WHITE) |
lixianyu | 1:0e75de2a5d21 | 175 | buffer[x+ (y/8)*_rawWidth] |= _BV((y%8)); |
lixianyu | 1:0e75de2a5d21 | 176 | else // else black |
lixianyu | 1:0e75de2a5d21 | 177 | buffer[x+ (y/8)*_rawWidth] &= ~_BV((y%8)); |
lixianyu | 1:0e75de2a5d21 | 178 | } |
lixianyu | 1:0e75de2a5d21 | 179 | |
lixianyu | 1:0e75de2a5d21 | 180 | void Adafruit_SSD1306::invertDisplay(bool i) |
lixianyu | 1:0e75de2a5d21 | 181 | { |
lixianyu | 1:0e75de2a5d21 | 182 | command(i ? SSD1306_INVERTDISPLAY : SSD1306_NORMALDISPLAY); |
lixianyu | 1:0e75de2a5d21 | 183 | } |
lixianyu | 1:0e75de2a5d21 | 184 | |
lixianyu | 1:0e75de2a5d21 | 185 | // Send the display buffer out to the display |
lixianyu | 1:0e75de2a5d21 | 186 | void Adafruit_SSD1306::display(void) |
lixianyu | 1:0e75de2a5d21 | 187 | { |
lixianyu | 1:0e75de2a5d21 | 188 | //printf("display\r\n"); |
lixianyu | 1:0e75de2a5d21 | 189 | command(SSD1306_SETLOWCOLUMN | 0x0); // low col = 0 |
lixianyu | 1:0e75de2a5d21 | 190 | command(SSD1306_SETHIGHCOLUMN | 0x0); // hi col = 0 |
lixianyu | 1:0e75de2a5d21 | 191 | command(SSD1306_SETSTARTLINE | 0x0); // line #0 |
lixianyu | 1:0e75de2a5d21 | 192 | sendDisplayBuffer(); |
lixianyu | 1:0e75de2a5d21 | 193 | } |
lixianyu | 1:0e75de2a5d21 | 194 | |
lixianyu | 1:0e75de2a5d21 | 195 | // Clear the display buffer. Requires a display() call at some point afterwards |
lixianyu | 1:0e75de2a5d21 | 196 | void Adafruit_SSD1306::clearDisplay(void) |
lixianyu | 1:0e75de2a5d21 | 197 | { |
lixianyu | 1:0e75de2a5d21 | 198 | std::fill(buffer.begin(),buffer.end(),0); |
lixianyu | 1:0e75de2a5d21 | 199 | } |
lixianyu | 1:0e75de2a5d21 | 200 | |
lixianyu | 1:0e75de2a5d21 | 201 | void Adafruit_SSD1306::splash(void) |
lixianyu | 1:0e75de2a5d21 | 202 | { |
lixianyu | 1:0e75de2a5d21 | 203 | #ifndef NO_SPLASH_ADAFRUIT |
lixianyu | 1:0e75de2a5d21 | 204 | uint8_t adaFruitLogo[64 * 128 / 8] = |
lixianyu | 1:0e75de2a5d21 | 205 | { |
lixianyu | 1:0e75de2a5d21 | 206 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 207 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 208 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 209 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, |
lixianyu | 1:0e75de2a5d21 | 210 | 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 211 | 0x00, 0x80, 0x80, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 212 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 213 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 214 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 215 | 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC, 0xF8, 0xE0, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 216 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, |
lixianyu | 1:0e75de2a5d21 | 217 | 0x80, 0x80, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, 0xFF, |
lixianyu | 1:0e75de2a5d21 | 218 | 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 219 | 0x80, 0xFF, 0xFF, 0x80, 0x80, 0x00, 0x80, 0x80, 0x00, 0x80, 0x80, 0x80, 0x80, 0x00, 0x80, 0x80, |
lixianyu | 1:0e75de2a5d21 | 220 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x8C, 0x8E, 0x84, 0x00, 0x00, 0x80, 0xF8, |
lixianyu | 1:0e75de2a5d21 | 221 | 0xF8, 0xF8, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 222 | 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xC0, 0x80, |
lixianyu | 1:0e75de2a5d21 | 223 | 0x00, 0xE0, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 224 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0xC7, 0x01, 0x01, |
lixianyu | 1:0e75de2a5d21 | 225 | 0x01, 0x01, 0x83, 0xFF, 0xFF, 0x00, 0x00, 0x7C, 0xFE, 0xC7, 0x01, 0x01, 0x01, 0x01, 0x83, 0xFF, |
lixianyu | 1:0e75de2a5d21 | 226 | 0xFF, 0xFF, 0x00, 0x38, 0xFE, 0xC7, 0x83, 0x01, 0x01, 0x01, 0x83, 0xC7, 0xFF, 0xFF, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 227 | 0x01, 0xFF, 0xFF, 0x01, 0x01, 0x00, 0xFF, 0xFF, 0x07, 0x01, 0x01, 0x01, 0x00, 0x00, 0x7F, 0xFF, |
lixianyu | 1:0e75de2a5d21 | 228 | 0x80, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x01, 0xFF, |
lixianyu | 1:0e75de2a5d21 | 229 | 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 230 | 0x03, 0x0F, 0x3F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE7, 0xC7, 0xC7, 0x8F, |
lixianyu | 1:0e75de2a5d21 | 231 | 0x8F, 0x9F, 0xBF, 0xFF, 0xFF, 0xC3, 0xC0, 0xF0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xFC, |
lixianyu | 1:0e75de2a5d21 | 232 | 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xF8, 0xF8, 0xF0, 0xF0, 0xE0, 0xC0, 0x00, 0x01, 0x03, 0x03, 0x03, |
lixianyu | 1:0e75de2a5d21 | 233 | 0x03, 0x03, 0x01, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x03, 0x03, 0x01, 0x01, |
lixianyu | 1:0e75de2a5d21 | 234 | 0x03, 0x01, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x03, 0x03, 0x01, 0x01, 0x03, 0x03, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 235 | 0x00, 0x03, 0x03, 0x00, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, |
lixianyu | 1:0e75de2a5d21 | 236 | 0x03, 0x03, 0x03, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x01, 0x03, 0x01, 0x00, 0x00, 0x00, 0x03, |
lixianyu | 1:0e75de2a5d21 | 237 | 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 238 | // 128x32^^^ 128x64vvv |
lixianyu | 1:0e75de2a5d21 | 239 | 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xF9, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x1F, 0x0F, |
lixianyu | 1:0e75de2a5d21 | 240 | 0x87, 0xC7, 0xF7, 0xFF, 0xFF, 0x1F, 0x1F, 0x3D, 0xFC, 0xF8, 0xF8, 0xF8, 0xF8, 0x7C, 0x7D, 0xFF, |
lixianyu | 1:0e75de2a5d21 | 241 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x0F, 0x07, 0x00, 0x30, 0x30, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 242 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 243 | 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFE, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 244 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xC0, 0x00, |
lixianyu | 1:0e75de2a5d21 | 245 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 246 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 247 | 0x00, 0xC0, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0x1F, |
lixianyu | 1:0e75de2a5d21 | 248 | 0x0F, 0x07, 0x1F, 0x7F, 0xFF, 0xFF, 0xF8, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xF8, 0xE0, |
lixianyu | 1:0e75de2a5d21 | 249 | 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFE, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 250 | 0x00, 0xFC, 0xFE, 0xFC, 0x0C, 0x06, 0x06, 0x0E, 0xFC, 0xF8, 0x00, 0x00, 0xF0, 0xF8, 0x1C, 0x0E, |
lixianyu | 1:0e75de2a5d21 | 251 | 0x06, 0x06, 0x06, 0x0C, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xFE, 0xFE, 0x00, 0x00, 0x00, 0x00, 0xFC, |
lixianyu | 1:0e75de2a5d21 | 252 | 0xFE, 0xFC, 0x00, 0x18, 0x3C, 0x7E, 0x66, 0xE6, 0xCE, 0x84, 0x00, 0x00, 0x06, 0xFF, 0xFF, 0x06, |
lixianyu | 1:0e75de2a5d21 | 253 | 0x06, 0xFC, 0xFE, 0xFC, 0x0C, 0x06, 0x06, 0x06, 0x00, 0x00, 0xFE, 0xFE, 0x00, 0x00, 0xC0, 0xF8, |
lixianyu | 1:0e75de2a5d21 | 254 | 0xFC, 0x4E, 0x46, 0x46, 0x46, 0x4E, 0x7C, 0x78, 0x40, 0x18, 0x3C, 0x76, 0xE6, 0xCE, 0xCC, 0x80, |
lixianyu | 1:0e75de2a5d21 | 255 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 256 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0x0F, 0x1F, 0x1F, 0x3F, 0x3F, 0x3F, 0x3F, 0x1F, 0x0F, 0x03, |
lixianyu | 1:0e75de2a5d21 | 257 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x0F, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 258 | 0x00, 0x0F, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x0F, 0x00, 0x00, 0x03, 0x07, 0x0E, 0x0C, |
lixianyu | 1:0e75de2a5d21 | 259 | 0x18, 0x18, 0x0C, 0x06, 0x0F, 0x0F, 0x0F, 0x00, 0x00, 0x01, 0x0F, 0x0E, 0x0C, 0x18, 0x0C, 0x0F, |
lixianyu | 1:0e75de2a5d21 | 260 | 0x07, 0x01, 0x00, 0x04, 0x0E, 0x0C, 0x18, 0x0C, 0x0F, 0x07, 0x00, 0x00, 0x00, 0x0F, 0x0F, 0x00, |
lixianyu | 1:0e75de2a5d21 | 261 | 0x00, 0x0F, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x07, |
lixianyu | 1:0e75de2a5d21 | 262 | 0x07, 0x0C, 0x0C, 0x18, 0x1C, 0x0C, 0x06, 0x06, 0x00, 0x04, 0x0E, 0x0C, 0x18, 0x0C, 0x0F, 0x07, |
lixianyu | 1:0e75de2a5d21 | 263 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 264 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 265 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 266 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 267 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 268 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 269 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
lixianyu | 1:0e75de2a5d21 | 270 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
lixianyu | 1:0e75de2a5d21 | 271 | }; |
lixianyu | 1:0e75de2a5d21 | 272 | |
lixianyu | 1:0e75de2a5d21 | 273 | std::copy( |
lixianyu | 1:0e75de2a5d21 | 274 | &adaFruitLogo[0] |
lixianyu | 1:0e75de2a5d21 | 275 | , &adaFruitLogo[0] + (_rawHeight == 32 ? sizeof(adaFruitLogo)/2 : sizeof(adaFruitLogo)) |
lixianyu | 1:0e75de2a5d21 | 276 | , buffer.begin() |
lixianyu | 1:0e75de2a5d21 | 277 | ); |
lixianyu | 1:0e75de2a5d21 | 278 | #endif |
lixianyu | 1:0e75de2a5d21 | 279 | } |