BLYNK TEST

Dependencies:   mbed Blynk

Committer:
lixianyu
Date:
Wed Jun 15 03:08:40 2016 +0000
Revision:
2:6cd3b0947188
Parent:
1:0e75de2a5d21
PM2.5????????5V??????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lixianyu 0:d8f4c441e032 1 /*
lixianyu 0:d8f4c441e032 2
lixianyu 0:d8f4c441e032 3 U8glib.h
lixianyu 0:d8f4c441e032 4
lixianyu 0:d8f4c441e032 5 C++ Interface
lixianyu 0:d8f4c441e032 6
lixianyu 0:d8f4c441e032 7 Universal 8bit Graphics Library
lixianyu 0:d8f4c441e032 8
lixianyu 0:d8f4c441e032 9 Copyright (c) 2011, olikraus@gmail.com
lixianyu 0:d8f4c441e032 10 All rights reserved.
lixianyu 0:d8f4c441e032 11
lixianyu 0:d8f4c441e032 12 Redistribution and use in source and binary forms, with or without modification,
lixianyu 0:d8f4c441e032 13 are permitted provided that the following conditions are met:
lixianyu 0:d8f4c441e032 14
lixianyu 0:d8f4c441e032 15 * Redistributions of source code must retain the above copyright notice, this list
lixianyu 0:d8f4c441e032 16 of conditions and the following disclaimer.
lixianyu 0:d8f4c441e032 17
lixianyu 0:d8f4c441e032 18 * Redistributions in binary form must reproduce the above copyright notice, this
lixianyu 0:d8f4c441e032 19 list of conditions and the following disclaimer in the documentation and/or other
lixianyu 0:d8f4c441e032 20 materials provided with the distribution.
lixianyu 0:d8f4c441e032 21
lixianyu 0:d8f4c441e032 22 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
lixianyu 0:d8f4c441e032 23 CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
lixianyu 0:d8f4c441e032 24 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
lixianyu 0:d8f4c441e032 25 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
lixianyu 0:d8f4c441e032 26 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
lixianyu 0:d8f4c441e032 27 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
lixianyu 0:d8f4c441e032 28 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
lixianyu 0:d8f4c441e032 29 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
lixianyu 0:d8f4c441e032 30 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
lixianyu 0:d8f4c441e032 31 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
lixianyu 0:d8f4c441e032 32 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
lixianyu 0:d8f4c441e032 33 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
lixianyu 0:d8f4c441e032 34 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
lixianyu 0:d8f4c441e032 35
lixianyu 0:d8f4c441e032 36 */
lixianyu 0:d8f4c441e032 37
lixianyu 2:6cd3b0947188 38 #if 0
lixianyu 0:d8f4c441e032 39 #ifndef _CPP_U8GLIB
lixianyu 0:d8f4c441e032 40 #define _CPP_U8GLIB
lixianyu 1:0e75de2a5d21 41 #include "mbed.h"
lixianyu 0:d8f4c441e032 42 #include <Printit.h>
lixianyu 2:6cd3b0947188 43 //#include "u8g.h"
lixianyu 0:d8f4c441e032 44
lixianyu 1:0e75de2a5d21 45 extern void log(char *);
lixianyu 1:0e75de2a5d21 46 extern Serial pc;
lixianyu 0:d8f4c441e032 47 class U8GLIB : public Print
lixianyu 0:d8f4c441e032 48 {
lixianyu 0:d8f4c441e032 49 private:
lixianyu 0:d8f4c441e032 50 u8g_t u8g;
lixianyu 0:d8f4c441e032 51 u8g_uint_t tx, ty; // current position for the Print base class procedures
lixianyu 0:d8f4c441e032 52 uint8_t is_begin;
lixianyu 0:d8f4c441e032 53
lixianyu 0:d8f4c441e032 54 void prepare(void) {
lixianyu 0:d8f4c441e032 55 tx = 0;
lixianyu 0:d8f4c441e032 56 ty = 0;
lixianyu 0:d8f4c441e032 57 is_begin = 0;
lixianyu 0:d8f4c441e032 58 }
lixianyu 0:d8f4c441e032 59 void cbegin(void) {
lixianyu 0:d8f4c441e032 60 if ( is_begin == 0 ) {
lixianyu 0:d8f4c441e032 61 is_begin = 1;
lixianyu 0:d8f4c441e032 62 u8g_Begin(&u8g);
lixianyu 0:d8f4c441e032 63 }
lixianyu 0:d8f4c441e032 64 }
lixianyu 0:d8f4c441e032 65 uint8_t initSPI(u8g_dev_t *dev, uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE);
lixianyu 0:d8f4c441e032 66 uint8_t initHWSPI(u8g_dev_t *dev, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE);
lixianyu 0:d8f4c441e032 67 uint8_t initI2C(u8g_dev_t *dev, uint8_t options);
lixianyu 0:d8f4c441e032 68 protected:
lixianyu 0:d8f4c441e032 69 uint8_t init8BitFixedPort(u8g_dev_t *dev, uint8_t en, uint8_t cs, uint8_t di, uint8_t rw, uint8_t reset);
lixianyu 0:d8f4c441e032 70 private:
lixianyu 0:d8f4c441e032 71 uint8_t init8Bit(u8g_dev_t *dev, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 72 uint8_t en, uint8_t cs1, uint8_t cs2, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE);
lixianyu 0:d8f4c441e032 73 uint8_t initRW8Bit(u8g_dev_t *dev, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 74 uint8_t cs, uint8_t a0, uint8_t wr, uint8_t rd, uint8_t reset);
lixianyu 0:d8f4c441e032 75 public:
lixianyu 0:d8f4c441e032 76
lixianyu 0:d8f4c441e032 77 /* constructor */
lixianyu 0:d8f4c441e032 78 U8GLIB(void)
lixianyu 0:d8f4c441e032 79 { }
lixianyu 0:d8f4c441e032 80 U8GLIB(u8g_dev_t *dev) {
lixianyu 0:d8f4c441e032 81 prepare();
lixianyu 0:d8f4c441e032 82 u8g_Init(&u8g, dev);
lixianyu 0:d8f4c441e032 83 }
lixianyu 0:d8f4c441e032 84 U8GLIB(u8g_dev_t *dev, u8g_com_fnptr com_fn) {
lixianyu 0:d8f4c441e032 85 prepare();
lixianyu 1:0e75de2a5d21 86 //log("hehe...u8g = %x", &u8g);
lixianyu 1:0e75de2a5d21 87 //pc.printf("hehe...u8g = 0x%x, dev = 0x%x, com_fn = 0x%x\r\n", &u8g, dev, com_fn);
lixianyu 1:0e75de2a5d21 88 log("hehe...");
lixianyu 0:d8f4c441e032 89 u8g_InitComFn(&u8g, dev, com_fn);
lixianyu 0:d8f4c441e032 90 }
lixianyu 0:d8f4c441e032 91 U8GLIB(u8g_dev_t *dev, uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset) {
lixianyu 0:d8f4c441e032 92 initSPI(dev, sck, mosi, cs, a0, reset);
lixianyu 0:d8f4c441e032 93 }
lixianyu 0:d8f4c441e032 94 U8GLIB(u8g_dev_t *dev, uint8_t cs, uint8_t a0, uint8_t reset) {
lixianyu 0:d8f4c441e032 95 initHWSPI(dev, cs, a0, reset);
lixianyu 0:d8f4c441e032 96 }
lixianyu 0:d8f4c441e032 97 U8GLIB(u8g_dev_t *dev, uint8_t options) {
lixianyu 0:d8f4c441e032 98 initI2C(dev, options);
lixianyu 0:d8f4c441e032 99 }
lixianyu 0:d8f4c441e032 100 U8GLIB(u8g_dev_t *dev, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 101 uint8_t en, uint8_t cs1, uint8_t cs2, uint8_t di, uint8_t rw, uint8_t reset) {
lixianyu 0:d8f4c441e032 102 init8Bit(dev, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, cs2, di, rw, reset);
lixianyu 0:d8f4c441e032 103 }
lixianyu 0:d8f4c441e032 104 U8GLIB(u8g_dev_t *dev, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 105 uint8_t cs, uint8_t a0, uint8_t wr, uint8_t rd, uint8_t reset) {
lixianyu 0:d8f4c441e032 106 initRW8Bit(dev, d0, d1, d2, d3, d4, d5, d6, d7, cs, a0, wr, rd, reset);
lixianyu 0:d8f4c441e032 107 }
lixianyu 0:d8f4c441e032 108
lixianyu 1:0e75de2a5d21 109 void init_u8g(void) {
lixianyu 1:0e75de2a5d21 110 log("Enter init_u8g()");
lixianyu 1:0e75de2a5d21 111 u8g_InitComFn(&u8g, &u8g_dev_ssd1306_microduino_128x64_i2c, u8g_com_lpc824_ssd_i2c_fn);
lixianyu 1:0e75de2a5d21 112 //u8g_dev_ssd1306_microduino_128x64_i2c, u8g_com_lpc824_ssd_i2c_fn
lixianyu 1:0e75de2a5d21 113 }
lixianyu 0:d8f4c441e032 114 uint8_t begin(void) {
lixianyu 0:d8f4c441e032 115 is_begin = 1;
lixianyu 0:d8f4c441e032 116 return u8g_Begin(&u8g);
lixianyu 0:d8f4c441e032 117 }
lixianyu 0:d8f4c441e032 118
lixianyu 0:d8f4c441e032 119 void setPrintPos(u8g_uint_t x, u8g_uint_t y) {
lixianyu 0:d8f4c441e032 120 tx = x;
lixianyu 0:d8f4c441e032 121 ty = y;
lixianyu 0:d8f4c441e032 122 }
lixianyu 0:d8f4c441e032 123 u8g_t *getU8g(void) {
lixianyu 0:d8f4c441e032 124 return &u8g;
lixianyu 0:d8f4c441e032 125 }
lixianyu 0:d8f4c441e032 126
lixianyu 0:d8f4c441e032 127
lixianyu 0:d8f4c441e032 128 /* implementation of the write interface to the print class */
lixianyu 0:d8f4c441e032 129 #if defined(ARDUINO) && ARDUINO >= 100
lixianyu 0:d8f4c441e032 130 size_t write(uint8_t c) {
lixianyu 0:d8f4c441e032 131 tx += u8g_DrawGlyph(&u8g, tx, ty, c);
lixianyu 0:d8f4c441e032 132 return 1;
lixianyu 0:d8f4c441e032 133 }
lixianyu 0:d8f4c441e032 134 #else
lixianyu 0:d8f4c441e032 135 size_t write(uint8_t c) {
lixianyu 0:d8f4c441e032 136 tx += u8g_DrawGlyph(&u8g, tx, ty, c);
lixianyu 0:d8f4c441e032 137 return tx;
lixianyu 0:d8f4c441e032 138 }
lixianyu 0:d8f4c441e032 139 #endif
lixianyu 0:d8f4c441e032 140
lixianyu 0:d8f4c441e032 141 /* screen rotation */
lixianyu 0:d8f4c441e032 142 void undoRotation(void) {
lixianyu 0:d8f4c441e032 143 u8g_UndoRotation(&u8g);
lixianyu 0:d8f4c441e032 144 }
lixianyu 0:d8f4c441e032 145 void setRot90(void) {
lixianyu 0:d8f4c441e032 146 u8g_SetRot90(&u8g);
lixianyu 0:d8f4c441e032 147 }
lixianyu 0:d8f4c441e032 148 void setRot180(void) {
lixianyu 0:d8f4c441e032 149 u8g_SetRot180(&u8g);
lixianyu 0:d8f4c441e032 150 }
lixianyu 0:d8f4c441e032 151 void setRot270(void) {
lixianyu 0:d8f4c441e032 152 u8g_SetRot270(&u8g);
lixianyu 0:d8f4c441e032 153 }
lixianyu 0:d8f4c441e032 154
lixianyu 0:d8f4c441e032 155 /* screen scaling */
lixianyu 0:d8f4c441e032 156 void undoScale(void) {
lixianyu 0:d8f4c441e032 157 u8g_UndoScale(&u8g);
lixianyu 0:d8f4c441e032 158 }
lixianyu 0:d8f4c441e032 159 void setScale2x2(void) {
lixianyu 0:d8f4c441e032 160 u8g_SetScale2x2(&u8g);
lixianyu 0:d8f4c441e032 161 }
lixianyu 0:d8f4c441e032 162
lixianyu 0:d8f4c441e032 163 /* picture loop */
lixianyu 0:d8f4c441e032 164 void firstPage(void) {
lixianyu 0:d8f4c441e032 165 cbegin();
lixianyu 0:d8f4c441e032 166 u8g_FirstPage(&u8g);
lixianyu 0:d8f4c441e032 167 }
lixianyu 0:d8f4c441e032 168 uint8_t nextPage(void) {
lixianyu 0:d8f4c441e032 169 return u8g_NextPage(&u8g);
lixianyu 0:d8f4c441e032 170 }
lixianyu 0:d8f4c441e032 171
lixianyu 0:d8f4c441e032 172 /* system commands */
lixianyu 0:d8f4c441e032 173 uint8_t setContrast(uint8_t contrast) {
lixianyu 0:d8f4c441e032 174 cbegin();
lixianyu 0:d8f4c441e032 175 return u8g_SetContrast(&u8g, contrast);
lixianyu 0:d8f4c441e032 176 }
lixianyu 0:d8f4c441e032 177 void sleepOn(void) {
lixianyu 0:d8f4c441e032 178 u8g_SleepOn(&u8g);
lixianyu 0:d8f4c441e032 179 }
lixianyu 0:d8f4c441e032 180 void sleepOff(void) {
lixianyu 0:d8f4c441e032 181 u8g_SleepOff(&u8g);
lixianyu 0:d8f4c441e032 182 }
lixianyu 0:d8f4c441e032 183
lixianyu 0:d8f4c441e032 184 /* graphic primitives */
lixianyu 0:d8f4c441e032 185 void setColorEntry(uint8_t color_index, uint8_t r, uint8_t g, uint8_t b) {
lixianyu 0:d8f4c441e032 186 u8g_SetColorEntry(&u8g, color_index, r, g, b);
lixianyu 0:d8f4c441e032 187 }
lixianyu 0:d8f4c441e032 188 void setHiColor(uint16_t rgb) {
lixianyu 0:d8f4c441e032 189 u8g_SetHiColor(&u8g, rgb);
lixianyu 0:d8f4c441e032 190 }
lixianyu 0:d8f4c441e032 191 void setHiColorByRGB(uint8_t r, uint8_t g, uint8_t b) {
lixianyu 0:d8f4c441e032 192 u8g_SetHiColorByRGB(&u8g, r, g, b);
lixianyu 0:d8f4c441e032 193 }
lixianyu 0:d8f4c441e032 194 void setRGB(uint8_t r, uint8_t g, uint8_t b) {
lixianyu 0:d8f4c441e032 195 u8g_SetRGB(&u8g, r, g, b);
lixianyu 0:d8f4c441e032 196 }
lixianyu 0:d8f4c441e032 197
lixianyu 0:d8f4c441e032 198 void setColorIndex(uint8_t color_index) {
lixianyu 0:d8f4c441e032 199 u8g_SetColorIndex(&u8g, color_index);
lixianyu 0:d8f4c441e032 200 }
lixianyu 0:d8f4c441e032 201 uint8_t getColorIndex(void) {
lixianyu 0:d8f4c441e032 202 return u8g_GetColorIndex(&u8g);
lixianyu 0:d8f4c441e032 203 }
lixianyu 0:d8f4c441e032 204
lixianyu 0:d8f4c441e032 205 void setDefaultForegroundColor(void) {
lixianyu 0:d8f4c441e032 206 u8g_SetDefaultForegroundColor(&u8g);
lixianyu 0:d8f4c441e032 207 }
lixianyu 0:d8f4c441e032 208 void setDefaultBackgroundColor(void) {
lixianyu 0:d8f4c441e032 209 u8g_SetDefaultBackgroundColor(&u8g);
lixianyu 0:d8f4c441e032 210 }
lixianyu 0:d8f4c441e032 211 void setDefaultMidColor(void) {
lixianyu 0:d8f4c441e032 212 u8g_SetDefaultMidColor(&u8g);
lixianyu 0:d8f4c441e032 213 }
lixianyu 0:d8f4c441e032 214
lixianyu 0:d8f4c441e032 215 u8g_uint_t getWidth(void) {
lixianyu 0:d8f4c441e032 216 return u8g_GetWidth(&u8g);
lixianyu 0:d8f4c441e032 217 }
lixianyu 0:d8f4c441e032 218 u8g_uint_t getHeight(void) {
lixianyu 0:d8f4c441e032 219 return u8g_GetHeight(&u8g);
lixianyu 0:d8f4c441e032 220 }
lixianyu 0:d8f4c441e032 221 uint8_t getMode(void) {
lixianyu 0:d8f4c441e032 222 return u8g_GetMode(&u8g);
lixianyu 0:d8f4c441e032 223 }
lixianyu 0:d8f4c441e032 224
lixianyu 0:d8f4c441e032 225 void drawPixel(u8g_uint_t x, u8g_uint_t y) {
lixianyu 0:d8f4c441e032 226 return u8g_DrawPixel(&u8g, x, y);
lixianyu 0:d8f4c441e032 227 }
lixianyu 0:d8f4c441e032 228 void drawHLine(u8g_uint_t x, u8g_uint_t y, u8g_uint_t w) {
lixianyu 0:d8f4c441e032 229 u8g_DrawHLine(&u8g, x, y, w);
lixianyu 0:d8f4c441e032 230 }
lixianyu 0:d8f4c441e032 231 void drawVLine(u8g_uint_t x, u8g_uint_t y, u8g_uint_t h) {
lixianyu 0:d8f4c441e032 232 u8g_DrawVLine(&u8g, x, y, h);
lixianyu 0:d8f4c441e032 233 }
lixianyu 0:d8f4c441e032 234 void drawLine(u8g_uint_t x1, u8g_uint_t y1, u8g_uint_t x2, u8g_uint_t y2) {
lixianyu 0:d8f4c441e032 235 u8g_DrawLine(&u8g, x1, y1, x2, y2);
lixianyu 0:d8f4c441e032 236 }
lixianyu 0:d8f4c441e032 237
lixianyu 0:d8f4c441e032 238 void drawFrame(u8g_uint_t x, u8g_uint_t y, u8g_uint_t w, u8g_uint_t h) {
lixianyu 0:d8f4c441e032 239 u8g_DrawFrame(&u8g, x, y, w, h);
lixianyu 0:d8f4c441e032 240 }
lixianyu 0:d8f4c441e032 241 void drawRFrame(u8g_uint_t x, u8g_uint_t y, u8g_uint_t w, u8g_uint_t h, u8g_uint_t r) {
lixianyu 0:d8f4c441e032 242 u8g_DrawRFrame(&u8g, x, y, w, h,r);
lixianyu 0:d8f4c441e032 243 }
lixianyu 0:d8f4c441e032 244 void drawBox(u8g_uint_t x, u8g_uint_t y, u8g_uint_t w, u8g_uint_t h) {
lixianyu 0:d8f4c441e032 245 u8g_DrawBox(&u8g, x, y, w, h);
lixianyu 0:d8f4c441e032 246 }
lixianyu 0:d8f4c441e032 247 void drawRBox(u8g_uint_t x, u8g_uint_t y, u8g_uint_t w, u8g_uint_t h, u8g_uint_t r) {
lixianyu 0:d8f4c441e032 248 u8g_DrawRBox(&u8g, x, y, w, h,r);
lixianyu 0:d8f4c441e032 249 }
lixianyu 0:d8f4c441e032 250
lixianyu 0:d8f4c441e032 251 void drawCircle(u8g_uint_t x0, u8g_uint_t y0, u8g_uint_t rad, uint8_t opt = U8G_DRAW_ALL) {
lixianyu 0:d8f4c441e032 252 u8g_DrawCircle(&u8g, x0, y0, rad, opt);
lixianyu 0:d8f4c441e032 253 }
lixianyu 0:d8f4c441e032 254 void drawDisc(u8g_uint_t x0, u8g_uint_t y0, u8g_uint_t rad, uint8_t opt = U8G_DRAW_ALL) {
lixianyu 0:d8f4c441e032 255 u8g_DrawDisc(&u8g, x0, y0, rad, opt);
lixianyu 0:d8f4c441e032 256 }
lixianyu 0:d8f4c441e032 257
lixianyu 0:d8f4c441e032 258 void drawEllipse(u8g_uint_t x0, u8g_uint_t y0, u8g_uint_t rx, u8g_uint_t ry, uint8_t opt = U8G_DRAW_ALL) {
lixianyu 0:d8f4c441e032 259 u8g_DrawEllipse(&u8g, x0, y0, rx, ry, opt);
lixianyu 0:d8f4c441e032 260 }
lixianyu 0:d8f4c441e032 261 void drawFilledEllipse(u8g_uint_t x0, u8g_uint_t y0, u8g_uint_t rx, u8g_uint_t ry, uint8_t opt = U8G_DRAW_ALL) {
lixianyu 0:d8f4c441e032 262 u8g_DrawFilledEllipse(&u8g, x0, y0, rx, ry, opt);
lixianyu 0:d8f4c441e032 263 }
lixianyu 0:d8f4c441e032 264
lixianyu 0:d8f4c441e032 265 void drawTriangle(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) {
lixianyu 0:d8f4c441e032 266 u8g_DrawTriangle(&u8g, x0, y0, x1, y1, x2, y2);
lixianyu 0:d8f4c441e032 267 }
lixianyu 0:d8f4c441e032 268
lixianyu 0:d8f4c441e032 269
lixianyu 0:d8f4c441e032 270
lixianyu 0:d8f4c441e032 271 /* bitmap handling */
lixianyu 0:d8f4c441e032 272 void drawBitmap(u8g_uint_t x, u8g_uint_t y, u8g_uint_t cnt, u8g_uint_t h, const uint8_t *bitmap) {
lixianyu 0:d8f4c441e032 273 u8g_DrawBitmap(&u8g, x, y, cnt, h, bitmap);
lixianyu 0:d8f4c441e032 274 }
lixianyu 0:d8f4c441e032 275 void drawBitmapP(u8g_uint_t x, u8g_uint_t y, u8g_uint_t cnt, u8g_uint_t h, const u8g_pgm_uint8_t *bitmap) {
lixianyu 0:d8f4c441e032 276 u8g_DrawBitmapP(&u8g, x, y, cnt, h, bitmap);
lixianyu 0:d8f4c441e032 277 }
lixianyu 0:d8f4c441e032 278
lixianyu 0:d8f4c441e032 279 void drawXBM(u8g_uint_t x, u8g_uint_t y, u8g_uint_t w, u8g_uint_t h, const uint8_t *bitmap) {
lixianyu 0:d8f4c441e032 280 u8g_DrawXBM(&u8g, x, y, w, h, bitmap);
lixianyu 0:d8f4c441e032 281 }
lixianyu 0:d8f4c441e032 282 void drawXBMP(u8g_uint_t x, u8g_uint_t y, u8g_uint_t w, u8g_uint_t h, const u8g_pgm_uint8_t *bitmap) {
lixianyu 0:d8f4c441e032 283 u8g_DrawXBMP(&u8g, x, y, w, h, bitmap);
lixianyu 0:d8f4c441e032 284 }
lixianyu 0:d8f4c441e032 285
lixianyu 0:d8f4c441e032 286
lixianyu 0:d8f4c441e032 287 /* font handling */
lixianyu 0:d8f4c441e032 288 void setFont(const u8g_fntpgm_uint8_t *font) {
lixianyu 0:d8f4c441e032 289 u8g_SetFont(&u8g, font);
lixianyu 0:d8f4c441e032 290 }
lixianyu 0:d8f4c441e032 291 int8_t getFontAscent(void) {
lixianyu 0:d8f4c441e032 292 return u8g_GetFontAscent(&u8g);
lixianyu 0:d8f4c441e032 293 }
lixianyu 0:d8f4c441e032 294 int8_t getFontDescent(void) {
lixianyu 0:d8f4c441e032 295 return u8g_GetFontDescent(&u8g);
lixianyu 0:d8f4c441e032 296 }
lixianyu 0:d8f4c441e032 297 int8_t getFontLineSpacing(void) {
lixianyu 0:d8f4c441e032 298 return u8g_GetFontLineSpacing(&u8g);
lixianyu 0:d8f4c441e032 299 }
lixianyu 0:d8f4c441e032 300
lixianyu 0:d8f4c441e032 301 u8g_uint_t drawStr(u8g_uint_t x, u8g_uint_t y, const char *s) {
lixianyu 0:d8f4c441e032 302 return u8g_DrawStr(&u8g, x, y, s);
lixianyu 0:d8f4c441e032 303 }
lixianyu 0:d8f4c441e032 304 u8g_uint_t drawStr90(u8g_uint_t x, u8g_uint_t y, const char *s) {
lixianyu 0:d8f4c441e032 305 return u8g_DrawStr90(&u8g, x, y, s);
lixianyu 0:d8f4c441e032 306 }
lixianyu 0:d8f4c441e032 307 u8g_uint_t drawStr180(u8g_uint_t x, u8g_uint_t y, const char *s) {
lixianyu 0:d8f4c441e032 308 return u8g_DrawStr180(&u8g, x, y, s);
lixianyu 0:d8f4c441e032 309 }
lixianyu 0:d8f4c441e032 310 u8g_uint_t drawStr270(u8g_uint_t x, u8g_uint_t y, const char *s) {
lixianyu 0:d8f4c441e032 311 return u8g_DrawStr270(&u8g, x, y, s);
lixianyu 0:d8f4c441e032 312 }
lixianyu 0:d8f4c441e032 313 u8g_uint_t drawStrP(u8g_uint_t x, u8g_uint_t y, const u8g_pgm_uint8_t *s) {
lixianyu 0:d8f4c441e032 314 return u8g_DrawStrP(&u8g, x, y, s);
lixianyu 0:d8f4c441e032 315 }
lixianyu 0:d8f4c441e032 316 u8g_uint_t drawStr90P(u8g_uint_t x, u8g_uint_t y, const u8g_pgm_uint8_t *s) {
lixianyu 0:d8f4c441e032 317 return u8g_DrawStr90P(&u8g, x, y, s);
lixianyu 0:d8f4c441e032 318 }
lixianyu 0:d8f4c441e032 319 u8g_uint_t drawStr180P(u8g_uint_t x, u8g_uint_t y, const u8g_pgm_uint8_t *s) {
lixianyu 0:d8f4c441e032 320 return u8g_DrawStr180P(&u8g, x, y, s);
lixianyu 0:d8f4c441e032 321 }
lixianyu 0:d8f4c441e032 322 u8g_uint_t drawStr270P(u8g_uint_t x, u8g_uint_t y, const u8g_pgm_uint8_t *s) {
lixianyu 0:d8f4c441e032 323 return u8g_DrawStr270P(&u8g, x, y, s);
lixianyu 0:d8f4c441e032 324 }
lixianyu 0:d8f4c441e032 325
lixianyu 0:d8f4c441e032 326 void setFontPosBaseline(void) {
lixianyu 0:d8f4c441e032 327 u8g_SetFontPosBaseline(&u8g);
lixianyu 0:d8f4c441e032 328 }
lixianyu 0:d8f4c441e032 329 void setFontPosBottom(void) {
lixianyu 0:d8f4c441e032 330 u8g_SetFontPosBottom(&u8g);
lixianyu 0:d8f4c441e032 331 }
lixianyu 0:d8f4c441e032 332 void setFontPosCenter(void) {
lixianyu 0:d8f4c441e032 333 u8g_SetFontPosCenter(&u8g);
lixianyu 0:d8f4c441e032 334 }
lixianyu 0:d8f4c441e032 335 void setFontPosTop(void) {
lixianyu 0:d8f4c441e032 336 u8g_SetFontPosTop(&u8g);
lixianyu 0:d8f4c441e032 337 }
lixianyu 0:d8f4c441e032 338
lixianyu 0:d8f4c441e032 339 void setFontRefHeightText(void) {
lixianyu 0:d8f4c441e032 340 u8g_SetFontRefHeightText(&u8g);
lixianyu 0:d8f4c441e032 341 }
lixianyu 0:d8f4c441e032 342 void setFontRefHeightExtendedText(void) {
lixianyu 0:d8f4c441e032 343 u8g_SetFontRefHeightExtendedText(&u8g);
lixianyu 0:d8f4c441e032 344 }
lixianyu 0:d8f4c441e032 345 void setFontRefHeightAll(void) {
lixianyu 0:d8f4c441e032 346 u8g_SetFontRefHeightAll(&u8g);
lixianyu 0:d8f4c441e032 347 }
lixianyu 0:d8f4c441e032 348 void setFontLineSpacingFactor(uint8_t factor) {
lixianyu 0:d8f4c441e032 349 u8g_SetFontLineSpacingFactor(&u8g, factor);
lixianyu 0:d8f4c441e032 350 }
lixianyu 0:d8f4c441e032 351
lixianyu 0:d8f4c441e032 352
lixianyu 0:d8f4c441e032 353 u8g_uint_t getStrPixelWidth(const char *s) {
lixianyu 0:d8f4c441e032 354 return u8g_GetStrPixelWidth(&u8g, s);
lixianyu 0:d8f4c441e032 355 }
lixianyu 0:d8f4c441e032 356 u8g_uint_t getStrPixelWidthP(u8g_pgm_uint8_t *s) {
lixianyu 0:d8f4c441e032 357 return u8g_GetStrPixelWidthP(&u8g, s);
lixianyu 0:d8f4c441e032 358 }
lixianyu 0:d8f4c441e032 359 u8g_uint_t getStrWidth(const char *s) {
lixianyu 0:d8f4c441e032 360 return u8g_GetStrWidth(&u8g, s);
lixianyu 0:d8f4c441e032 361 }
lixianyu 0:d8f4c441e032 362 u8g_uint_t getStrWidthP(u8g_pgm_uint8_t *s) {
lixianyu 0:d8f4c441e032 363 return u8g_GetStrWidthP(&u8g, s);
lixianyu 0:d8f4c441e032 364 }
lixianyu 0:d8f4c441e032 365
lixianyu 0:d8f4c441e032 366 void setHardwareBackup(u8g_state_cb backup_cb) {
lixianyu 0:d8f4c441e032 367 u8g_SetHardwareBackup(&u8g, backup_cb);
lixianyu 0:d8f4c441e032 368 }
lixianyu 0:d8f4c441e032 369
lixianyu 0:d8f4c441e032 370 #if defined(ARDUINO) && ARDUINO >= 100
lixianyu 0:d8f4c441e032 371 // support for the F() macro
lixianyu 0:d8f4c441e032 372
lixianyu 0:d8f4c441e032 373 u8g_uint_t drawStr(u8g_uint_t x, u8g_uint_t y, const __FlashStringHelper *s) {
lixianyu 0:d8f4c441e032 374 return u8g_DrawStrP(&u8g, x, y, (u8g_pgm_uint8_t *)s);
lixianyu 0:d8f4c441e032 375 }
lixianyu 0:d8f4c441e032 376 u8g_uint_t drawStr90(u8g_uint_t x, u8g_uint_t y, const __FlashStringHelper *s) {
lixianyu 0:d8f4c441e032 377 return u8g_DrawStr90P(&u8g, x, y, (u8g_pgm_uint8_t *)s);
lixianyu 0:d8f4c441e032 378 }
lixianyu 0:d8f4c441e032 379 u8g_uint_t drawStr180(u8g_uint_t x, u8g_uint_t y, const __FlashStringHelper *s) {
lixianyu 0:d8f4c441e032 380 return u8g_DrawStr180P(&u8g, x, y, (u8g_pgm_uint8_t *)s);
lixianyu 0:d8f4c441e032 381 }
lixianyu 0:d8f4c441e032 382 u8g_uint_t drawStr270(u8g_uint_t x, u8g_uint_t y, const __FlashStringHelper *s) {
lixianyu 0:d8f4c441e032 383 return u8g_DrawStr270P(&u8g, x, y, (u8g_pgm_uint8_t *)s);
lixianyu 0:d8f4c441e032 384 }
lixianyu 0:d8f4c441e032 385
lixianyu 0:d8f4c441e032 386 u8g_uint_t getStrPixelWidth(const __FlashStringHelper *s) {
lixianyu 0:d8f4c441e032 387 return u8g_GetStrPixelWidthP(&u8g, (u8g_pgm_uint8_t *)s);
lixianyu 0:d8f4c441e032 388 }
lixianyu 0:d8f4c441e032 389 u8g_uint_t getStrWidth(const __FlashStringHelper *s) {
lixianyu 0:d8f4c441e032 390 return u8g_GetStrWidthP(&u8g, (u8g_pgm_uint8_t *)s);
lixianyu 0:d8f4c441e032 391 }
lixianyu 0:d8f4c441e032 392 #endif
lixianyu 0:d8f4c441e032 393
lixianyu 0:d8f4c441e032 394 /* cursor handling */
lixianyu 0:d8f4c441e032 395 void setCursorFont(const u8g_pgm_uint8_t *cursor_font) {
lixianyu 0:d8f4c441e032 396 u8g_SetCursorFont(&u8g, cursor_font);
lixianyu 0:d8f4c441e032 397 }
lixianyu 0:d8f4c441e032 398 void setCursorStyle(uint8_t encoding) {
lixianyu 0:d8f4c441e032 399 u8g_SetCursorStyle(&u8g, encoding);
lixianyu 0:d8f4c441e032 400 }
lixianyu 0:d8f4c441e032 401 void setCursorPos(u8g_uint_t cursor_x, u8g_uint_t cursor_y) {
lixianyu 0:d8f4c441e032 402 u8g_SetCursorPos(&u8g, cursor_x, cursor_y);
lixianyu 0:d8f4c441e032 403 }
lixianyu 0:d8f4c441e032 404 void setCursorColor(uint8_t fg, uint8_t bg) {
lixianyu 0:d8f4c441e032 405 u8g_SetCursorColor(&u8g, fg, bg);
lixianyu 0:d8f4c441e032 406 }
lixianyu 0:d8f4c441e032 407 void enableCursor(void) {
lixianyu 0:d8f4c441e032 408 u8g_EnableCursor(&u8g);
lixianyu 0:d8f4c441e032 409 }
lixianyu 0:d8f4c441e032 410 void disableCursor(void) {
lixianyu 0:d8f4c441e032 411 u8g_DisableCursor(&u8g);
lixianyu 0:d8f4c441e032 412 }
lixianyu 0:d8f4c441e032 413 void drawCursor(void) {
lixianyu 0:d8f4c441e032 414 u8g_DrawCursor(&u8g);
lixianyu 0:d8f4c441e032 415 }
lixianyu 0:d8f4c441e032 416
lixianyu 0:d8f4c441e032 417 /* virtual screen */
lixianyu 0:d8f4c441e032 418
lixianyu 0:d8f4c441e032 419 void setVirtualScreenDimension(u8g_uint_t width, u8g_uint_t height) {
lixianyu 0:d8f4c441e032 420 u8g_SetVirtualScreenDimension(&u8g, width, height);
lixianyu 0:d8f4c441e032 421 }
lixianyu 0:d8f4c441e032 422 uint8_t addToVirtualScreen(u8g_uint_t x, u8g_uint_t y, U8GLIB &child_u8g) {
lixianyu 0:d8f4c441e032 423 return u8g_AddToVirtualScreen(&u8g, x, y, &child_u8g.u8g);
lixianyu 0:d8f4c441e032 424 }
lixianyu 0:d8f4c441e032 425
lixianyu 0:d8f4c441e032 426 };
lixianyu 0:d8f4c441e032 427
lixianyu 0:d8f4c441e032 428
lixianyu 0:d8f4c441e032 429 class U8GLIB_DOGS102 : public U8GLIB
lixianyu 0:d8f4c441e032 430 {
lixianyu 0:d8f4c441e032 431 public:
lixianyu 0:d8f4c441e032 432 U8GLIB_DOGS102(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 433 : U8GLIB(&u8g_dev_uc1701_dogs102_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 434 { }
lixianyu 0:d8f4c441e032 435 U8GLIB_DOGS102(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 436 : U8GLIB(&u8g_dev_uc1701_dogs102_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 437 { }
lixianyu 0:d8f4c441e032 438 };
lixianyu 0:d8f4c441e032 439
lixianyu 0:d8f4c441e032 440 class U8GLIB_DOGS102_2X : public U8GLIB
lixianyu 0:d8f4c441e032 441 {
lixianyu 0:d8f4c441e032 442 public:
lixianyu 0:d8f4c441e032 443 U8GLIB_DOGS102_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 444 : U8GLIB(&u8g_dev_uc1701_dogs102_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 445 { }
lixianyu 0:d8f4c441e032 446 U8GLIB_DOGS102_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 447 : U8GLIB(&u8g_dev_uc1701_dogs102_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 448 { }
lixianyu 0:d8f4c441e032 449 };
lixianyu 0:d8f4c441e032 450
lixianyu 0:d8f4c441e032 451 class U8GLIB_MINI12864 : public U8GLIB
lixianyu 0:d8f4c441e032 452 {
lixianyu 0:d8f4c441e032 453 public:
lixianyu 0:d8f4c441e032 454 U8GLIB_MINI12864(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 455 : U8GLIB(&u8g_dev_uc1701_mini12864_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 456 { }
lixianyu 0:d8f4c441e032 457 U8GLIB_MINI12864(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 458 : U8GLIB(&u8g_dev_uc1701_mini12864_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 459 { }
lixianyu 0:d8f4c441e032 460 };
lixianyu 0:d8f4c441e032 461
lixianyu 0:d8f4c441e032 462 class U8GLIB_MINI12864_2X : public U8GLIB
lixianyu 0:d8f4c441e032 463 {
lixianyu 0:d8f4c441e032 464 public:
lixianyu 0:d8f4c441e032 465 U8GLIB_MINI12864_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 466 : U8GLIB(&u8g_dev_uc1701_mini12864_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 467 { }
lixianyu 0:d8f4c441e032 468 U8GLIB_MINI12864_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 469 : U8GLIB(&u8g_dev_uc1701_mini12864_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 470 { }
lixianyu 0:d8f4c441e032 471 };
lixianyu 0:d8f4c441e032 472
lixianyu 0:d8f4c441e032 473 class U8GLIB_DOGM132 : public U8GLIB
lixianyu 0:d8f4c441e032 474 {
lixianyu 0:d8f4c441e032 475 public:
lixianyu 0:d8f4c441e032 476 U8GLIB_DOGM132(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 477 : U8GLIB(&u8g_dev_st7565_dogm132_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 478 { }
lixianyu 0:d8f4c441e032 479 U8GLIB_DOGM132(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 480 : U8GLIB(&u8g_dev_st7565_dogm132_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 481 { }
lixianyu 0:d8f4c441e032 482 };
lixianyu 0:d8f4c441e032 483
lixianyu 0:d8f4c441e032 484 class U8GLIB_NHD_C12832 : public U8GLIB
lixianyu 0:d8f4c441e032 485 {
lixianyu 0:d8f4c441e032 486 public:
lixianyu 0:d8f4c441e032 487 U8GLIB_NHD_C12832(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 488 : U8GLIB(&u8g_dev_st7565_nhd_c12832_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 489 { }
lixianyu 0:d8f4c441e032 490 U8GLIB_NHD_C12832(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 491 : U8GLIB(&u8g_dev_st7565_nhd_c12832_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 492 { }
lixianyu 0:d8f4c441e032 493 U8GLIB_NHD_C12832(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 494 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 495 : U8GLIB(&u8g_dev_st7565_nhd_c12832_parallel, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 496 { }
lixianyu 0:d8f4c441e032 497 };
lixianyu 0:d8f4c441e032 498
lixianyu 0:d8f4c441e032 499 class U8GLIB_NHD_C12832_USART : public U8GLIB
lixianyu 0:d8f4c441e032 500 {
lixianyu 0:d8f4c441e032 501 public:
lixianyu 0:d8f4c441e032 502 U8GLIB_NHD_C12832_USART(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 503 : U8GLIB(&u8g_dev_st7565_nhd_c12832_hw_usart_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 504 { }
lixianyu 0:d8f4c441e032 505 };
lixianyu 0:d8f4c441e032 506
lixianyu 0:d8f4c441e032 507 class U8GLIB_DOGM128 : public U8GLIB
lixianyu 0:d8f4c441e032 508 {
lixianyu 0:d8f4c441e032 509 public:
lixianyu 0:d8f4c441e032 510 U8GLIB_DOGM128(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 511 : U8GLIB(&u8g_dev_st7565_dogm128_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 512 { }
lixianyu 0:d8f4c441e032 513 U8GLIB_DOGM128(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 514 : U8GLIB(&u8g_dev_st7565_dogm128_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 515 { }
lixianyu 0:d8f4c441e032 516 U8GLIB_DOGM128(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 517 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 518 : U8GLIB(&u8g_dev_st7565_dogm128_parallel, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 519 { }
lixianyu 0:d8f4c441e032 520 };
lixianyu 0:d8f4c441e032 521
lixianyu 0:d8f4c441e032 522 class U8GLIB_DOGM128_2X : public U8GLIB
lixianyu 0:d8f4c441e032 523 {
lixianyu 0:d8f4c441e032 524 public:
lixianyu 0:d8f4c441e032 525 U8GLIB_DOGM128_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 526 : U8GLIB(&u8g_dev_st7565_dogm128_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 527 { }
lixianyu 0:d8f4c441e032 528 U8GLIB_DOGM128_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 529 : U8GLIB(&u8g_dev_st7565_dogm128_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 530 { }
lixianyu 0:d8f4c441e032 531 U8GLIB_DOGM128_2X(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 532 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 533 : U8GLIB(&u8g_dev_st7565_dogm128_2x_parallel, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 534 { }
lixianyu 0:d8f4c441e032 535 };
lixianyu 0:d8f4c441e032 536
lixianyu 0:d8f4c441e032 537 class U8GLIB_LM6059 : public U8GLIB
lixianyu 0:d8f4c441e032 538 {
lixianyu 0:d8f4c441e032 539 public:
lixianyu 0:d8f4c441e032 540 U8GLIB_LM6059(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 541 : U8GLIB(&u8g_dev_st7565_lm6059_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 542 { }
lixianyu 0:d8f4c441e032 543 U8GLIB_LM6059(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 544 : U8GLIB(&u8g_dev_st7565_lm6059_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 545 { }
lixianyu 0:d8f4c441e032 546 };
lixianyu 0:d8f4c441e032 547
lixianyu 0:d8f4c441e032 548 class U8GLIB_LM6059_2X : public U8GLIB
lixianyu 0:d8f4c441e032 549 {
lixianyu 0:d8f4c441e032 550 public:
lixianyu 0:d8f4c441e032 551 U8GLIB_LM6059_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 552 : U8GLIB(&u8g_dev_st7565_lm6059_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 553 { }
lixianyu 0:d8f4c441e032 554 U8GLIB_LM6059_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 555 : U8GLIB(&u8g_dev_st7565_lm6059_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 556 { }
lixianyu 0:d8f4c441e032 557 };
lixianyu 0:d8f4c441e032 558
lixianyu 0:d8f4c441e032 559 class U8GLIB_LM6063 : public U8GLIB
lixianyu 0:d8f4c441e032 560 {
lixianyu 0:d8f4c441e032 561 public:
lixianyu 0:d8f4c441e032 562 U8GLIB_LM6063(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 563 : U8GLIB(&u8g_dev_st7565_lm6063_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 564 { }
lixianyu 0:d8f4c441e032 565 U8GLIB_LM6063(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 566 : U8GLIB(&u8g_dev_st7565_lm6063_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 567 { }
lixianyu 0:d8f4c441e032 568 };
lixianyu 0:d8f4c441e032 569
lixianyu 0:d8f4c441e032 570 class U8GLIB_LM6063_2X : public U8GLIB
lixianyu 0:d8f4c441e032 571 {
lixianyu 0:d8f4c441e032 572 public:
lixianyu 0:d8f4c441e032 573 U8GLIB_LM6063_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 574 : U8GLIB(&u8g_dev_st7565_lm6063_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 575 { }
lixianyu 0:d8f4c441e032 576 U8GLIB_LM6063_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 577 : U8GLIB(&u8g_dev_st7565_lm6063_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 578 { }
lixianyu 0:d8f4c441e032 579 };
lixianyu 0:d8f4c441e032 580
lixianyu 0:d8f4c441e032 581 class U8GLIB_64128N : public U8GLIB
lixianyu 0:d8f4c441e032 582 {
lixianyu 0:d8f4c441e032 583 public:
lixianyu 0:d8f4c441e032 584 U8GLIB_64128N(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 585 : U8GLIB(&u8g_dev_st7565_64128n_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 586 { }
lixianyu 0:d8f4c441e032 587 U8GLIB_64128N(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 588 : U8GLIB(&u8g_dev_st7565_64128n_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 589 { }
lixianyu 0:d8f4c441e032 590 U8GLIB_64128N(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 591 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 592 : U8GLIB(&u8g_dev_st7565_64128n_parallel, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 593 { }
lixianyu 0:d8f4c441e032 594 };
lixianyu 0:d8f4c441e032 595
lixianyu 0:d8f4c441e032 596 class U8GLIB_64128N_2X : public U8GLIB
lixianyu 0:d8f4c441e032 597 {
lixianyu 0:d8f4c441e032 598 public:
lixianyu 0:d8f4c441e032 599 U8GLIB_64128N_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 600 : U8GLIB(&u8g_dev_st7565_64128n_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 601 { }
lixianyu 0:d8f4c441e032 602 U8GLIB_64128N_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 603 : U8GLIB(&u8g_dev_st7565_64128n_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 604 { }
lixianyu 0:d8f4c441e032 605 U8GLIB_64128N_2X(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 606 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 607 : U8GLIB(&u8g_dev_st7565_64128n_2x_parallel, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 608 { }
lixianyu 0:d8f4c441e032 609 };
lixianyu 0:d8f4c441e032 610
lixianyu 0:d8f4c441e032 611 class U8GLIB_NHD_C12864 : public U8GLIB
lixianyu 0:d8f4c441e032 612 {
lixianyu 0:d8f4c441e032 613 public:
lixianyu 0:d8f4c441e032 614 U8GLIB_NHD_C12864(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 615 : U8GLIB(&u8g_dev_st7565_nhd_c12864_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 616 { }
lixianyu 0:d8f4c441e032 617 U8GLIB_NHD_C12864(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 618 : U8GLIB(&u8g_dev_st7565_nhd_c12864_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 619 { }
lixianyu 0:d8f4c441e032 620 };
lixianyu 0:d8f4c441e032 621
lixianyu 0:d8f4c441e032 622 class U8GLIB_NHD_C12864_2X : public U8GLIB
lixianyu 0:d8f4c441e032 623 {
lixianyu 0:d8f4c441e032 624 public:
lixianyu 0:d8f4c441e032 625 U8GLIB_NHD_C12864_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 626 : U8GLIB(&u8g_dev_st7565_nhd_c12864_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 627 { }
lixianyu 0:d8f4c441e032 628 U8GLIB_NHD_C12864_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 629 : U8GLIB(&u8g_dev_st7565_nhd_c12864_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 630 { }
lixianyu 0:d8f4c441e032 631 };
lixianyu 0:d8f4c441e032 632
lixianyu 0:d8f4c441e032 633 class U8GLIB_UC1601_C128032 : public U8GLIB
lixianyu 0:d8f4c441e032 634 {
lixianyu 0:d8f4c441e032 635 public:
lixianyu 0:d8f4c441e032 636 U8GLIB_UC1601_C128032(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 637 : U8GLIB(&u8g_dev_uc1601_c128032_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 638 { }
lixianyu 0:d8f4c441e032 639 U8GLIB_UC1601_C128032(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 640 : U8GLIB(&u8g_dev_uc1601_c128032_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 641 { }
lixianyu 0:d8f4c441e032 642 };
lixianyu 0:d8f4c441e032 643
lixianyu 0:d8f4c441e032 644 class U8GLIB_UC1601_C128032_2X : public U8GLIB
lixianyu 0:d8f4c441e032 645 {
lixianyu 0:d8f4c441e032 646 public:
lixianyu 0:d8f4c441e032 647 U8GLIB_UC1601_C128032_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 648 : U8GLIB(&u8g_dev_uc1601_c128032_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 649 { }
lixianyu 0:d8f4c441e032 650 U8GLIB_UC1601_C128032_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 651 : U8GLIB(&u8g_dev_uc1601_c128032_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 652 { }
lixianyu 0:d8f4c441e032 653 };
lixianyu 0:d8f4c441e032 654
lixianyu 0:d8f4c441e032 655 class U8GLIB_UC1608_240X64 : public U8GLIB
lixianyu 0:d8f4c441e032 656 {
lixianyu 0:d8f4c441e032 657 public:
lixianyu 0:d8f4c441e032 658 U8GLIB_UC1608_240X64(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 659 : U8GLIB(&u8g_dev_uc1608_240x64_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 660 { }
lixianyu 0:d8f4c441e032 661 U8GLIB_UC1608_240X64(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 662 : U8GLIB(&u8g_dev_uc1608_240x64_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 663 { }
lixianyu 0:d8f4c441e032 664 };
lixianyu 0:d8f4c441e032 665
lixianyu 0:d8f4c441e032 666 class U8GLIB_UC1608_240X64_2X : public U8GLIB
lixianyu 0:d8f4c441e032 667 {
lixianyu 0:d8f4c441e032 668 public:
lixianyu 0:d8f4c441e032 669 U8GLIB_UC1608_240X64_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 670 : U8GLIB(&u8g_dev_uc1608_240x64_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 671 { }
lixianyu 0:d8f4c441e032 672 U8GLIB_UC1608_240X64_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 673 : U8GLIB(&u8g_dev_uc1608_240x64_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 674 { }
lixianyu 0:d8f4c441e032 675 };
lixianyu 0:d8f4c441e032 676
lixianyu 0:d8f4c441e032 677
lixianyu 0:d8f4c441e032 678 class U8GLIB_ST7920_128X64 : public U8GLIB
lixianyu 0:d8f4c441e032 679 {
lixianyu 0:d8f4c441e032 680 public:
lixianyu 0:d8f4c441e032 681 U8GLIB_ST7920_128X64(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 682 : U8GLIB(&u8g_dev_st7920_128x64_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 683 { }
lixianyu 0:d8f4c441e032 684 U8GLIB_ST7920_128X64(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 685 : U8GLIB(&u8g_dev_st7920_128x64_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 686 { }
lixianyu 0:d8f4c441e032 687 U8GLIB_ST7920_128X64(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 688 uint8_t en, uint8_t cs1, uint8_t cs2, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 689 : U8GLIB(&u8g_dev_st7920_128x64_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, cs2, di, rw, reset)
lixianyu 0:d8f4c441e032 690 { }
lixianyu 0:d8f4c441e032 691 // U8GLIB_ST7920_128X64(uint8_t cs)
lixianyu 0:d8f4c441e032 692 // : U8GLIB(&u8g_dev_st7920_128x64_sw_spi, cs, U8G_PIN_NONE, U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 693 // { }
lixianyu 0:d8f4c441e032 694 };
lixianyu 0:d8f4c441e032 695
lixianyu 0:d8f4c441e032 696 class U8GLIB_ST7920_128X64_1X : public U8GLIB
lixianyu 0:d8f4c441e032 697 {
lixianyu 0:d8f4c441e032 698 public:
lixianyu 0:d8f4c441e032 699 U8GLIB_ST7920_128X64_1X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 700 : U8GLIB(&u8g_dev_st7920_128x64_sw_spi, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 701 { }
lixianyu 0:d8f4c441e032 702 U8GLIB_ST7920_128X64_1X(uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 703 : U8GLIB(&u8g_dev_st7920_128x64_hw_spi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 704 { }
lixianyu 0:d8f4c441e032 705 U8GLIB_ST7920_128X64_1X(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 706 uint8_t en, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 707 : U8GLIB(&u8g_dev_st7920_128x64_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, U8G_PIN_NONE, U8G_PIN_NONE, di, rw, reset) // cs1 = cs2 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 708 { }
lixianyu 0:d8f4c441e032 709 };
lixianyu 0:d8f4c441e032 710
lixianyu 0:d8f4c441e032 711 class U8GLIB_ST7920_128X64_CUSTOM_1X : public U8GLIB
lixianyu 0:d8f4c441e032 712 {
lixianyu 0:d8f4c441e032 713 public:
lixianyu 0:d8f4c441e032 714 U8GLIB_ST7920_128X64_CUSTOM_1X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 715 : U8GLIB(&u8g_dev_st7920_128x64_custom, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 716 { }
lixianyu 0:d8f4c441e032 717 };
lixianyu 0:d8f4c441e032 718
lixianyu 0:d8f4c441e032 719 class U8GLIB_ST7920_128X64_4X : public U8GLIB
lixianyu 0:d8f4c441e032 720 {
lixianyu 0:d8f4c441e032 721 public:
lixianyu 0:d8f4c441e032 722 U8GLIB_ST7920_128X64_4X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 723 : U8GLIB(&u8g_dev_st7920_128x64_4x_sw_spi, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 724 { }
lixianyu 0:d8f4c441e032 725 U8GLIB_ST7920_128X64_4X(uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 726 : U8GLIB(&u8g_dev_st7920_128x64_4x_hw_spi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 727 { }
lixianyu 0:d8f4c441e032 728 U8GLIB_ST7920_128X64_4X(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 729 uint8_t en, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 730 : U8GLIB(&u8g_dev_st7920_128x64_4x_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, U8G_PIN_NONE, U8G_PIN_NONE, di, rw, reset) // cs1 = cs2 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 731 { }
lixianyu 0:d8f4c441e032 732 };
lixianyu 0:d8f4c441e032 733
lixianyu 0:d8f4c441e032 734 class U8GLIB_ST7920_128X64_CUSTOM_4X : public U8GLIB
lixianyu 0:d8f4c441e032 735 {
lixianyu 0:d8f4c441e032 736 public:
lixianyu 0:d8f4c441e032 737 U8GLIB_ST7920_128X64_CUSTOM_4X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 738 : U8GLIB(&u8g_dev_st7920_128x64_4x_custom, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 739 { }
lixianyu 0:d8f4c441e032 740 };
lixianyu 0:d8f4c441e032 741
lixianyu 0:d8f4c441e032 742
lixianyu 0:d8f4c441e032 743 class U8GLIB_ST7920_192X32 : public U8GLIB // OBSOLETE, use U8GLIB_ST7920_192X32_1X instead
lixianyu 0:d8f4c441e032 744 {
lixianyu 0:d8f4c441e032 745 public:
lixianyu 0:d8f4c441e032 746 U8GLIB_ST7920_192X32(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 747 : U8GLIB(&u8g_dev_st7920_192x32_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 748 { }
lixianyu 0:d8f4c441e032 749 U8GLIB_ST7920_192X32(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 750 : U8GLIB(&u8g_dev_st7920_192x32_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 751 { }
lixianyu 0:d8f4c441e032 752 U8GLIB_ST7920_192X32(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 753 uint8_t en, uint8_t cs1, uint8_t cs2, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 754 : U8GLIB(&u8g_dev_st7920_192x32_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, cs2, di, rw, reset)
lixianyu 0:d8f4c441e032 755 { }
lixianyu 0:d8f4c441e032 756 };
lixianyu 0:d8f4c441e032 757
lixianyu 0:d8f4c441e032 758 class U8GLIB_ST7920_192X32_1X : public U8GLIB
lixianyu 0:d8f4c441e032 759 {
lixianyu 0:d8f4c441e032 760 public:
lixianyu 0:d8f4c441e032 761 U8GLIB_ST7920_192X32_1X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 762 : U8GLIB(&u8g_dev_st7920_192x32_sw_spi, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 763 { }
lixianyu 0:d8f4c441e032 764 U8GLIB_ST7920_192X32_1X(uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 765 : U8GLIB(&u8g_dev_st7920_192x32_hw_spi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 766 { }
lixianyu 0:d8f4c441e032 767 U8GLIB_ST7920_192X32_1X(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 768 uint8_t en, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 769 : U8GLIB(&u8g_dev_st7920_192x32_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, U8G_PIN_NONE, U8G_PIN_NONE, di, rw, reset) // cs1 = cs2 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 770 { }
lixianyu 0:d8f4c441e032 771 };
lixianyu 0:d8f4c441e032 772
lixianyu 0:d8f4c441e032 773 class U8GLIB_ST7920_192X32_4X : public U8GLIB
lixianyu 0:d8f4c441e032 774 {
lixianyu 0:d8f4c441e032 775 public:
lixianyu 0:d8f4c441e032 776 U8GLIB_ST7920_192X32_4X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 777 : U8GLIB(&u8g_dev_st7920_192x32_4x_sw_spi, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 778 { }
lixianyu 0:d8f4c441e032 779 U8GLIB_ST7920_192X32_4X(uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 780 : U8GLIB(&u8g_dev_st7920_192x32_4x_hw_spi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 781 { }
lixianyu 0:d8f4c441e032 782 U8GLIB_ST7920_192X32_4X(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 783 uint8_t en, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 784 : U8GLIB(&u8g_dev_st7920_192x32_4x_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, U8G_PIN_NONE, U8G_PIN_NONE, di, rw, reset) // cs1 = cs2 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 785 { }
lixianyu 0:d8f4c441e032 786 };
lixianyu 0:d8f4c441e032 787
lixianyu 0:d8f4c441e032 788
lixianyu 0:d8f4c441e032 789 class U8GLIB_ST7920_202X32 : public U8GLIB
lixianyu 0:d8f4c441e032 790 {
lixianyu 0:d8f4c441e032 791 public:
lixianyu 0:d8f4c441e032 792 U8GLIB_ST7920_202X32(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 793 : U8GLIB(&u8g_dev_st7920_202x32_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 794 { }
lixianyu 0:d8f4c441e032 795 U8GLIB_ST7920_202X32(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 796 : U8GLIB(&u8g_dev_st7920_202x32_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 797 { }
lixianyu 0:d8f4c441e032 798 U8GLIB_ST7920_202X32(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 799 uint8_t en, uint8_t cs1, uint8_t cs2, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 800 : U8GLIB(&u8g_dev_st7920_202x32_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, cs2, di, rw, reset)
lixianyu 0:d8f4c441e032 801 { }
lixianyu 0:d8f4c441e032 802 };
lixianyu 0:d8f4c441e032 803
lixianyu 0:d8f4c441e032 804 class U8GLIB_ST7920_202X32_1X : public U8GLIB
lixianyu 0:d8f4c441e032 805 {
lixianyu 0:d8f4c441e032 806 public:
lixianyu 0:d8f4c441e032 807 U8GLIB_ST7920_202X32_1X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 808 : U8GLIB(&u8g_dev_st7920_202x32_sw_spi, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 809 { }
lixianyu 0:d8f4c441e032 810 U8GLIB_ST7920_202X32_1X(uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 811 : U8GLIB(&u8g_dev_st7920_202x32_hw_spi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 812 { }
lixianyu 0:d8f4c441e032 813 U8GLIB_ST7920_202X32_1X(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 814 uint8_t en, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 815 : U8GLIB(&u8g_dev_st7920_202x32_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, U8G_PIN_NONE, U8G_PIN_NONE, di, rw, reset) // cs1 = cs2 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 816 { }
lixianyu 0:d8f4c441e032 817 };
lixianyu 0:d8f4c441e032 818
lixianyu 0:d8f4c441e032 819 class U8GLIB_ST7920_202X32_4X : public U8GLIB
lixianyu 0:d8f4c441e032 820 {
lixianyu 0:d8f4c441e032 821 public:
lixianyu 0:d8f4c441e032 822 U8GLIB_ST7920_202X32_4X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 823 : U8GLIB(&u8g_dev_st7920_202x32_4x_sw_spi, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 824 { }
lixianyu 0:d8f4c441e032 825 U8GLIB_ST7920_202X32_4X(uint8_t cs, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 826 : U8GLIB(&u8g_dev_st7920_202x32_4x_hw_spi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 827 { }
lixianyu 0:d8f4c441e032 828 U8GLIB_ST7920_202X32_4X(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 829 uint8_t en, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 830 : U8GLIB(&u8g_dev_st7920_202x32_4x_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, U8G_PIN_NONE, U8G_PIN_NONE, di, rw, reset) // cs1 = cs2 = U8G_PIN_NONE
lixianyu 0:d8f4c441e032 831 { }
lixianyu 0:d8f4c441e032 832 };
lixianyu 0:d8f4c441e032 833
lixianyu 0:d8f4c441e032 834
lixianyu 0:d8f4c441e032 835 class U8GLIB_LC7981_160X80 : public U8GLIB
lixianyu 0:d8f4c441e032 836 {
lixianyu 0:d8f4c441e032 837 public:
lixianyu 0:d8f4c441e032 838 U8GLIB_LC7981_160X80(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 839 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 840 : U8GLIB(&u8g_dev_lc7981_160x80_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 841 { }
lixianyu 0:d8f4c441e032 842 };
lixianyu 0:d8f4c441e032 843
lixianyu 0:d8f4c441e032 844 class U8GLIB_LC7981_240X64 : public U8GLIB
lixianyu 0:d8f4c441e032 845 {
lixianyu 0:d8f4c441e032 846 public:
lixianyu 0:d8f4c441e032 847 U8GLIB_LC7981_240X64(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 848 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 849 : U8GLIB(&u8g_dev_lc7981_240x64_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 850 { }
lixianyu 0:d8f4c441e032 851 };
lixianyu 0:d8f4c441e032 852
lixianyu 0:d8f4c441e032 853 class U8GLIB_LC7981_240X128 : public U8GLIB
lixianyu 0:d8f4c441e032 854 {
lixianyu 0:d8f4c441e032 855 public:
lixianyu 0:d8f4c441e032 856 U8GLIB_LC7981_240X128(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 857 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 858 : U8GLIB(&u8g_dev_lc7981_240x128_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 859 { }
lixianyu 0:d8f4c441e032 860 };
lixianyu 0:d8f4c441e032 861
lixianyu 0:d8f4c441e032 862 // 16 bit mode required: Remove comment from "#define U8G_16BIT 1" in utility/u8g.h
lixianyu 0:d8f4c441e032 863 class U8GLIB_LC7981_320X64 : public U8GLIB
lixianyu 0:d8f4c441e032 864 {
lixianyu 0:d8f4c441e032 865 public:
lixianyu 0:d8f4c441e032 866 U8GLIB_LC7981_320X64(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 867 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 868 : U8GLIB(&u8g_dev_lc7981_320x64_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 869 { }
lixianyu 0:d8f4c441e032 870 };
lixianyu 0:d8f4c441e032 871
lixianyu 0:d8f4c441e032 872
lixianyu 0:d8f4c441e032 873
lixianyu 0:d8f4c441e032 874 class U8GLIB_DOGXL160_BW : public U8GLIB
lixianyu 0:d8f4c441e032 875 {
lixianyu 0:d8f4c441e032 876 public:
lixianyu 0:d8f4c441e032 877 U8GLIB_DOGXL160_BW(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 878 : U8GLIB(&u8g_dev_uc1610_dogxl160_bw_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 879 { }
lixianyu 0:d8f4c441e032 880 U8GLIB_DOGXL160_BW(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 881 : U8GLIB(&u8g_dev_uc1610_dogxl160_bw_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 882 { }
lixianyu 0:d8f4c441e032 883 };
lixianyu 0:d8f4c441e032 884
lixianyu 0:d8f4c441e032 885 class U8GLIB_DOGXL160_GR : public U8GLIB
lixianyu 0:d8f4c441e032 886 {
lixianyu 0:d8f4c441e032 887 public:
lixianyu 0:d8f4c441e032 888 U8GLIB_DOGXL160_GR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 889 : U8GLIB(&u8g_dev_uc1610_dogxl160_gr_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 890 { }
lixianyu 0:d8f4c441e032 891 U8GLIB_DOGXL160_GR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 892 : U8GLIB(&u8g_dev_uc1610_dogxl160_gr_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 893 { }
lixianyu 0:d8f4c441e032 894 };
lixianyu 0:d8f4c441e032 895
lixianyu 0:d8f4c441e032 896 class U8GLIB_DOGXL160_2X_BW : public U8GLIB
lixianyu 0:d8f4c441e032 897 {
lixianyu 0:d8f4c441e032 898 public:
lixianyu 0:d8f4c441e032 899 U8GLIB_DOGXL160_2X_BW(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 900 : U8GLIB(&u8g_dev_uc1610_dogxl160_2x_bw_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 901 { }
lixianyu 0:d8f4c441e032 902 U8GLIB_DOGXL160_2X_BW(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 903 : U8GLIB(&u8g_dev_uc1610_dogxl160_2x_bw_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 904 { }
lixianyu 0:d8f4c441e032 905 };
lixianyu 0:d8f4c441e032 906
lixianyu 0:d8f4c441e032 907 class U8GLIB_DOGXL160_2X_GR : public U8GLIB
lixianyu 0:d8f4c441e032 908 {
lixianyu 0:d8f4c441e032 909 public:
lixianyu 0:d8f4c441e032 910 U8GLIB_DOGXL160_2X_GR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 911 : U8GLIB(&u8g_dev_uc1610_dogxl160_2x_gr_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 912 { }
lixianyu 0:d8f4c441e032 913 U8GLIB_DOGXL160_2X_GR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 914 : U8GLIB(&u8g_dev_uc1610_dogxl160_2x_gr_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 915 { }
lixianyu 0:d8f4c441e032 916 };
lixianyu 0:d8f4c441e032 917
lixianyu 0:d8f4c441e032 918
lixianyu 0:d8f4c441e032 919 class U8GLIB_NHD27OLED_BW : public U8GLIB
lixianyu 0:d8f4c441e032 920 {
lixianyu 0:d8f4c441e032 921 public:
lixianyu 0:d8f4c441e032 922 U8GLIB_NHD27OLED_BW(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 923 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_bw_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 924 { }
lixianyu 0:d8f4c441e032 925 U8GLIB_NHD27OLED_BW(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 926 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_bw_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 927 { }
lixianyu 0:d8f4c441e032 928 U8GLIB_NHD27OLED_BW(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 929 uint8_t cs, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 930 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_bw_parallel, d0, d1, d2, d3, d4, d5, d6, d7, U8G_PIN_NONE, cs, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 931 { }
lixianyu 0:d8f4c441e032 932 };
lixianyu 0:d8f4c441e032 933
lixianyu 0:d8f4c441e032 934 class U8GLIB_NHD27OLED_2X_BW : public U8GLIB
lixianyu 0:d8f4c441e032 935 {
lixianyu 0:d8f4c441e032 936 public:
lixianyu 0:d8f4c441e032 937 U8GLIB_NHD27OLED_2X_BW(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 938 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_2x_bw_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 939 { }
lixianyu 0:d8f4c441e032 940 U8GLIB_NHD27OLED_2X_BW(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 941 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_2x_bw_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 942 { }
lixianyu 0:d8f4c441e032 943 U8GLIB_NHD27OLED_2X_BW(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 944 uint8_t cs, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 945 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_2x_bw_parallel, d0, d1, d2, d3, d4, d5, d6, d7, U8G_PIN_NONE, cs, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 946 { }
lixianyu 0:d8f4c441e032 947 };
lixianyu 0:d8f4c441e032 948
lixianyu 0:d8f4c441e032 949 class U8GLIB_NHD31OLED_BW : public U8GLIB
lixianyu 0:d8f4c441e032 950 {
lixianyu 0:d8f4c441e032 951 public:
lixianyu 0:d8f4c441e032 952 U8GLIB_NHD31OLED_BW(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 953 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_bw_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 954 { }
lixianyu 0:d8f4c441e032 955 U8GLIB_NHD31OLED_BW(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 956 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_bw_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 957 { }
lixianyu 0:d8f4c441e032 958 U8GLIB_NHD31OLED_BW(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 959 uint8_t cs, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 960 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_bw_parallel, d0, d1, d2, d3, d4, d5, d6, d7, U8G_PIN_NONE, cs, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 961 { }
lixianyu 0:d8f4c441e032 962 };
lixianyu 0:d8f4c441e032 963
lixianyu 0:d8f4c441e032 964 class U8GLIB_NHD31OLED_2X_BW : public U8GLIB
lixianyu 0:d8f4c441e032 965 {
lixianyu 0:d8f4c441e032 966 public:
lixianyu 0:d8f4c441e032 967 U8GLIB_NHD31OLED_2X_BW(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 968 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_2x_bw_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 969 { }
lixianyu 0:d8f4c441e032 970 U8GLIB_NHD31OLED_2X_BW(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 971 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_2x_bw_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 972 { }
lixianyu 0:d8f4c441e032 973 };
lixianyu 0:d8f4c441e032 974
lixianyu 0:d8f4c441e032 975 class U8GLIB_NHD31OLED_GR : public U8GLIB
lixianyu 0:d8f4c441e032 976 {
lixianyu 0:d8f4c441e032 977 public:
lixianyu 0:d8f4c441e032 978 U8GLIB_NHD31OLED_GR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 979 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_gr_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 980 { }
lixianyu 0:d8f4c441e032 981 U8GLIB_NHD31OLED_GR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 982 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_gr_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 983 { }
lixianyu 0:d8f4c441e032 984 U8GLIB_NHD31OLED_GR(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 985 uint8_t cs, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 986 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_gr_parallel, d0, d1, d2, d3, d4, d5, d6, d7, U8G_PIN_NONE, cs, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 987 { }
lixianyu 0:d8f4c441e032 988 };
lixianyu 0:d8f4c441e032 989
lixianyu 0:d8f4c441e032 990 class U8GLIB_NHD31OLED_2X_GR : public U8GLIB
lixianyu 0:d8f4c441e032 991 {
lixianyu 0:d8f4c441e032 992 public:
lixianyu 0:d8f4c441e032 993 U8GLIB_NHD31OLED_2X_GR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 994 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_2x_gr_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 995 { }
lixianyu 0:d8f4c441e032 996 U8GLIB_NHD31OLED_2X_GR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 997 : U8GLIB(&u8g_dev_ssd1322_nhd31oled_2x_gr_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 998 { }
lixianyu 0:d8f4c441e032 999 };
lixianyu 0:d8f4c441e032 1000
lixianyu 0:d8f4c441e032 1001
lixianyu 0:d8f4c441e032 1002 class U8GLIB_SSD1306_128X64 : public U8GLIB
lixianyu 0:d8f4c441e032 1003 {
lixianyu 0:d8f4c441e032 1004 public:
lixianyu 0:d8f4c441e032 1005 U8GLIB_SSD1306_128X64(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1006 : U8GLIB(&u8g_dev_ssd1306_128x64_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1007 { }
lixianyu 0:d8f4c441e032 1008 U8GLIB_SSD1306_128X64(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1009 : U8GLIB(&u8g_dev_ssd1306_128x64_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1010 { }
lixianyu 0:d8f4c441e032 1011 U8GLIB_SSD1306_128X64(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1012 : U8GLIB(&u8g_dev_ssd1306_128x64_i2c, options)
lixianyu 0:d8f4c441e032 1013 { }
lixianyu 0:d8f4c441e032 1014 };
lixianyu 0:d8f4c441e032 1015
lixianyu 0:d8f4c441e032 1016 class U8GLIB_SSD1306_MICRODUINO_128X64 : public U8GLIB
lixianyu 0:d8f4c441e032 1017 {
lixianyu 0:d8f4c441e032 1018 public:
lixianyu 0:d8f4c441e032 1019 U8GLIB_SSD1306_MICRODUINO_128X64(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 1:0e75de2a5d21 1020 : U8GLIB(&u8g_dev_ssd1306_microduino_128x64_sw_spi, (u8g_com_fnptr)u8g_com_lpc824_ssd_i2c_fn)
lixianyu 0:d8f4c441e032 1021 { }
lixianyu 0:d8f4c441e032 1022 U8GLIB_SSD1306_MICRODUINO_128X64(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 1:0e75de2a5d21 1023 : U8GLIB(&u8g_dev_ssd1306_microduino_128x64_hw_spi, (u8g_com_fnptr)u8g_com_lpc824_ssd_i2c_fn)
lixianyu 0:d8f4c441e032 1024 { }
lixianyu 0:d8f4c441e032 1025 U8GLIB_SSD1306_MICRODUINO_128X64(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 1:0e75de2a5d21 1026 : U8GLIB(&u8g_dev_ssd1306_microduino_128x64_i2c, u8g_com_lpc824_ssd_i2c_fn)
lixianyu 0:d8f4c441e032 1027 { }
lixianyu 1:0e75de2a5d21 1028 #if 0
lixianyu 1:0e75de2a5d21 1029 U8GLIB_SSD1306_MICRODUINO_128X64(void)
lixianyu 1:0e75de2a5d21 1030 : U8GLIB()
lixianyu 1:0e75de2a5d21 1031 { }
lixianyu 1:0e75de2a5d21 1032 #endif
lixianyu 0:d8f4c441e032 1033 };
lixianyu 0:d8f4c441e032 1034
lixianyu 0:d8f4c441e032 1035 class U8GLIB_SSD1306_ADAFRUIT_128X64 : public U8GLIB
lixianyu 0:d8f4c441e032 1036 {
lixianyu 0:d8f4c441e032 1037 public:
lixianyu 0:d8f4c441e032 1038 U8GLIB_SSD1306_ADAFRUIT_128X64(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1039 : U8GLIB(&u8g_dev_ssd1306_adafruit_128x64_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1040 { }
lixianyu 0:d8f4c441e032 1041 U8GLIB_SSD1306_ADAFRUIT_128X64(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1042 : U8GLIB(&u8g_dev_ssd1306_adafruit_128x64_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1043 { }
lixianyu 0:d8f4c441e032 1044 U8GLIB_SSD1306_ADAFRUIT_128X64(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1045 : U8GLIB(&u8g_dev_ssd1306_adafruit_128x64_i2c, options)
lixianyu 0:d8f4c441e032 1046 { }
lixianyu 0:d8f4c441e032 1047 };
lixianyu 0:d8f4c441e032 1048
lixianyu 0:d8f4c441e032 1049
lixianyu 0:d8f4c441e032 1050 class U8GLIB_SSD1306_128X64_2X : public U8GLIB
lixianyu 0:d8f4c441e032 1051 {
lixianyu 0:d8f4c441e032 1052 public:
lixianyu 0:d8f4c441e032 1053 U8GLIB_SSD1306_128X64_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1054 : U8GLIB(&u8g_dev_ssd1306_128x64_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1055 { }
lixianyu 0:d8f4c441e032 1056 U8GLIB_SSD1306_128X64_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1057 : U8GLIB(&u8g_dev_ssd1306_128x64_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1058 { }
lixianyu 0:d8f4c441e032 1059 U8GLIB_SSD1306_128X64_2X(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1060 : U8GLIB(&u8g_dev_ssd1306_128x64_2x_i2c, options)
lixianyu 0:d8f4c441e032 1061 { }
lixianyu 0:d8f4c441e032 1062 };
lixianyu 0:d8f4c441e032 1063
lixianyu 0:d8f4c441e032 1064 class U8GLIB_SH1106_128X64 : public U8GLIB
lixianyu 0:d8f4c441e032 1065 {
lixianyu 0:d8f4c441e032 1066 public:
lixianyu 0:d8f4c441e032 1067 U8GLIB_SH1106_128X64(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1068 : U8GLIB(&u8g_dev_sh1106_128x64_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1069 { }
lixianyu 0:d8f4c441e032 1070 U8GLIB_SH1106_128X64(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1071 : U8GLIB(&u8g_dev_sh1106_128x64_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1072 { }
lixianyu 0:d8f4c441e032 1073 U8GLIB_SH1106_128X64(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1074 : U8GLIB(&u8g_dev_sh1106_128x64_i2c, options)
lixianyu 0:d8f4c441e032 1075 { }
lixianyu 0:d8f4c441e032 1076 };
lixianyu 0:d8f4c441e032 1077
lixianyu 0:d8f4c441e032 1078 class U8GLIB_SH1106_128X64_2X : public U8GLIB
lixianyu 0:d8f4c441e032 1079 {
lixianyu 0:d8f4c441e032 1080 public:
lixianyu 0:d8f4c441e032 1081 U8GLIB_SH1106_128X64_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1082 : U8GLIB(&u8g_dev_sh1106_128x64_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1083 { }
lixianyu 0:d8f4c441e032 1084 U8GLIB_SH1106_128X64_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1085 : U8GLIB(&u8g_dev_sh1106_128x64_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1086 { }
lixianyu 0:d8f4c441e032 1087 U8GLIB_SH1106_128X64_2X(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1088 : U8GLIB(&u8g_dev_sh1106_128x64_2x_i2c, options)
lixianyu 0:d8f4c441e032 1089 { }
lixianyu 0:d8f4c441e032 1090 };
lixianyu 0:d8f4c441e032 1091
lixianyu 0:d8f4c441e032 1092 class U8GLIB_SSD1309_128X64 : public U8GLIB
lixianyu 0:d8f4c441e032 1093 {
lixianyu 0:d8f4c441e032 1094 public:
lixianyu 0:d8f4c441e032 1095 U8GLIB_SSD1309_128X64(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1096 : U8GLIB(&u8g_dev_ssd1309_128x64_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1097 { }
lixianyu 0:d8f4c441e032 1098 U8GLIB_SSD1309_128X64(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1099 : U8GLIB(&u8g_dev_ssd1309_128x64_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1100 { }
lixianyu 0:d8f4c441e032 1101 U8GLIB_SSD1309_128X64(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1102 : U8GLIB(&u8g_dev_ssd1309_128x64_i2c, options)
lixianyu 0:d8f4c441e032 1103 { }
lixianyu 0:d8f4c441e032 1104 };
lixianyu 0:d8f4c441e032 1105
lixianyu 0:d8f4c441e032 1106 class U8GLIB_SSD1306_128X32 : public U8GLIB
lixianyu 0:d8f4c441e032 1107 {
lixianyu 0:d8f4c441e032 1108 public:
lixianyu 0:d8f4c441e032 1109 U8GLIB_SSD1306_128X32(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1110 : U8GLIB(&u8g_dev_ssd1306_128x32_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1111 { }
lixianyu 0:d8f4c441e032 1112 U8GLIB_SSD1306_128X32(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1113 : U8GLIB(&u8g_dev_ssd1306_128x32_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1114 { }
lixianyu 0:d8f4c441e032 1115 U8GLIB_SSD1306_128X32(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1116 : U8GLIB(&u8g_dev_ssd1306_128x32_i2c, options)
lixianyu 0:d8f4c441e032 1117 { }
lixianyu 0:d8f4c441e032 1118 };
lixianyu 0:d8f4c441e032 1119
lixianyu 0:d8f4c441e032 1120 class U8GLIB_SSD1306_128X32_2X : public U8GLIB
lixianyu 0:d8f4c441e032 1121 {
lixianyu 0:d8f4c441e032 1122 public:
lixianyu 0:d8f4c441e032 1123 U8GLIB_SSD1306_128X32_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1124 : U8GLIB(&u8g_dev_ssd1306_128x32_2x_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1125 { }
lixianyu 0:d8f4c441e032 1126 U8GLIB_SSD1306_128X32_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1127 : U8GLIB(&u8g_dev_ssd1306_128x32_2x_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1128 { }
lixianyu 0:d8f4c441e032 1129 U8GLIB_SSD1306_128X32_2X(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1130 : U8GLIB(&u8g_dev_ssd1306_128x32_2x_i2c, options)
lixianyu 0:d8f4c441e032 1131 { }
lixianyu 0:d8f4c441e032 1132 };
lixianyu 0:d8f4c441e032 1133
lixianyu 0:d8f4c441e032 1134
lixianyu 0:d8f4c441e032 1135 class U8GLIB_NHD27OLED_GR : public U8GLIB
lixianyu 0:d8f4c441e032 1136 {
lixianyu 0:d8f4c441e032 1137 public:
lixianyu 0:d8f4c441e032 1138 U8GLIB_NHD27OLED_GR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1139 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_gr_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1140 { }
lixianyu 0:d8f4c441e032 1141 U8GLIB_NHD27OLED_GR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1142 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_gr_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1143 { }
lixianyu 0:d8f4c441e032 1144 };
lixianyu 0:d8f4c441e032 1145
lixianyu 0:d8f4c441e032 1146 class U8GLIB_NHD27OLED_2X_GR : public U8GLIB
lixianyu 0:d8f4c441e032 1147 {
lixianyu 0:d8f4c441e032 1148 public:
lixianyu 0:d8f4c441e032 1149 U8GLIB_NHD27OLED_2X_GR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1150 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_2x_gr_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1151 { }
lixianyu 0:d8f4c441e032 1152 U8GLIB_NHD27OLED_2X_GR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1153 : U8GLIB(&u8g_dev_ssd1325_nhd27oled_2x_gr_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1154 { }
lixianyu 0:d8f4c441e032 1155 };
lixianyu 0:d8f4c441e032 1156
lixianyu 0:d8f4c441e032 1157 class U8GLIB_SSD1327_96X96_GR : public U8GLIB
lixianyu 0:d8f4c441e032 1158 {
lixianyu 0:d8f4c441e032 1159 public:
lixianyu 0:d8f4c441e032 1160 U8GLIB_SSD1327_96X96_GR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1161 : U8GLIB(&u8g_dev_ssd1327_96x96_gr_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1162 { }
lixianyu 0:d8f4c441e032 1163 U8GLIB_SSD1327_96X96_GR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1164 : U8GLIB(&u8g_dev_ssd1327_96x96_gr_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1165 { }
lixianyu 0:d8f4c441e032 1166 U8GLIB_SSD1327_96X96_GR(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1167 : U8GLIB(&u8g_dev_ssd1327_96x96_gr_i2c, options)
lixianyu 0:d8f4c441e032 1168 { }
lixianyu 0:d8f4c441e032 1169 };
lixianyu 0:d8f4c441e032 1170
lixianyu 0:d8f4c441e032 1171 class U8GLIB_SSD1327_96X96_2X_GR : public U8GLIB
lixianyu 0:d8f4c441e032 1172 {
lixianyu 0:d8f4c441e032 1173 public:
lixianyu 0:d8f4c441e032 1174 U8GLIB_SSD1327_96X96_2X_GR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1175 : U8GLIB(&u8g_dev_ssd1327_96x96_2x_gr_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1176 { }
lixianyu 0:d8f4c441e032 1177 U8GLIB_SSD1327_96X96_2X_GR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1178 : U8GLIB(&u8g_dev_ssd1327_96x96_2x_gr_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1179 { }
lixianyu 0:d8f4c441e032 1180 U8GLIB_SSD1327_96X96_2X_GR(uint8_t options = U8G_I2C_OPT_NONE)
lixianyu 0:d8f4c441e032 1181 : U8GLIB(&u8g_dev_ssd1327_96x96_2x_gr_i2c, options)
lixianyu 0:d8f4c441e032 1182 { }
lixianyu 0:d8f4c441e032 1183 };
lixianyu 0:d8f4c441e032 1184
lixianyu 0:d8f4c441e032 1185
lixianyu 0:d8f4c441e032 1186 class U8GLIB_LD7032_60x32 : public U8GLIB
lixianyu 0:d8f4c441e032 1187 {
lixianyu 0:d8f4c441e032 1188 public:
lixianyu 0:d8f4c441e032 1189 U8GLIB_LD7032_60x32(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1190 : U8GLIB(&u8g_dev_ld7032_60x32_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1191 { }
lixianyu 0:d8f4c441e032 1192 U8GLIB_LD7032_60x32(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1193 : U8GLIB(&u8g_dev_ld7032_60x32_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1194 { }
lixianyu 0:d8f4c441e032 1195 U8GLIB_LD7032_60x32(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 1196 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1197 : U8GLIB(&u8g_dev_ld7032_60x32_parallel, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 1198 { }
lixianyu 0:d8f4c441e032 1199 };
lixianyu 0:d8f4c441e032 1200
lixianyu 0:d8f4c441e032 1201
lixianyu 0:d8f4c441e032 1202
lixianyu 0:d8f4c441e032 1203 class U8GLIB_HT1632_24X16 : public U8GLIB
lixianyu 0:d8f4c441e032 1204 {
lixianyu 0:d8f4c441e032 1205 public:
lixianyu 0:d8f4c441e032 1206 U8GLIB_HT1632_24X16(uint8_t wr, uint8_t data, uint8_t cs)
lixianyu 0:d8f4c441e032 1207 : U8GLIB(&u8g_dev_ht1632_24x16, wr, data, cs, U8G_PIN_NONE, U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1208 { }
lixianyu 0:d8f4c441e032 1209 };
lixianyu 0:d8f4c441e032 1210
lixianyu 0:d8f4c441e032 1211
lixianyu 0:d8f4c441e032 1212
lixianyu 0:d8f4c441e032 1213 class U8GLIB_PCF8812 : public U8GLIB
lixianyu 0:d8f4c441e032 1214 {
lixianyu 0:d8f4c441e032 1215 public:
lixianyu 0:d8f4c441e032 1216 U8GLIB_PCF8812(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1217 : U8GLIB(&u8g_dev_pcf8812_96x65_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1218 { }
lixianyu 0:d8f4c441e032 1219 U8GLIB_PCF8812(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1220 : U8GLIB(&u8g_dev_pcf8812_96x65_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1221 { }
lixianyu 0:d8f4c441e032 1222 };
lixianyu 0:d8f4c441e032 1223
lixianyu 0:d8f4c441e032 1224 class U8GLIB_PCD8544 : public U8GLIB
lixianyu 0:d8f4c441e032 1225 {
lixianyu 0:d8f4c441e032 1226 public:
lixianyu 0:d8f4c441e032 1227 U8GLIB_PCD8544(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1228 : U8GLIB(&u8g_dev_pcd8544_84x48_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1229 { }
lixianyu 0:d8f4c441e032 1230 U8GLIB_PCD8544(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1231 : U8GLIB(&u8g_dev_pcd8544_84x48_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1232 { }
lixianyu 0:d8f4c441e032 1233 };
lixianyu 0:d8f4c441e032 1234
lixianyu 0:d8f4c441e032 1235 class U8GLIB_TLS8204_84X48 : public U8GLIB
lixianyu 0:d8f4c441e032 1236 {
lixianyu 0:d8f4c441e032 1237 public:
lixianyu 0:d8f4c441e032 1238 U8GLIB_TLS8204_84X48(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1239 : U8GLIB(&u8g_dev_tls8204_84x48_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1240 { }
lixianyu 0:d8f4c441e032 1241 };
lixianyu 0:d8f4c441e032 1242
lixianyu 0:d8f4c441e032 1243 class U8GLIB_KS0108_128 : public U8GLIB
lixianyu 0:d8f4c441e032 1244 {
lixianyu 0:d8f4c441e032 1245 public:
lixianyu 0:d8f4c441e032 1246 U8GLIB_KS0108_128(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 1247 uint8_t en, uint8_t cs1, uint8_t cs2, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1248 : U8GLIB(&u8g_dev_ks0108_128x64_fast, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, cs2, di, rw, reset)
lixianyu 0:d8f4c441e032 1249 { }
lixianyu 0:d8f4c441e032 1250 };
lixianyu 0:d8f4c441e032 1251
lixianyu 0:d8f4c441e032 1252 class U8GLIB_SBN1661_122X32 : public U8GLIB
lixianyu 0:d8f4c441e032 1253 {
lixianyu 0:d8f4c441e032 1254 public:
lixianyu 0:d8f4c441e032 1255 U8GLIB_SBN1661_122X32(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 1256 uint8_t cs1, uint8_t cs2, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1257 : U8GLIB(&u8g_dev_sbn1661_122x32, d0, d1, d2, d3, d4, d5, d6, d7, U8G_PIN_NONE, cs1, cs2, di, rw, reset)
lixianyu 0:d8f4c441e032 1258 { }
lixianyu 0:d8f4c441e032 1259 };
lixianyu 0:d8f4c441e032 1260
lixianyu 0:d8f4c441e032 1261 class U8GLIB_T6963_240X128 : public U8GLIB
lixianyu 0:d8f4c441e032 1262 {
lixianyu 0:d8f4c441e032 1263 public:
lixianyu 0:d8f4c441e032 1264 U8GLIB_T6963_240X128(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 1265 uint8_t cs, uint8_t a0, uint8_t wr, uint8_t rd, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1266 : U8GLIB(&u8g_dev_t6963_240x128_8bit, d0, d1, d2, d3, d4, d5, d6, d7, cs, a0, wr, rd, reset)
lixianyu 0:d8f4c441e032 1267 { }
lixianyu 0:d8f4c441e032 1268 };
lixianyu 0:d8f4c441e032 1269
lixianyu 0:d8f4c441e032 1270 class U8GLIB_T6963_128X128 : public U8GLIB
lixianyu 0:d8f4c441e032 1271 {
lixianyu 0:d8f4c441e032 1272 public:
lixianyu 0:d8f4c441e032 1273 U8GLIB_T6963_128X128(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 1274 uint8_t cs, uint8_t a0, uint8_t wr, uint8_t rd, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1275 : U8GLIB(&u8g_dev_t6963_128x128_8bit, d0, d1, d2, d3, d4, d5, d6, d7, cs, a0, wr, rd, reset)
lixianyu 0:d8f4c441e032 1276 { }
lixianyu 0:d8f4c441e032 1277 };
lixianyu 0:d8f4c441e032 1278
lixianyu 0:d8f4c441e032 1279 class U8GLIB_T6963_240X64 : public U8GLIB
lixianyu 0:d8f4c441e032 1280 {
lixianyu 0:d8f4c441e032 1281 public:
lixianyu 0:d8f4c441e032 1282 U8GLIB_T6963_240X64(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 1283 uint8_t cs, uint8_t a0, uint8_t wr, uint8_t rd, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1284 : U8GLIB(&u8g_dev_t6963_240x64_8bit, d0, d1, d2, d3, d4, d5, d6, d7, cs, a0, wr, rd, reset)
lixianyu 0:d8f4c441e032 1285 { }
lixianyu 0:d8f4c441e032 1286 };
lixianyu 0:d8f4c441e032 1287
lixianyu 0:d8f4c441e032 1288 class U8GLIB_T6963_128X64 : public U8GLIB
lixianyu 0:d8f4c441e032 1289 {
lixianyu 0:d8f4c441e032 1290 public:
lixianyu 0:d8f4c441e032 1291 U8GLIB_T6963_128X64(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 1292 uint8_t cs, uint8_t a0, uint8_t wr, uint8_t rd, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1293 : U8GLIB(&u8g_dev_t6963_128x64_8bit, d0, d1, d2, d3, d4, d5, d6, d7, cs, a0, wr, rd, reset)
lixianyu 0:d8f4c441e032 1294 { }
lixianyu 0:d8f4c441e032 1295 };
lixianyu 0:d8f4c441e032 1296
lixianyu 0:d8f4c441e032 1297
lixianyu 0:d8f4c441e032 1298 class U8GLIB_ST7687_C144MVGD: public U8GLIB
lixianyu 0:d8f4c441e032 1299 {
lixianyu 0:d8f4c441e032 1300 public:
lixianyu 0:d8f4c441e032 1301 U8GLIB_ST7687_C144MVGD(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1302 : U8GLIB(&u8g_dev_st7687_c144mvgd_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1303 { }
lixianyu 0:d8f4c441e032 1304 U8GLIB_ST7687_C144MVGD(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 1305 uint8_t en, uint8_t cs, uint8_t a0, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1306 : U8GLIB(&u8g_dev_ks0108_128x64_fast, d0, d1, d2, d3, d4, d5, d6, d7, en, cs, U8G_PIN_NONE, a0, rw, reset)
lixianyu 0:d8f4c441e032 1307 { }
lixianyu 0:d8f4c441e032 1308 };
lixianyu 0:d8f4c441e032 1309
lixianyu 0:d8f4c441e032 1310 class U8GLIB_ILI9325D_320x240 : public U8GLIB
lixianyu 0:d8f4c441e032 1311 {
lixianyu 0:d8f4c441e032 1312 public:
lixianyu 0:d8f4c441e032 1313 /*
lixianyu 0:d8f4c441e032 1314 U8GLIB_ILI9325D_320x240(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7,
lixianyu 0:d8f4c441e032 1315 uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1316 : U8GLIB(&u8g_dev_ili9325d_320x240_8bit, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, U8G_PIN_NONE, di, rw, reset)
lixianyu 0:d8f4c441e032 1317 { }
lixianyu 0:d8f4c441e032 1318 */
lixianyu 0:d8f4c441e032 1319 U8GLIB_ILI9325D_320x240( uint8_t en, uint8_t cs1, uint8_t di, uint8_t rw = U8G_PIN_NONE, uint8_t reset = U8G_PIN_NONE) {
lixianyu 0:d8f4c441e032 1320 init8BitFixedPort(&u8g_dev_ili9325d_320x240_8bit, en, cs1, di, rw, reset);
lixianyu 0:d8f4c441e032 1321 }
lixianyu 0:d8f4c441e032 1322 };
lixianyu 0:d8f4c441e032 1323
lixianyu 0:d8f4c441e032 1324
lixianyu 0:d8f4c441e032 1325
lixianyu 0:d8f4c441e032 1326 class U8GLIB_SSD1351_128X128_332 : public U8GLIB
lixianyu 0:d8f4c441e032 1327 {
lixianyu 0:d8f4c441e032 1328 public:
lixianyu 0:d8f4c441e032 1329 U8GLIB_SSD1351_128X128_332(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1330 : U8GLIB(&u8g_dev_ssd1351_128x128_332_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1331 { }
lixianyu 0:d8f4c441e032 1332 U8GLIB_SSD1351_128X128_332(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1333 : U8GLIB(&u8g_dev_ssd1351_128x128_332_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1334 { }
lixianyu 0:d8f4c441e032 1335 };
lixianyu 0:d8f4c441e032 1336
lixianyu 0:d8f4c441e032 1337 class U8GLIB_SSD1351_128X128_4X_332 : public U8GLIB
lixianyu 0:d8f4c441e032 1338 {
lixianyu 0:d8f4c441e032 1339 public:
lixianyu 0:d8f4c441e032 1340 U8GLIB_SSD1351_128X128_4X_332(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1341 : U8GLIB(&u8g_dev_ssd1351_128x128_4x_332_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1342 { }
lixianyu 0:d8f4c441e032 1343 U8GLIB_SSD1351_128X128_4X_332(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1344 : U8GLIB(&u8g_dev_ssd1351_128x128_4x_332_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1345 { }
lixianyu 0:d8f4c441e032 1346 };
lixianyu 0:d8f4c441e032 1347
lixianyu 0:d8f4c441e032 1348 class U8GLIB_SSD1351_128X128GH_332 : public U8GLIB
lixianyu 0:d8f4c441e032 1349 {
lixianyu 0:d8f4c441e032 1350 public:
lixianyu 0:d8f4c441e032 1351 U8GLIB_SSD1351_128X128GH_332(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1352 : U8GLIB(&u8g_dev_ssd1351_128x128gh_332_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1353 { }
lixianyu 0:d8f4c441e032 1354 U8GLIB_SSD1351_128X128GH_332(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1355 : U8GLIB(&u8g_dev_ssd1351_128x128gh_332_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1356 { }
lixianyu 0:d8f4c441e032 1357 };
lixianyu 0:d8f4c441e032 1358
lixianyu 0:d8f4c441e032 1359 class U8GLIB_SSD1351_128X128GH_4X_332 : public U8GLIB
lixianyu 0:d8f4c441e032 1360 {
lixianyu 0:d8f4c441e032 1361 public:
lixianyu 0:d8f4c441e032 1362 U8GLIB_SSD1351_128X128GH_4X_332(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1363 : U8GLIB(&u8g_dev_ssd1351_128x128gh_4x_332_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1364 { }
lixianyu 0:d8f4c441e032 1365 U8GLIB_SSD1351_128X128GH_4X_332(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1366 : U8GLIB(&u8g_dev_ssd1351_128x128gh_4x_332_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1367 { }
lixianyu 0:d8f4c441e032 1368 };
lixianyu 0:d8f4c441e032 1369
lixianyu 0:d8f4c441e032 1370 class U8GLIB_SSD1351_128X128_IDX : public U8GLIB
lixianyu 0:d8f4c441e032 1371 {
lixianyu 0:d8f4c441e032 1372 public:
lixianyu 0:d8f4c441e032 1373 U8GLIB_SSD1351_128X128_IDX(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1374 : U8GLIB(&u8g_dev_ssd1351_128x128_idx_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1375 { }
lixianyu 0:d8f4c441e032 1376 U8GLIB_SSD1351_128X128_IDX(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1377 : U8GLIB(&u8g_dev_ssd1351_128x128_idx_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1378 { }
lixianyu 0:d8f4c441e032 1379 };
lixianyu 0:d8f4c441e032 1380
lixianyu 0:d8f4c441e032 1381 class U8GLIB_SSD1351_128X128_HICOLOR : public U8GLIB
lixianyu 0:d8f4c441e032 1382 {
lixianyu 0:d8f4c441e032 1383 public:
lixianyu 0:d8f4c441e032 1384 U8GLIB_SSD1351_128X128_HICOLOR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1385 : U8GLIB(&u8g_dev_ssd1351_128x128_hicolor_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1386 { }
lixianyu 0:d8f4c441e032 1387 U8GLIB_SSD1351_128X128_HICOLOR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1388 : U8GLIB(&u8g_dev_ssd1351_128x128_hicolor_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1389 { }
lixianyu 0:d8f4c441e032 1390 };
lixianyu 0:d8f4c441e032 1391
lixianyu 0:d8f4c441e032 1392 class U8GLIB_SSD1351_128X128_4X_HICOLOR : public U8GLIB
lixianyu 0:d8f4c441e032 1393 {
lixianyu 0:d8f4c441e032 1394 public:
lixianyu 0:d8f4c441e032 1395 U8GLIB_SSD1351_128X128_4X_HICOLOR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1396 : U8GLIB(&u8g_dev_ssd1351_128x128_4x_hicolor_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1397 { }
lixianyu 0:d8f4c441e032 1398 U8GLIB_SSD1351_128X128_4X_HICOLOR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1399 : U8GLIB(&u8g_dev_ssd1351_128x128_4x_hicolor_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1400 { }
lixianyu 0:d8f4c441e032 1401 };
lixianyu 0:d8f4c441e032 1402
lixianyu 0:d8f4c441e032 1403 class U8GLIB_SSD1351_128X128GH_HICOLOR : public U8GLIB
lixianyu 0:d8f4c441e032 1404 {
lixianyu 0:d8f4c441e032 1405 public:
lixianyu 0:d8f4c441e032 1406 U8GLIB_SSD1351_128X128GH_HICOLOR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1407 : U8GLIB(&u8g_dev_ssd1351_128x128gh_hicolor_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1408 { }
lixianyu 0:d8f4c441e032 1409 U8GLIB_SSD1351_128X128GH_HICOLOR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1410 : U8GLIB(&u8g_dev_ssd1351_128x128gh_hicolor_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1411 { }
lixianyu 0:d8f4c441e032 1412 };
lixianyu 0:d8f4c441e032 1413
lixianyu 0:d8f4c441e032 1414 class U8GLIB_SSD1351_128X128GH_4X_HICOLOR : public U8GLIB
lixianyu 0:d8f4c441e032 1415 {
lixianyu 0:d8f4c441e032 1416 public:
lixianyu 0:d8f4c441e032 1417 U8GLIB_SSD1351_128X128GH_4X_HICOLOR(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1418 : U8GLIB(&u8g_dev_ssd1351_128x128gh_4x_hicolor_sw_spi, sck, mosi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1419 { }
lixianyu 0:d8f4c441e032 1420 U8GLIB_SSD1351_128X128GH_4X_HICOLOR(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
lixianyu 0:d8f4c441e032 1421 : U8GLIB(&u8g_dev_ssd1351_128x128gh_4x_hicolor_hw_spi, cs, a0, reset)
lixianyu 0:d8f4c441e032 1422 { }
lixianyu 0:d8f4c441e032 1423 };
lixianyu 0:d8f4c441e032 1424
lixianyu 0:d8f4c441e032 1425
lixianyu 0:d8f4c441e032 1426 class U8GLIB_FLIPDISC_2X7 : public U8GLIB
lixianyu 0:d8f4c441e032 1427 {
lixianyu 0:d8f4c441e032 1428 public:
lixianyu 0:d8f4c441e032 1429 U8GLIB_FLIPDISC_2X7(void) : U8GLIB(&u8g_dev_flipdisc_2x7)
lixianyu 0:d8f4c441e032 1430 { }
lixianyu 0:d8f4c441e032 1431 };
lixianyu 0:d8f4c441e032 1432
lixianyu 0:d8f4c441e032 1433 class U8GLIB_VS : public U8GLIB
lixianyu 0:d8f4c441e032 1434 {
lixianyu 0:d8f4c441e032 1435 public:
lixianyu 0:d8f4c441e032 1436 U8GLIB_VS(void) : U8GLIB(&u8g_dev_vs)
lixianyu 0:d8f4c441e032 1437 { }
lixianyu 0:d8f4c441e032 1438 };
lixianyu 0:d8f4c441e032 1439
lixianyu 0:d8f4c441e032 1440
lixianyu 0:d8f4c441e032 1441 #endif /* _CPP_U8GLIB */
lixianyu 0:d8f4c441e032 1442
lixianyu 2:6cd3b0947188 1443 #endif