88kacper8 / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

UC1608_240X128 #300

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

implemented, but documentation is missing

============================
Hi!

I've bought a 240x128 pixel LCD from TME Electronics:

http://www.tme.eu/en/details/rx240128a-ghw/lcd-graphic-displays/raystar-optronic
s/

I've modded the existing UC1608 library to drive this.

The source is attached to this e-mail. (I didn't wanted to create a clone only 
for this reason).
Also added to u8g.h

Thanks for Your excellent graphics library!

Peter from Budapest, Hungary
============================

/* UC1608 240x128 */
extern u8g_dev_t u8g_dev_uc1608_240x128_sw_spi;
extern u8g_dev_t u8g_dev_uc1608_240x128_hw_spi;

extern u8g_dev_t u8g_dev_uc1608_240x128_2x_sw_spi;
extern u8g_dev_t u8g_dev_uc1608_240x128_2x_hw_spi;

class U8GLIB_UC1608_240X128 : public U8GLIB 
{
  public:
    U8GLIB_UC1608_240X128(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE) 
      : U8GLIB(&u8g_dev_uc1608_240x128_sw_spi, sck, mosi, cs, a0, reset)
      { }
    U8GLIB_UC1608_240X128(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE) 
      : U8GLIB(&u8g_dev_uc1608_240x128_hw_spi, cs, a0, reset)
      { }
};

class U8GLIB_UC1608_240X128_2X : public U8GLIB 
{
  public:
    U8GLIB_UC1608_240X128_2X(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE) 
      : U8GLIB(&u8g_dev_uc1608_240x128_2x_sw_spi, sck, mosi, cs, a0, reset)
      { }
    U8GLIB_UC1608_240X128_2X(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE) 
      : U8GLIB(&u8g_dev_uc1608_240x128_2x_hw_spi, cs, a0, reset)
      { }
};

Original issue reported on code.google.com by olikr...@gmail.com on 30 Nov 2014 at 10:52

GoogleCodeExporter commented 8 years ago
added and documented

Original comment by olikr...@gmail.com on 21 Dec 2014 at 5:10