olikraus / u8glib

Arduino Monochrom Graphics Library for LCDs and OLEDs
https://github.com/olikraus/u8glib/wiki
Other
1.25k stars 315 forks source link

UC1608_240X128 #299

Closed olikraus closed 9 years ago

olikraus commented 9 years ago

Originally reported on Google Code with ID 300


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-optronics/

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)
      { }
};

Reported by olikraus on 2014-11-30 22:52:56

olikraus commented 9 years ago
added and documented

Reported by olikraus on 2014-12-21 17:10:33