Skip to content

Commit

Permalink
ssd1351 with gpio high
Browse files Browse the repository at this point in the history
  • Loading branch information
olikraus committed Oct 3, 2013
1 parent 169fb0c commit dc9bbbf
Show file tree
Hide file tree
Showing 4 changed files with 452 additions and 31 deletions.
22 changes: 22 additions & 0 deletions cppsrc/U8glib.h
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,28 @@ class U8GLIB_SSD1351_128X128_4X_332 : public U8GLIB
{ }
};

class U8GLIB_SSD1351_128X128GH_332 : public U8GLIB
{
public:
U8GLIB_SSD1351_128X128gh_332(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
: U8GLIB(&u8g_dev_ssd1351_128x128gh_332_sw_spi, sck, mosi, cs, a0, reset)
{ }
U8GLIB_SSD1351_128X128gh_332(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
: U8GLIB(&u8g_dev_ssd1351_128x128gh_332_hw_spi, cs, a0, reset)
{ }
};

class U8GLIB_SSD1351_128X128GH_4X_332 : public U8GLIB
{
public:
U8GLIB_SSD1351_128X128gh_4X_332(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
: U8GLIB(&u8g_dev_ssd1351_128x128gh_4x_332_sw_spi, sck, mosi, cs, a0, reset)
{ }
U8GLIB_SSD1351_128X128gh_4X_332(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
: U8GLIB(&u8g_dev_ssd1351_128x128gh_4x_332_hw_spi, cs, a0, reset)
{ }
};

class U8GLIB_SSD1351_128X128_IDX : public U8GLIB
{
public:
Expand Down
10 changes: 10 additions & 0 deletions csrc/u8g.h
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,16 @@ extern u8g_dev_t u8g_dev_ssd1351_128x128_hicolor_hw_spi;
extern u8g_dev_t u8g_dev_ssd1351_128x128_4x_hicolor_sw_spi;
extern u8g_dev_t u8g_dev_ssd1351_128x128_4x_hicolor_hw_spi;

/* SSD1351 OLED (Freetronic, GPIOs set to high level) */
extern u8g_dev_t u8g_dev_ssd1351_128x128gh_332_sw_spi;
extern u8g_dev_t u8g_dev_ssd1351_128x128gh_332_hw_spi;
extern u8g_dev_t u8g_dev_ssd1351_128x128gh_4x_332_sw_spi;
extern u8g_dev_t u8g_dev_ssd1351_128x128gh_4x_332_hw_spi;
extern u8g_dev_t u8g_dev_ssd1351_128x128gh_hicolor_sw_spi;
extern u8g_dev_t u8g_dev_ssd1351_128x128gh_hicolor_hw_spi;
extern u8g_dev_t u8g_dev_ssd1351_128x128gh_4x_hicolor_sw_spi;
extern u8g_dev_t u8g_dev_ssd1351_128x128gh_4x_hicolor_hw_spi;

/* HT1632 */
extern u8g_dev_t u8g_dev_ht1632_24x16;

Expand Down
Loading

0 comments on commit dc9bbbf

Please sign in to comment.