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