LPH7690 ? (96x65?) SED1565/S1D15605 Nokia 7110 / 3510? LPH7690 ??? Nokia 6210 */ #include "u8g.h" #define WIDTH 96 #define HEIGHT 65 #define PAGE_HEIGHT 8 static const uint8_t u8g_dev_pcf8812_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 */ 0x021, /* activate chip (PD=0), horizontal increment (V=0), enter extended command set (H=1) */ 0x006, /* temp. control: b10 = 2 */ 0x013, /* bias system 1:48 */ 0x080 | 0x040, /* medium Vop */ 0x020, /* activate chip (PD=0), horizontal increment (V=0), enter normal command set (H=0) */ 0x00c, /* display on, normal operation */ U8G_ESC_DLY(100), /* delay 100 ms */ 0x020, /* activate chip (PD=0), horizontal increment (V=0), enter normal command set (H=0) */ 0x00d, /* display on, invert */ U8G_ESC_DLY(100), /* delay 100 ms */ U8G_ESC_DLY(100), /* delay 100 ms */ 0x020, /* activate chip (PD=0), horizontal increment (V=0), enter normal command set (H=0) */
23 Feb 2013: Fixed, Issue 147 */ #include "u8g.h" #define WIDTH 128 #define HEIGHT 32 #define PAGE_HEIGHT 8 /* init sequence adafruit 128x32 OLED (NOT TESTED) */ static const uint8_t u8g_dev_ssd1306_128x32_adafruit1_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 */ 0x08d, 0x010, /* [1] charge pump setting (p62): 0x014 enable, 0x010 disable */ 0x020, 0x000, /* */
0x0b8 | x write to page [0..7] u8g_Init8Bit(u8g, dev, d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, cs2, di, rw, reset) u8g_Init8Bit(u8g, dev, 8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16, U8G_PIN_NONE) */ #include "u8g.h" #define WIDTH 128 #define HEIGHT 64 #define PAGE_HEIGHT 8 static const uint8_t u8g_dev_ks0108_128x64_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 1 */ 0x03f, /* display on */ 0x0c0, /* start at line 0 */ U8G_ESC_DLY(20), /* delay 20 ms */ U8G_ESC_CS(2), /* enable chip 2 */ 0x03f, /* display on */ 0x0c0, /* start at line 0 */ U8G_ESC_DLY(20), /* delay 20 ms */ U8G_ESC_CS(0), /* disable all chips */ U8G_ESC_END /* end of sequence */ };
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "u8g.h" #define WIDTH 240 #define HEIGHT 64 #define PAGE_HEIGHT 8 /* see also ERC24064-1 for init sequence example */ static const uint8_t u8g_dev_uc1608_240x64_init_seq[] PROGMEM = { U8G_ESC_CS(1), /* disable chip (UC1608 has positive logic for CS) */ U8G_ESC_ADR(0), /* instruction mode */ U8G_ESC_RST(1), /* do reset low pulse with (15*16)+2 milliseconds */ U8G_ESC_CS(0), /* enable chip */ 0x0e2, /* soft reset */ U8G_ESC_DLY(100), /* delay 100 ms */ U8G_ESC_DLY(100), /* delay 100 ms */ #if HEIGHT <= 96 0x023, /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ #else /* 30 Nov 2013: not tested */ 0x027, /* Bit 0/1: Temp compenstation, Bit 2: Multiplex Rate 0=96, 1=128 */ #endif