* AM2321的取温度间隔得大于2s,否则,i2c会不工作了 * SimpleTimer有个bug,会导致两次快速的读温度,现在读温度函数里加了保护 * Blynk有个bug,会导致无法把数据传到服务器 * 现在可以正常工作了

Dependencies:   mbed

Committer:
lixianyu
Date:
Fri Jun 24 02:06:43 2016 +0000
Revision:
1:e34100dd6532
Parent:
0:740c1eb2df13
?Arduino??????????0~255??????LPC824????????????????

Who changed what in which revision?

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