BLYNK TEST

Dependencies:   mbed Blynk

Committer:
lixianyu
Date:
Fri Jun 10 15:20:20 2016 +0000
Revision:
0:d8f4c441e032
Child:
1:0e75de2a5d21
u8glib???????????i2c???

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