Unyte Logo Animation (growing leaf)

Fork of Adafruit_GFX by Neal Horman

Committer:
nkhorman
Date:
Tue Oct 21 02:04:08 2014 +0000
Revision:
11:86909e6db3c8
Parent:
9:ddb97c9850a2
Child:
13:8f03f908f22a
Add some documentation

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