arollo123 / u8glib

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

add another sh1106 device #322

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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 8 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

GoogleCodeExporter commented 8 years ago
Hello, this seems to work, even with its faults (wrong pixel position on X axis)
U8GLIB_SH1106_128X64 u8g(4, 5, 6, 7);

Original comment by raffaele...@gmail.com on 15 Jul 2015 at 8:27

GoogleCodeExporter commented 8 years ago
please repost to the github project issue tracker, also please add more details 
(screenshot)

Original comment by olikr...@gmail.com on 15 Jul 2015 at 11:57