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

60x32 0.32 inch OLED - SSD1315 #2517

Open
rac146 opened this issue Oct 1, 2024 · 0 comments
Open

60x32 0.32 inch OLED - SSD1315 #2517

rac146 opened this issue Oct 1, 2024 · 0 comments

Comments

@rac146
Copy link

rac146 commented Oct 1, 2024

I've been working with a newer 0.32-inch OLED display from EastRising, trying to get it working in U8G2:
https://www.buydisplay.com/i2c-white-0-32-inch-oled-display-panel-60x32-pixels

I got pretty close, but I'm noticing missing random pixels when trying to write to the display. Does anyone know why this may be occurring?

I used their sample program for the init commands (similar to the 72x40 OLED):

  U8X8_C(0x0ae),

  U8X8_CA(0x0d5, 0x080),
  U8X8_CA(0x0a8, 0x01f),
  U8X8_CA(0x0d3, 0x000),
  U8X8_C(0x000),
  U8X8_CA(0x0ad, 0x030),
  U8X8_CA(0x08d, 0x014),
  U8X8_C(0x0a1),
  U8X8_C(0x0c8),
  U8X8_CA(0x0da, 0x012),
  U8X8_CA(0x081, 0x0fa),
  U8X8_CA(0x0d9, 0x0f1),
  U8X8_CA(0x0db, 0x040),

  U8X8_C(0x02e),
  U8X8_C(0x0a4)

And used mostly the same display info props as the 72x40, but a 32-pixel offset:

  /* chip_enable_level = */ 0,
  /* chip_disable_level = */ 1,
  
  /* post_chip_enable_wait_ns = */ 20,
  /* pre_chip_disable_wait_ns = */ 10,
  /* reset_pulse_width_ms = */ 100, 	/* SSD1306: 3 us */
  /* post_reset_wait_ms = */ 100, /* far east OLEDs need much longer setup time */
  /* sda_setup_time_ns = */ 50,		/* SSD1306: 15ns, but cycle time is 100ns, so use 100/2 */
  /* sck_pulse_width_ns = */ 50,	/* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */
  /* sck_clock_hz = */ 8000000UL,	/* since Arduino 1.6.0, the SPI bus speed in Hz. Should be  1000000000/sck_pulse_width_ns, increased to 8MHz (issue 215) */
  /* spi_mode = */ 0,		/* active high, rising edge */
  /* i2c_bus_clock_100kHz = */ 4,
  /* data_setup_time_ns = */ 40,
  /* write_pulse_width_ns = */ 150,	/* SSD1306: cycle time is 300ns, so use 300/2 = 150 */
  /* tile_width = */ 8,
  /* tile_height = */ 4,
  /* default_x_offset = */ 32,
  /* flipmode_x_offset = */ 32,
  /* pixel_width = */ 60,
  /* pixel_height = */ 32

Will definitely PR this new driver once it's working, but any help would be appreciated!

Different random missing pixels each time I display something - in this case, this should be a white square:
image

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