i2c version has an offset due to wrong copy of temp buffer to display buffer, fixed in Adafruit_SSD1306.h

Dependents:   ezSBC_MPU9250 Test_OLED_Display untodoenuno OledI2CDisplay ... more

Fork of Adafruit_GFX by Neal Horman

Committer:
JojoS
Date:
Wed Mar 04 20:19:52 2015 +0000
Revision:
18:6aa925f254d6
Parent:
16:7fb1d4d3525d
Child:
20:04822be0efcd
added flipVertical Option to constructor; use of reset signal is now optional (NC maybe used for rst pin); added command for clearing page start address (important for usage without hardware reset pin)

Who changed what in which revision?

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