deadbringer17 / u8glib

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

add another sh1106 device #322

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

http://www.ebay.com/itm/141546908319?_trksid=p2059210.m2749.l2649&ssPageName=STR
K%3AMEBIDX%3AIT

U8GLIB_SH1106_128X64 u8g(13, 11, 10, 9, 8);

Original issue reported on code.google.com by olikr...@gmail.com on 14 Feb 2015 at 10:26

GoogleCodeExporter commented 9 years ago

I can't look it up because their website is down. I can t
www.icstation.com. Model: ICSC003A
maybe: U8GLIB_ICS_SH1106_128x64

Here's the modified part of u8g_dev_ssd1306_128x64.c from line 112:

static const uint8_t u8g_dev_ssd1306_128x64_adafruit3_init_seq[] PROGMEM = {
  U8G_ESC_CS(0),             /* disable chip */
  U8G_ESC_ADR(0),           /* instruction mode */
  U8G_ESC_RST(1),           /* do reset low pulse with (1*16)+2 milliseconds */
  U8G_ESC_CS(1),             /* enable chip */

  0x0ae,    /* display off, sleep mode */
  0x0d5, 0x080, /* clock divide ratio (0x00=1) and oscillator frequency (0x8) */
  0x0a8, 0x03f, /* */

  0x0d3, 0x000, /*  */

  0x040,    /* start line */

  0x08b, 0x014, /* [2] charge pump setting (p62): 0x014 enable, 0x010 disable */

  0x020, 0x002, /* 2012-05-27: page addressing mode */
  0x0a1,    /* segment remap a0/a1*/
  0x0c8,    /* c0: scan dir normal, c8: reverse */
  0x0da, 0x012, /* com pin HW config, sequential com pin config (bit 4), disable left/right remap (bit 5) */
  0x081, 0x066, /* [2] set contrast control 0x0cf*/
  0x0d9, 0x00F, /* [2] pre-charge period 0x022/f1*/
  0x0db, 0x040, /* vcomh deselect level */

  0x02e,    /* 2012-05-27: Deactivate scroll */ 
  0x0a4,    /* output ram to display */
  0x0a6,    /* none inverted normal display mode */
  0x0af,    /* display on */

  U8G_ESC_CS(0),             /* disable chip */
  U8G_ESC_END                /* end of sequence */
};

E-mail contact: Krisz

Original comment by olikr...@gmail.com on 14 Feb 2015 at 10:29