2015-12-20 17:10:49 +08:00
|
|
|
/*
|
|
|
|
|
|
|
|
U8x8lib.h
|
|
|
|
|
|
|
|
C++ Arduino wrapper for the u8x8 struct and c functions.
|
2016-01-01 16:27:17 +08:00
|
|
|
|
2016-01-04 00:10:50 +08:00
|
|
|
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
|
2016-01-01 16:27:17 +08:00
|
|
|
|
|
|
|
Copyright (c) 2016, olikraus@gmail.com
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without modification,
|
|
|
|
are permitted provided that the following conditions are met:
|
|
|
|
|
|
|
|
* Redistributions of source code must retain the above copyright notice, this list
|
|
|
|
of conditions and the following disclaimer.
|
|
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above copyright notice, this
|
|
|
|
list of conditions and the following disclaimer in the documentation and/or other
|
|
|
|
materials provided with the distribution.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
|
|
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
|
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
|
|
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
|
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
|
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
2015-12-20 17:10:49 +08:00
|
|
|
|
|
|
|
*/
|
2015-12-07 05:48:57 +08:00
|
|
|
|
|
|
|
#ifndef _U8X8LIB_HH
|
|
|
|
#define _U8X8LIB_HH
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <Print.h>
|
|
|
|
|
|
|
|
#include "u8x8.h"
|
|
|
|
|
2016-01-02 07:25:06 +08:00
|
|
|
|
|
|
|
/* Assumption: All Arduino Boards have "SPI.h" */
|
|
|
|
#define U8X8_HAVE_HW_SPI
|
|
|
|
|
2016-05-15 15:56:06 +08:00
|
|
|
/* Assumption: All Arduino Boards have "Wire.h" */
|
|
|
|
#define U8X8_HAVE_HW_I2C
|
2016-05-15 06:05:41 +08:00
|
|
|
|
2016-01-02 07:25:06 +08:00
|
|
|
/* Undefine U8X8_HAVE_HW_SPI for those Boards without SPI.h */
|
|
|
|
|
|
|
|
#ifdef ARDUINO_AVR_DIGISPARK
|
|
|
|
#ifdef U8X8_HAVE_HW_SPI
|
|
|
|
#undef U8X8_HAVE_HW_SPI
|
2016-05-15 15:56:06 +08:00
|
|
|
#undef U8X8_HAVE_HW_I2C
|
2016-01-02 07:25:06 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __AVR_ATtiny85__
|
|
|
|
#ifdef U8X8_HAVE_HW_SPI
|
|
|
|
#undef U8X8_HAVE_HW_SPI
|
2016-05-15 15:56:06 +08:00
|
|
|
#undef U8X8_HAVE_HW_I2C
|
2016-01-02 07:25:06 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2016-11-13 00:30:14 +08:00
|
|
|
/* define U8X8_HAVE_2ND_HW_I2C if the board has a second wire interface*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef WIRE_INTERFACES_COUNT
|
|
|
|
#if WIRE_INTERFACES_COUNT > 1
|
|
|
|
#define U8X8_HAVE_2ND_HW_I2C
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2016-01-02 07:25:06 +08:00
|
|
|
|
|
|
|
|
2015-12-13 00:26:10 +08:00
|
|
|
extern "C" uint8_t u8x8_gpio_and_delay_arduino(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
2016-11-26 15:40:58 +08:00
|
|
|
extern "C" uint8_t u8x8_byte_arduino_8bit_8080mode(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
2016-05-16 15:16:54 +08:00
|
|
|
extern "C" uint8_t u8x8_byte_arduino_4wire_sw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
2015-12-13 00:26:10 +08:00
|
|
|
extern "C" uint8_t u8x8_byte_arduino_hw_spi(u8x8_t *u8g2, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
2016-05-15 06:05:41 +08:00
|
|
|
extern "C" uint8_t u8x8_byte_arduino_hw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
2016-11-13 00:30:14 +08:00
|
|
|
extern "C" uint8_t u8x8_byte_arduino_2nd_hw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
2016-12-14 12:35:03 +08:00
|
|
|
extern "C" uint8_t u8x8_byte_arduino_ks0108(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
|
2015-12-13 00:26:10 +08:00
|
|
|
|
2015-12-23 16:04:24 +08:00
|
|
|
void u8x8_SetPin_4Wire_SW_SPI(u8x8_t *u8x8, uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset);
|
|
|
|
void u8x8_SetPin_3Wire_SW_SPI(u8x8_t *u8x8, uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset);
|
|
|
|
void u8x8_SetPin_4Wire_HW_SPI(u8x8_t *u8x8, uint8_t cs, uint8_t dc, uint8_t reset);
|
2016-06-24 06:58:17 +08:00
|
|
|
void u8x8_SetPin_ST7920_HW_SPI(u8x8_t *u8x8, uint8_t cs, uint8_t reset);
|
2016-06-23 05:58:14 +08:00
|
|
|
void u8x8_SetPin_SW_I2C(u8x8_t *u8x8, uint8_t clock, uint8_t data, uint8_t reset);
|
|
|
|
void u8x8_SetPin_HW_I2C(u8x8_t *u8x8, uint8_t reset);
|
2015-12-23 16:04:24 +08:00
|
|
|
void u8x8_SetPin_8Bit_6800(u8x8_t *u8x8, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset);
|
|
|
|
void u8x8_SetPin_8Bit_8080(u8x8_t *u8x8, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t wr, uint8_t cs, uint8_t dc, uint8_t reset);
|
2016-12-05 05:48:27 +08:00
|
|
|
void u8x8_SetPin_KS0108(u8x8_t *u8x8, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t dc, uint8_t cs0, uint8_t cs1, uint8_t cs2, uint8_t reset);
|
2015-12-23 16:04:24 +08:00
|
|
|
|
2016-12-05 05:48:27 +08:00
|
|
|
//void u8x8_Setup_4Wire_SW_SPI(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset);
|
|
|
|
//void u8x8_Setup_3Wire_SW_SPI(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset);
|
|
|
|
//void u8x8_Setup_4Wire_HW_SPI(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t cs, uint8_t dc, uint8_t reset);
|
|
|
|
//void u8x8_Setup_SSD13xx_SW_I2C(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t clock, uint8_t data, uint8_t reset);
|
|
|
|
//void u8x8_Setup_8Bit_6800(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset);
|
|
|
|
//void u8x8_Setup_8Bit_8080(u8x8_t *u8x8, u8x8_msg_cb display_cb, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t wr, uint8_t cs, uint8_t dc, uint8_t reset);
|
2015-12-13 00:26:10 +08:00
|
|
|
|
|
|
|
class U8X8 : public Print
|
2015-12-07 05:48:57 +08:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
u8x8_t u8x8;
|
|
|
|
public:
|
2015-12-13 16:19:09 +08:00
|
|
|
uint8_t tx, ty;
|
|
|
|
|
|
|
|
U8X8(void) { home(); }
|
2015-12-13 00:26:10 +08:00
|
|
|
u8x8_t *getU8x8(void) { return &u8x8; }
|
2016-11-05 03:36:02 +08:00
|
|
|
|
|
|
|
void setI2CAddress(uint8_t adr) { u8x8_SetI2CAddress(&u8x8, adr); }
|
2015-12-13 00:26:10 +08:00
|
|
|
|
2015-12-14 04:47:11 +08:00
|
|
|
uint8_t getCols(void) { return u8x8_GetCols(&u8x8); }
|
|
|
|
uint8_t getRows(void) { return u8x8_GetRows(&u8x8); }
|
|
|
|
|
2015-12-13 00:26:10 +08:00
|
|
|
void drawTile(uint8_t x, uint8_t y, uint8_t cnt, uint8_t *tile_ptr) {
|
|
|
|
u8x8_DrawTile(&u8x8, x, y, cnt, tile_ptr); }
|
|
|
|
|
2016-05-17 05:13:09 +08:00
|
|
|
#ifdef U8X8_USE_PINS
|
2016-05-22 22:02:33 +08:00
|
|
|
/* set the menu pins before calling begin() or initDisplay() */
|
2016-05-17 05:13:09 +08:00
|
|
|
void setMenuSelectPin(uint8_t val) {
|
|
|
|
u8x8_SetMenuSelectPin(&u8x8, val); }
|
|
|
|
void setMenuPrevPin(uint8_t val) {
|
|
|
|
u8x8_SetMenuPrevPin(&u8x8, val); }
|
|
|
|
void setMenuNextPin(uint8_t val) {
|
|
|
|
u8x8_SetMenuNextPin(&u8x8, val); }
|
2016-06-16 01:08:06 +08:00
|
|
|
void setMenuUpPin(uint8_t val) {
|
|
|
|
u8x8_SetMenuUpPin(&u8x8, val); }
|
|
|
|
void setMenuDownPin(uint8_t val) {
|
|
|
|
u8x8_SetMenuDownPin(&u8x8, val); }
|
2016-05-17 05:13:09 +08:00
|
|
|
void setMenuHomePin(uint8_t val) {
|
|
|
|
u8x8_SetMenuHomePin(&u8x8, val); }
|
|
|
|
#endif
|
|
|
|
|
2015-12-13 00:26:10 +08:00
|
|
|
void initDisplay(void) {
|
|
|
|
u8x8_InitDisplay(&u8x8); }
|
|
|
|
|
2015-12-23 20:19:11 +08:00
|
|
|
void clearDisplay(void) {
|
2015-12-20 17:10:49 +08:00
|
|
|
u8x8_ClearDisplay(&u8x8); }
|
2015-12-13 00:26:10 +08:00
|
|
|
|
|
|
|
void setPowerSave(uint8_t is_enable) {
|
|
|
|
u8x8_SetPowerSave(&u8x8, is_enable); }
|
|
|
|
|
|
|
|
void begin(void) {
|
2015-12-23 20:19:11 +08:00
|
|
|
initDisplay(); clearDisplay(); setPowerSave(0); }
|
2016-05-22 22:02:33 +08:00
|
|
|
|
|
|
|
#ifdef U8X8_USE_PINS
|
2016-06-16 01:08:06 +08:00
|
|
|
/* use U8X8_PIN_NONE if a pin is not required */
|
|
|
|
void begin(uint8_t menu_select_pin, uint8_t menu_next_pin, uint8_t menu_prev_pin, uint8_t menu_up_pin = U8X8_PIN_NONE, uint8_t menu_down_pin = U8X8_PIN_NONE, uint8_t menu_home_pin = U8X8_PIN_NONE) {
|
2016-05-22 22:02:33 +08:00
|
|
|
setMenuSelectPin(menu_select_pin);
|
|
|
|
setMenuNextPin(menu_next_pin);
|
|
|
|
setMenuPrevPin(menu_prev_pin);
|
2016-06-16 01:08:06 +08:00
|
|
|
setMenuUpPin(menu_up_pin);
|
|
|
|
setMenuDownPin(menu_down_pin);
|
2016-05-22 22:02:33 +08:00
|
|
|
setMenuHomePin(menu_home_pin);
|
|
|
|
begin(); }
|
|
|
|
#endif
|
2015-12-13 00:26:10 +08:00
|
|
|
|
|
|
|
void setFlipMode(uint8_t mode) {
|
|
|
|
u8x8_SetFlipMode(&u8x8, mode); }
|
|
|
|
|
2016-12-30 04:32:26 +08:00
|
|
|
void refreshDisplay(void) { // Dec 16: Only required for SSD1606
|
|
|
|
u8x8_RefreshDisplay(&u8x8); }
|
|
|
|
|
2015-12-13 00:26:10 +08:00
|
|
|
void setContrast(uint8_t value) {
|
|
|
|
u8x8_SetContrast(&u8x8, value); }
|
|
|
|
|
2015-12-13 16:19:09 +08:00
|
|
|
void setInverseFont(uint8_t value) {
|
|
|
|
u8x8_SetInverseFont(&u8x8, value); }
|
|
|
|
|
2015-12-13 00:26:10 +08:00
|
|
|
void setFont(const uint8_t *font_8x8) {
|
|
|
|
u8x8_SetFont(&u8x8, font_8x8); }
|
|
|
|
|
|
|
|
void drawGlyph(uint8_t x, uint8_t y, uint8_t encoding) {
|
|
|
|
u8x8_DrawGlyph(&u8x8, x, y, encoding); }
|
2015-12-07 05:48:57 +08:00
|
|
|
|
2016-08-10 05:22:00 +08:00
|
|
|
void draw2x2Glyph(uint8_t x, uint8_t y, uint8_t encoding) {
|
|
|
|
u8x8_Draw2x2Glyph(&u8x8, x, y, encoding); }
|
|
|
|
|
2015-12-13 00:26:10 +08:00
|
|
|
void drawString(uint8_t x, uint8_t y, const char *s) {
|
|
|
|
u8x8_DrawString(&u8x8, x, y, s); }
|
|
|
|
|
|
|
|
void drawUTF8(uint8_t x, uint8_t y, const char *s) {
|
|
|
|
u8x8_DrawUTF8(&u8x8, x, y, s); }
|
2016-08-10 05:22:00 +08:00
|
|
|
|
|
|
|
void draw2x2String(uint8_t x, uint8_t y, const char *s) {
|
|
|
|
u8x8_Draw2x2String(&u8x8, x, y, s); }
|
|
|
|
|
|
|
|
void draw2x2UTF8(uint8_t x, uint8_t y, const char *s) {
|
|
|
|
u8x8_Draw2x2UTF8(&u8x8, x, y, s); }
|
2015-12-13 00:26:10 +08:00
|
|
|
|
|
|
|
uint8_t getUTF8Len(const char *s) {
|
|
|
|
return u8x8_GetUTF8Len(&u8x8, s); }
|
|
|
|
|
2016-11-05 04:10:42 +08:00
|
|
|
size_t write(uint8_t v);
|
|
|
|
/*
|
2015-12-13 00:26:10 +08:00
|
|
|
size_t write(uint8_t v) {
|
2015-12-13 16:19:09 +08:00
|
|
|
u8x8_DrawGlyph(&u8x8, tx, ty, v);
|
|
|
|
tx++;
|
|
|
|
return 1;
|
2015-12-13 00:26:10 +08:00
|
|
|
}
|
2016-11-05 04:10:42 +08:00
|
|
|
*/
|
2015-12-13 16:19:09 +08:00
|
|
|
|
2016-05-12 05:32:01 +08:00
|
|
|
size_t write(const uint8_t *buffer, size_t size) {
|
|
|
|
size_t cnt = 0;
|
|
|
|
while( size > 0 ) {
|
|
|
|
cnt += write(*buffer++);
|
|
|
|
size--;
|
|
|
|
}
|
|
|
|
return cnt;
|
|
|
|
}
|
|
|
|
|
2015-12-14 04:47:11 +08:00
|
|
|
void inverse(void) { setInverseFont(1); }
|
|
|
|
void noInverse(void) { setInverseFont(0); }
|
2015-12-13 16:19:09 +08:00
|
|
|
|
2016-05-17 05:13:09 +08:00
|
|
|
/* return 0 for no event or U8X8_MSG_GPIO_MENU_SELECT, */
|
|
|
|
/* U8X8_MSG_GPIO_MENU_NEXT, U8X8_MSG_GPIO_MENU_PREV, */
|
|
|
|
/* U8X8_MSG_GPIO_MENU_HOME */
|
|
|
|
uint8_t getMenuEvent(void) { return u8x8_GetMenuEvent(&u8x8); }
|
2016-06-17 03:33:19 +08:00
|
|
|
|
|
|
|
uint8_t userInterfaceSelectionList(const char *title, uint8_t start_pos, const char *sl) {
|
|
|
|
return u8x8_UserInterfaceSelectionList(&u8x8, title, start_pos, sl); }
|
|
|
|
uint8_t userInterfaceMessage(const char *title1, const char *title2, const char *title3, const char *buttons) {
|
|
|
|
return u8x8_UserInterfaceMessage(&u8x8, title1, title2, title3, buttons); }
|
|
|
|
uint8_t userInterfaceInputValue(const char *title, const char *pre, uint8_t *value, uint8_t lo, uint8_t hi, uint8_t digits, const char *post) {
|
|
|
|
return u8x8_UserInterfaceInputValue(&u8x8, title, pre, value, lo, hi, digits, post); }
|
|
|
|
|
2015-12-13 16:19:09 +08:00
|
|
|
/* LiquidCrystal compatible functions */
|
|
|
|
void home(void) { tx = 0; ty = 0; }
|
2015-12-23 20:24:12 +08:00
|
|
|
void clear(void) { clearDisplay(); home(); }
|
2015-12-13 16:19:09 +08:00
|
|
|
void noDisplay(void) { u8x8_SetPowerSave(&u8x8, 1); }
|
|
|
|
void display(void) { u8x8_SetPowerSave(&u8x8, 0); }
|
|
|
|
void setCursor(uint8_t x, uint8_t y) { tx = x; ty = y; }
|
|
|
|
|
2015-12-13 00:26:10 +08:00
|
|
|
};
|
|
|
|
|
2015-12-24 01:44:00 +08:00
|
|
|
|
2015-12-24 02:02:06 +08:00
|
|
|
// constructor list start
|
|
|
|
/* generated code (codebuild), u8g2 project */
|
2017-01-07 04:18:46 +08:00
|
|
|
class U8X8_SSD1305_128X32_NONAME_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1305_128X32_NONAME_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1305_128x32_noname, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1305_128X32_NONAME_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1305_128X32_NONAME_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1305_128x32_noname, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1305_128X32_NONAME_6800 : public U8X8 {
|
|
|
|
public: U8X8_SSD1305_128X32_NONAME_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1305_128x32_noname, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1305_128X32_NONAME_8080 : public U8X8 {
|
|
|
|
public: U8X8_SSD1305_128X32_NONAME_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1305_128x32_noname, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1305_128X32_NONAME_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1305_128X32_NONAME_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1305_128x32_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1305_128X32_NONAME_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1305_128X32_NONAME_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1305_128x32_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1305_128X32_NONAME_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1305_128X32_NONAME_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1305_128x32_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2015-12-24 02:02:06 +08:00
|
|
|
class U8X8_SSD1306_128X64_NONAME_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_NONAME_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-05-16 15:16:54 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2015-12-24 01:44:00 +08:00
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
2015-12-24 02:02:06 +08:00
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X64_NONAME_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_NONAME_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
2015-12-13 02:11:28 +08:00
|
|
|
}
|
2015-12-13 05:36:58 +08:00
|
|
|
};
|
2015-12-24 02:02:06 +08:00
|
|
|
class U8X8_SSD1306_128X64_NONAME_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_NONAME_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X64_NONAME_6800 : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_NONAME_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X64_NONAME_8080 : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_NONAME_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2015-12-24 02:02:06 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-12-27 07:14:44 +08:00
|
|
|
class U8X8_SSD1306_128X64_VCOMH0_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_VCOMH0_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X64_VCOMH0_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_VCOMH0_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X64_VCOMH0_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_VCOMH0_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X64_VCOMH0_6800 : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_VCOMH0_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X64_VCOMH0_8080 : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_VCOMH0_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2015-12-24 02:02:06 +08:00
|
|
|
class U8X8_SSD1306_128X64_NONAME_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_NONAME_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-03-01 01:04:34 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
2016-06-23 05:58:14 +08:00
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
2015-12-24 02:02:06 +08:00
|
|
|
}
|
|
|
|
};
|
2016-05-15 06:05:41 +08:00
|
|
|
class U8X8_SSD1306_128X64_NONAME_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_NONAME_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
2016-06-23 05:58:14 +08:00
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
2016-05-15 06:05:41 +08:00
|
|
|
}
|
|
|
|
};
|
2016-11-13 00:30:14 +08:00
|
|
|
class U8X8_SSD1306_128X64_NONAME_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_NONAME_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-12-27 07:14:44 +08:00
|
|
|
class U8X8_SSD1306_128X64_VCOMH0_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_VCOMH0_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X64_VCOMH0_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_VCOMH0_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X64_VCOMH0_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X64_VCOMH0_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x64_vcomh0, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-14 04:51:02 +08:00
|
|
|
class U8X8_SH1106_128X64_NONAME_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_NONAME_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-05-16 15:16:54 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_noname, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2016-05-14 04:51:02 +08:00
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_NONAME_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_NONAME_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_noname, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_NONAME_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_NONAME_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_noname, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_NONAME_6800 : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_NONAME_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_noname, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_NONAME_8080 : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_NONAME_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_noname, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-05-14 04:51:02 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-12-27 07:14:44 +08:00
|
|
|
class U8X8_SH1106_128X64_VCOMH0_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_VCOMH0_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_VCOMH0_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_VCOMH0_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_VCOMH0_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_VCOMH0_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_VCOMH0_6800 : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_VCOMH0_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_VCOMH0_8080 : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_VCOMH0_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-14 04:51:02 +08:00
|
|
|
class U8X8_SH1106_128X64_NONAME_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_NONAME_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
2016-06-23 05:58:14 +08:00
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
2016-05-14 04:51:02 +08:00
|
|
|
}
|
|
|
|
};
|
2016-05-15 06:05:41 +08:00
|
|
|
class U8X8_SH1106_128X64_NONAME_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_NONAME_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
2016-06-23 05:58:14 +08:00
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
2016-05-15 06:05:41 +08:00
|
|
|
}
|
|
|
|
};
|
2016-11-13 00:30:14 +08:00
|
|
|
class U8X8_SH1106_128X64_NONAME_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_NONAME_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-12-27 07:14:44 +08:00
|
|
|
class U8X8_SH1106_128X64_VCOMH0_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_VCOMH0_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_VCOMH0_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_VCOMH0_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SH1106_128X64_VCOMH0_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SH1106_128X64_VCOMH0_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sh1106_128x64_vcomh0, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-14 04:51:02 +08:00
|
|
|
class U8X8_SSD1306_128X32_UNIVISION_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X32_UNIVISION_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-05-16 15:16:54 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2016-05-14 04:51:02 +08:00
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X32_UNIVISION_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X32_UNIVISION_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X32_UNIVISION_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X32_UNIVISION_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X32_UNIVISION_6800 : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X32_UNIVISION_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X32_UNIVISION_8080 : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X32_UNIVISION_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x32_univision, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-05-14 04:51:02 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_128X32_UNIVISION_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X32_UNIVISION_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x32_univision, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
2016-06-23 05:58:14 +08:00
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
2016-05-14 04:51:02 +08:00
|
|
|
}
|
|
|
|
};
|
2016-05-15 06:05:41 +08:00
|
|
|
class U8X8_SSD1306_128X32_UNIVISION_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X32_UNIVISION_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x32_univision, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
2016-06-23 05:58:14 +08:00
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
2016-05-15 06:05:41 +08:00
|
|
|
}
|
|
|
|
};
|
2016-11-13 00:30:14 +08:00
|
|
|
class U8X8_SSD1306_128X32_UNIVISION_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_128X32_UNIVISION_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_128x32_univision, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-11-20 21:57:53 +08:00
|
|
|
class U8X8_SSD1306_64X48_ER_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_64X48_ER_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_64x48_er, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_64X48_ER_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_64X48_ER_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_64x48_er, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_64X48_ER_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_64X48_ER_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_64x48_er, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_64X48_ER_6800 : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_64X48_ER_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_64x48_er, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_64X48_ER_8080 : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_64X48_ER_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_64x48_er, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-11-20 21:57:53 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_64X48_ER_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_64X48_ER_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_64x48_er, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_64X48_ER_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_64X48_ER_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_64x48_er, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1306_64X48_ER_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1306_64X48_ER_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1306_64x48_er, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2017-01-12 05:34:39 +08:00
|
|
|
class U8X8_SSD1309_128X64_NONAME_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1309_128X64_NONAME_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1309_128x64_noname, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1309_128X64_NONAME_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1309_128X64_NONAME_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1309_128x64_noname, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1309_128X64_NONAME_6800 : public U8X8 {
|
|
|
|
public: U8X8_SSD1309_128X64_NONAME_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1309_128x64_noname, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1309_128X64_NONAME_8080 : public U8X8 {
|
|
|
|
public: U8X8_SSD1309_128X64_NONAME_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1309_128x64_noname, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1309_128X64_NONAME_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1309_128X64_NONAME_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1309_128x64_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1309_128X64_NONAME_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1309_128X64_NONAME_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1309_128x64_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1309_128X64_NONAME_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1309_128X64_NONAME_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1309_128x64_noname, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-09-25 16:26:39 +08:00
|
|
|
class U8X8_SSD1325_NHD_128X64_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1325_NHD_128X64_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1325_nhd_128x64, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1325_NHD_128X64_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1325_NHD_128X64_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1325_nhd_128x64, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1325_NHD_128X64_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1325_NHD_128X64_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1325_nhd_128x64, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1325_NHD_128X64_6800 : public U8X8 {
|
|
|
|
public: U8X8_SSD1325_NHD_128X64_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1325_nhd_128x64, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1325_NHD_128X64_8080 : public U8X8 {
|
|
|
|
public: U8X8_SSD1325_NHD_128X64_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1325_nhd_128x64, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-09-25 16:26:39 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2017-01-05 15:44:08 +08:00
|
|
|
class U8X8_SSD1325_NHD_128X64_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1325_NHD_128X64_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1325_nhd_128x64, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1325_NHD_128X64_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1325_NHD_128X64_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1325_nhd_128x64, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1325_NHD_128X64_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1325_NHD_128X64_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1325_nhd_128x64, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1327_SEEED_96X96_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1327_SEEED_96X96_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1327_seeed_96x96, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1327_SEEED_96X96_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1327_SEEED_96X96_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1327_seeed_96x96, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1327_SEEED_96X96_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1327_SEEED_96X96_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1327_seeed_96x96, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1327_SEEED_96X96_6800 : public U8X8 {
|
|
|
|
public: U8X8_SSD1327_SEEED_96X96_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1327_seeed_96x96, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1327_SEEED_96X96_8080 : public U8X8 {
|
|
|
|
public: U8X8_SSD1327_SEEED_96X96_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1327_seeed_96x96, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1327_SEEED_96X96_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1327_SEEED_96X96_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1327_seeed_96x96, u8x8_cad_ssd13xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1327_SEEED_96X96_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1327_SEEED_96X96_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1327_seeed_96x96, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1327_SEEED_96X96_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_SSD1327_SEEED_96X96_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1327_seeed_96x96, u8x8_cad_ssd13xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-06-22 05:23:11 +08:00
|
|
|
class U8X8_LD7032_60X32_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_LD7032_60X32_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ld7032_60x32, u8x8_cad_011, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_LD7032_60X32_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_LD7032_60X32_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ld7032_60x32, u8x8_cad_011, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-06-23 05:58:14 +08:00
|
|
|
class U8X8_LD7032_60X32_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_LD7032_60X32_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ld7032_60x32, u8x8_cad_ld7032_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_LD7032_60X32_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_LD7032_60X32_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ld7032_60x32, u8x8_cad_ld7032_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-11-13 00:30:14 +08:00
|
|
|
class U8X8_LD7032_60X32_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_LD7032_60X32_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ld7032_60x32, u8x8_cad_ld7032_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-01-04 07:31:49 +08:00
|
|
|
class U8X8_ST7920_192X32_8080 : public U8X8 {
|
|
|
|
public: U8X8_ST7920_192X32_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7920_192x32, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-01-04 07:31:49 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-10-01 14:37:18 +08:00
|
|
|
class U8X8_ST7920_192X32_6800 : public U8X8 {
|
|
|
|
public: U8X8_ST7920_192X32_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7920_192x32, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-02-28 02:23:57 +08:00
|
|
|
class U8X8_ST7920_192X32_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7920_192X32_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 19:48:09 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7920_192x32, u8x8_cad_st7920_spi, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2016-02-28 02:23:57 +08:00
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-06-24 06:58:17 +08:00
|
|
|
class U8X8_ST7920_192X32_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7920_192X32_HW_SPI(uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7920_192x32, u8x8_cad_st7920_spi, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_ST7920_HW_SPI(getU8x8(), cs, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-02-28 02:23:57 +08:00
|
|
|
class U8X8_ST7920_128X64_8080 : public U8X8 {
|
|
|
|
public: U8X8_ST7920_128X64_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7920_128x64, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-02-28 02:23:57 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
2016-10-01 14:37:18 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7920_128X64_6800 : public U8X8 {
|
|
|
|
public: U8X8_ST7920_128X64_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7920_128x64, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
2016-02-28 02:23:57 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7920_128X64_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7920_128X64_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 19:48:09 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7920_128x64, u8x8_cad_st7920_spi, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2016-02-27 04:58:40 +08:00
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-06-24 06:58:17 +08:00
|
|
|
class U8X8_ST7920_128X64_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7920_128X64_HW_SPI(uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7920_128x64, u8x8_cad_st7920_spi, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_ST7920_HW_SPI(getU8x8(), cs, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-25 04:53:40 +08:00
|
|
|
class U8X8_LS013B7DH03_128X128_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_LS013B7DH03_128X128_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ls013b7dh03_128x128, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2016-05-25 02:26:46 +08:00
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-25 04:53:40 +08:00
|
|
|
class U8X8_LS013B7DH03_128X128_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_LS013B7DH03_128X128_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ls013b7dh03_128x128, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
2016-05-25 02:26:46 +08:00
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_UC1701_EA_DOGS102_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1701_EA_DOGS102_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2015-12-24 02:02:06 +08:00
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
2015-12-13 02:39:49 +08:00
|
|
|
}
|
2015-12-13 05:36:58 +08:00
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_UC1701_EA_DOGS102_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1701_EA_DOGS102_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
2015-12-24 02:02:06 +08:00
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
2015-12-13 02:39:49 +08:00
|
|
|
}
|
2015-12-13 05:36:58 +08:00
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_UC1701_EA_DOGS102_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1701_EA_DOGS102_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2015-12-24 02:02:06 +08:00
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
2015-12-13 05:36:58 +08:00
|
|
|
}
|
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_UC1701_EA_DOGS102_6800 : public U8X8 {
|
|
|
|
public: U8X8_UC1701_EA_DOGS102_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
2015-12-24 02:02:06 +08:00
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
2015-12-13 05:36:58 +08:00
|
|
|
}
|
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_UC1701_EA_DOGS102_8080 : public U8X8 {
|
|
|
|
public: U8X8_UC1701_EA_DOGS102_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_ea_dogs102, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2015-12-24 02:02:06 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
2015-12-13 05:36:58 +08:00
|
|
|
}
|
|
|
|
};
|
2016-08-18 03:08:42 +08:00
|
|
|
class U8X8_UC1701_MINI12864_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1701_MINI12864_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_mini12864, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1701_MINI12864_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1701_MINI12864_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_mini12864, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1701_MINI12864_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1701_MINI12864_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_mini12864, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1701_MINI12864_6800 : public U8X8 {
|
|
|
|
public: U8X8_UC1701_MINI12864_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_mini12864, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1701_MINI12864_8080 : public U8X8 {
|
|
|
|
public: U8X8_UC1701_MINI12864_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1701_mini12864, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-08-18 03:08:42 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-12-15 22:04:12 +08:00
|
|
|
class U8X8_PCD8544_84X48_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_PCD8544_84X48_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_pcd8544_84x48, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_PCD8544_84X48_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_PCD8544_84X48_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_pcd8544_84x48, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2017-01-02 00:23:01 +08:00
|
|
|
class U8X8_PCF8812_96X65_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_PCF8812_96X65_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_pcf8812_96x65, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_PCF8812_96X65_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_PCF8812_96X65_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_pcf8812_96x65, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-12-18 17:35:18 +08:00
|
|
|
class U8X8_UC1604_JLX19264_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1604_JLX19264_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1604_jlx19264, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1604_JLX19264_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1604_JLX19264_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1604_jlx19264, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1604_JLX19264_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1604_JLX19264_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1604_jlx19264, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1604_JLX19264_6800 : public U8X8 {
|
|
|
|
public: U8X8_UC1604_JLX19264_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1604_jlx19264, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1604_JLX19264_8080 : public U8X8 {
|
|
|
|
public: U8X8_UC1604_JLX19264_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1604_jlx19264, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1604_JLX19264_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1604_JLX19264_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1604_jlx19264, u8x8_cad_uc16xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1604_JLX19264_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1604_JLX19264_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1604_jlx19264, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1604_JLX19264_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1604_JLX19264_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1604_jlx19264, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-11-23 03:18:51 +08:00
|
|
|
class U8X8_UC1608_ERC24064_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1608_ERC24064_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_erc24064, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_ERC24064_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1608_ERC24064_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_erc24064, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_ERC24064_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1608_ERC24064_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_erc24064, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_ERC24064_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1608_ERC24064_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_erc24064, u8x8_cad_uc16xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_ERC24064_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1608_ERC24064_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_erc24064, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_ERC24064_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1608_ERC24064_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_erc24064, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-12-07 05:51:15 +08:00
|
|
|
class U8X8_UC1608_240X128_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1608_240X128_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_240x128, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_240X128_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1608_240X128_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_240x128, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_240X128_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1608_240X128_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_240x128, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_240X128_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1608_240X128_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_240x128, u8x8_cad_uc16xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_240X128_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1608_240X128_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_240x128, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1608_240X128_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1608_240X128_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1608_240x128, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-10-15 23:08:04 +08:00
|
|
|
class U8X8_UC1610_EA_DOGXL160_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1610_EA_DOGXL160_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1610_ea_dogxl160, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1610_EA_DOGXL160_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1610_EA_DOGXL160_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1610_ea_dogxl160, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1610_EA_DOGXL160_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1610_EA_DOGXL160_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1610_ea_dogxl160, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-11-13 03:28:27 +08:00
|
|
|
class U8X8_UC1610_EA_DOGXL160_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1610_EA_DOGXL160_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1610_ea_dogxl160, u8x8_cad_uc16xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1610_EA_DOGXL160_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1610_EA_DOGXL160_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1610_ea_dogxl160, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1610_EA_DOGXL160_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1610_EA_DOGXL160_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1610_ea_dogxl160, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGM240_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGM240_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogm240, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGM240_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGM240_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogm240, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGM240_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGM240_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogm240, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-11-12 23:17:56 +08:00
|
|
|
class U8X8_UC1611_EA_DOGM240_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGM240_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogm240, u8x8_cad_uc16xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGM240_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGM240_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogm240, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
2016-11-13 00:30:14 +08:00
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGM240_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGM240_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogm240, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
2016-11-13 03:28:27 +08:00
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGXL240_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGXL240_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogxl240, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGXL240_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGXL240_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogxl240, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGXL240_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGXL240_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogxl240, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGXL240_SW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGXL240_SW_I2C(uint8_t clock, uint8_t data, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogxl240, u8x8_cad_uc16xx_i2c, u8x8_byte_sw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_SW_I2C(getU8x8(), clock, data, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGXL240_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGXL240_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogxl240, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_hw_i2c, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_UC1611_EA_DOGXL240_2ND_HW_I2C : public U8X8 {
|
|
|
|
public: U8X8_UC1611_EA_DOGXL240_2ND_HW_I2C(uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_uc1611_ea_dogxl240, u8x8_cad_uc16xx_i2c, u8x8_byte_arduino_2nd_hw_i2c, u8x8_gpio_and_delay_arduino);
|
2016-11-12 23:17:56 +08:00
|
|
|
u8x8_SetPin_HW_I2C(getU8x8(), reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_ST7565_EA_DOGM128_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM128_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm128, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2016-05-26 14:31:29 +08:00
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_ST7565_EA_DOGM128_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM128_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm128, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
2016-05-26 14:31:29 +08:00
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_ST7565_EA_DOGM128_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM128_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm128, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2016-05-26 14:31:29 +08:00
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_ST7565_EA_DOGM128_6800 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM128_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm128, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
2016-05-26 14:31:29 +08:00
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-05-26 16:33:09 +08:00
|
|
|
class U8X8_ST7565_EA_DOGM128_8080 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM128_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm128, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-05-26 16:33:09 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
2016-12-17 04:59:40 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_ZOLEN_128X64_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_ZOLEN_128X64_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_zolen_128x64, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_ZOLEN_128X64_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_ZOLEN_128X64_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_zolen_128x64, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_ZOLEN_128X64_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_ZOLEN_128X64_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_zolen_128x64, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_ZOLEN_128X64_6800 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_ZOLEN_128X64_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_zolen_128x64, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_ZOLEN_128X64_8080 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_ZOLEN_128X64_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_zolen_128x64, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
2016-12-27 07:14:44 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_LM6059_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_LM6059_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_lm6059, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_LM6059_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_LM6059_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_lm6059, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_LM6059_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_LM6059_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_lm6059, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_LM6059_6800 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_LM6059_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_lm6059, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_LM6059_8080 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_LM6059_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_lm6059, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
2016-05-26 16:33:09 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_NHD_C12832_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_NHD_C12832_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_nhd_c12832, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_NHD_C12832_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_NHD_C12832_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_nhd_c12832, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_NHD_C12832_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_NHD_C12832_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_nhd_c12832, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_NHD_C12832_6800 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_NHD_C12832_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_nhd_c12832, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_NHD_C12832_8080 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_NHD_C12832_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_nhd_c12832, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-05-26 14:31:29 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2017-01-07 19:59:30 +08:00
|
|
|
class U8X8_ST7565_EA_DOGM132_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM132_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm132, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_EA_DOGM132_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM132_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm132, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_EA_DOGM132_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM132_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm132, u8x8_cad_001, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_EA_DOGM132_6800 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM132_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm132, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7565_EA_DOGM132_8080 : public U8X8 {
|
|
|
|
public: U8X8_ST7565_EA_DOGM132_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7565_ea_dogm132, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2017-01-02 20:27:28 +08:00
|
|
|
class U8X8_ST7567_PI_132X64_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7567_PI_132X64_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7567_pi_132x64, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7567_PI_132X64_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_ST7567_PI_132X64_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7567_pi_132x64, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7567_PI_132X64_6800 : public U8X8 {
|
|
|
|
public: U8X8_ST7567_PI_132X64_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7567_pi_132x64, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_ST7567_PI_132X64_8080 : public U8X8 {
|
|
|
|
public: U8X8_ST7567_PI_132X64_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_st7567_pi_132x64, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2017-01-04 23:48:47 +08:00
|
|
|
class U8X8_NT7534_TG12864R_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_NT7534_TG12864R_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_nt7534_tg12864r, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_NT7534_TG12864R_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_NT7534_TG12864R_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_nt7534_tg12864r, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_NT7534_TG12864R_6800 : public U8X8 {
|
|
|
|
public: U8X8_NT7534_TG12864R_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_nt7534_tg12864r, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_NT7534_TG12864R_8080 : public U8X8 {
|
|
|
|
public: U8X8_NT7534_TG12864R_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_nt7534_tg12864r, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2017-01-11 05:35:39 +08:00
|
|
|
class U8X8_IST3020_ERC19264_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_IST3020_ERC19264_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ist3020_erc19264, u8x8_cad_001, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_IST3020_ERC19264_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_IST3020_ERC19264_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ist3020_erc19264, u8x8_cad_001, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_IST3020_ERC19264_6800 : public U8X8 {
|
|
|
|
public: U8X8_IST3020_ERC19264_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ist3020_erc19264, u8x8_cad_001, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_IST3020_ERC19264_8080 : public U8X8 {
|
|
|
|
public: U8X8_IST3020_ERC19264_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ist3020_erc19264, u8x8_cad_001, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-12-05 05:48:27 +08:00
|
|
|
class U8X8_KS0108_128X64 : public U8X8 {
|
|
|
|
public: U8X8_KS0108_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, uint8_t enable, uint8_t dc, uint8_t cs0, uint8_t cs1, uint8_t cs2, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-12-14 12:35:03 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ks0108_128x64, u8x8_cad_001, u8x8_byte_arduino_ks0108, u8x8_gpio_and_delay_arduino);
|
2016-12-05 05:48:27 +08:00
|
|
|
u8x8_SetPin_KS0108(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, dc, cs0, cs1, cs2, reset);
|
2016-12-09 05:37:18 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_KS0108_ERM19264 : public U8X8 {
|
|
|
|
public: U8X8_KS0108_ERM19264(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t dc, uint8_t cs0, uint8_t cs1, uint8_t cs2, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-12-14 12:35:03 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ks0108_erm19264, u8x8_cad_001, u8x8_byte_arduino_ks0108, u8x8_gpio_and_delay_arduino);
|
2016-12-09 05:37:18 +08:00
|
|
|
u8x8_SetPin_KS0108(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, dc, cs0, cs1, cs2, reset);
|
2016-12-05 05:48:27 +08:00
|
|
|
}
|
|
|
|
};
|
2016-12-31 19:14:17 +08:00
|
|
|
class U8X8_LC7981_160X80_6800 : public U8X8 {
|
|
|
|
public: U8X8_LC7981_160X80_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_lc7981_160x80, u8x8_cad_100, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-07-02 13:09:27 +08:00
|
|
|
class U8X8_T6963_240X128_8080 : public U8X8 {
|
|
|
|
public: U8X8_T6963_240X128_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_t6963_240x128, u8x8_cad_100, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-07-02 13:09:27 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
2016-11-03 01:53:19 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_T6963_240X64_8080 : public U8X8 {
|
|
|
|
public: U8X8_T6963_240X64_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_t6963_240x64, u8x8_cad_100, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-11-03 01:53:19 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
2016-07-02 13:09:27 +08:00
|
|
|
}
|
|
|
|
};
|
2016-07-16 14:03:47 +08:00
|
|
|
class U8X8_T6963_256X64_8080 : public U8X8 {
|
|
|
|
public: U8X8_T6963_256X64_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_t6963_256x64, u8x8_cad_100, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-07-16 14:03:47 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-07-03 16:14:47 +08:00
|
|
|
class U8X8_T6963_128X64_8080 : public U8X8 {
|
|
|
|
public: U8X8_T6963_128X64_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_t6963_128x64, u8x8_cad_100, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-07-03 16:14:47 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-09-29 05:23:07 +08:00
|
|
|
class U8X8_SSD1322_NHD_256X64_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1322_NHD_256X64_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1322_nhd_256x64, u8x8_cad_011, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2016-07-15 03:23:34 +08:00
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-09-29 05:23:07 +08:00
|
|
|
class U8X8_SSD1322_NHD_256X64_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1322_NHD_256X64_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1322_nhd_256x64, u8x8_cad_011, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
2016-07-15 03:23:34 +08:00
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-09-29 05:23:07 +08:00
|
|
|
class U8X8_SSD1322_NHD_256X64_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1322_NHD_256X64_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1322_nhd_256x64, u8x8_cad_011, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
2016-07-15 03:23:34 +08:00
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-09-29 05:23:07 +08:00
|
|
|
class U8X8_SSD1322_NHD_256X64_6800 : public U8X8 {
|
|
|
|
public: U8X8_SSD1322_NHD_256X64_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1322_nhd_256x64, u8x8_cad_011, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
2016-07-15 03:23:34 +08:00
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-09-29 05:23:07 +08:00
|
|
|
class U8X8_SSD1322_NHD_256X64_8080 : public U8X8 {
|
|
|
|
public: U8X8_SSD1322_NHD_256X64_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1322_nhd_256x64, u8x8_cad_011, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-07-15 03:23:34 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-12-28 15:02:53 +08:00
|
|
|
class U8X8_SSD1606_172X72_4W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1606_172X72_4W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1606_172x72, u8x8_cad_011, u8x8_byte_arduino_4wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_SW_SPI(getU8x8(), clock, data, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1606_172X72_4W_HW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1606_172X72_4W_HW_SPI(uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1606_172x72, u8x8_cad_011, u8x8_byte_arduino_hw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_4Wire_HW_SPI(getU8x8(), cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SSD1606_172X72_3W_SW_SPI : public U8X8 {
|
|
|
|
public: U8X8_SSD1606_172X72_3W_SW_SPI(uint8_t clock, uint8_t data, uint8_t cs, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ssd1606_172x72, u8x8_cad_011, u8x8_byte_3wire_sw_spi, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_3Wire_SW_SPI(getU8x8(), clock, data, cs, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-08-13 01:16:49 +08:00
|
|
|
class U8X8_SED1330_240X128_6800 : public U8X8 {
|
|
|
|
public: U8X8_SED1330_240X128_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sed1330_240x128, u8x8_cad_100, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_SED1330_240X128_8080 : public U8X8 {
|
|
|
|
public: U8X8_SED1330_240X128_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_sed1330_240x128, u8x8_cad_100, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-08-13 01:16:49 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2016-09-24 01:43:35 +08:00
|
|
|
class U8X8_RA8835_NHD_240X128_6800 : public U8X8 {
|
|
|
|
public: U8X8_RA8835_NHD_240X128_6800(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ra8835_nhd_240x128, u8x8_cad_100, u8x8_byte_8bit_6800mode, u8x8_gpio_and_delay_arduino);
|
|
|
|
u8x8_SetPin_8Bit_6800(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
class U8X8_RA8835_NHD_240X128_8080 : public U8X8 {
|
|
|
|
public: U8X8_RA8835_NHD_240X128_8080(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t enable, uint8_t cs, uint8_t dc, uint8_t reset = U8X8_PIN_NONE) : U8X8() {
|
2016-11-26 15:40:58 +08:00
|
|
|
u8x8_Setup(getU8x8(), u8x8_d_ra8835_nhd_240x128, u8x8_cad_100, u8x8_byte_arduino_8bit_8080mode, u8x8_gpio_and_delay_arduino);
|
2016-09-24 01:43:35 +08:00
|
|
|
u8x8_SetPin_8Bit_8080(getU8x8(), d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc, reset);
|
|
|
|
}
|
|
|
|
};
|
2015-12-13 00:26:10 +08:00
|
|
|
|
2015-12-13 02:10:13 +08:00
|
|
|
// constructor list end
|
2015-12-07 05:48:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2015-12-13 00:26:10 +08:00
|
|
|
#endif /* _U8X8LIB_HH */
|
2015-12-07 05:48:57 +08:00
|
|
|
|
|
|
|
|