Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got issues with init for 128x32 #4

Open
dsimonet opened this issue May 22, 2019 · 0 comments
Open

Got issues with init for 128x32 #4

dsimonet opened this issue May 22, 2019 · 0 comments

Comments

@dsimonet
Copy link

I got issues with cheap 128x32 oled module.

solved with this init sequence :

uint8 cmdbuf[] = {
    0x00,
    SSD1306_DISPLAYOFF,                 //0xAE
    SSD1306_SETDISPLAYCLOCKDIV,         //0xD5
    0x80,
    SSD1306_SETMULTIPLEX,               //0xA8
    DISPLAYHEIGHT - 1,
    SSD1306_SETDISPLAYOFFSET,           //0xD3
    0x00,
    SSD1306_SETSTARTLINE | 0x00,         //0x40
    SSD1306_CHARGEPUMP,                 //0x8D
    0x14,
    SSD1306_MEMORYMODE,                 //0x20
    0x00,
    SSD1306_SEGREMAP | 0x1,             //0xA0
    SSD1306_COMSCANDEC,                 //0xC8
    SSD1306_SETCOMPINS,                 //0xDA
    0x02,
    SSD1306_SETCONTRAST,                //0x81
    0xcf,
    SSD1306_SETPRECHARGE,               //0xD9
    0xf1,
    SSD1306_SETVCOMDETECT,              //0xDB
    0x40,
    SSD1306_DISPLAYALLON_RESUME,        //0xA4
    SSD1306_NORMALDISPLAY,              //0xA6
    SSD1306_DISPLAYON,                   //OxAF
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant