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

Support for 0.42" OLED 72x40 #115

Open
HilmarSt opened this issue Oct 31, 2023 · 0 comments
Open

Support for 0.42" OLED 72x40 #115

HilmarSt opened this issue Oct 31, 2023 · 0 comments

Comments

@HilmarSt
Copy link

HilmarSt commented Oct 31, 2023

...fitted on an ESP32 board: ESP32-C3-0.42LCD

Thank you for this great library, have fun :-)

static const uint8_t MEM_TYPE oled_72x40init[] = {
    SSD1306_DISPLAYOFF,
    SSD1306_SETDISPLAYCLOCKDIV, 0x80,
    SSD1306_SETMULTIPLEX, 0x27,
    SSD1306_SETDISPLAYOFFSET, 0x0,
    SSD1306_CHARGEPUMP, 0x14,
    0xAD /*IREF Setting*/, 0x30,
    SSD1306_SETSTARTLINE,
    SSD1306_NORMALDISPLAY,
    SSD1306_DISPLAYALLON_RESUME,
    SSD1306_SEGREMAP | 0x1,
    SSD1306_COMSCANDEC,
    SSD1306_SETCOMPINS, 0x12,
    SSD1306_SETCONTRAST, 0x7F,
    SSD1306_SETPRECHARGE, 0x22,
    SSD1306_SETVCOMDETECT, 0x20,
    SSD1306_DISPLAYON
};
static const DevType MEM_TYPE oled_72x40 = {
  oled_72x40init,
  sizeof(oled_72x40init),
  72,
  40,
  28 // Column offset RAM to display.
};
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