Welcome! Log In Create A New Profile

Advanced

DIY Tiny OLED I2C full graphics controller

Posted by enif 
Re: DIY Tiny OLED I2C full graphics controller
July 30, 2020 03:02PM
Thank you, it worked
Re: DIY Tiny OLED I2C full graphics controller
August 10, 2020 03:44PM
Quote
enif
@ Johetan:

When trying to make my Tiny OLED work under Marlin 2.0.5.3 with the BigTreeTech BTT SKR V1.4, I ran into the same problem as you with that shifted display. I also tried all kind of remedies, such as the ones you tried as well, but with no success...

Finally I looking at the file Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_ssd_hw_i2c.cp, I saw that there were some commented out statements, which looked as if the developer left them in, not being sure that they should really be removed... So I decommented them, recompiled and uploaded. It's now already a few hours running - and so far no shift in the OLED display :-)

Here are the changes I made in Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_ssd_hw_i2c.cp,:
85,86c85,86
< //#define I2C_CMD_MODE  0x080
< #define I2C_CMD_MODE    0x000
---
> #define I2C_CMD_MODE  0x080
> //#define I2C_CMD_MODE    0x000
137c137
<       //u8g->pin_list[U8G_PI_SET_A0] = 1;
---
>       u8g->pin_list[U8G_PI_SET_A0] = 1;
147c147
<       // u8g_i2c_stop();
---
>       u8g_i2c_stop();
151c151
<         //u8g->pin_list[U8G_PI_SET_A0] = 1;
---
>         u8g->pin_list[U8G_PI_SET_A0] = 1;
166c166
<       // u8g_i2c_stop();
---
>       u8g_i2c_stop();
170c170
<         //u8g->pin_list[U8G_PI_SET_A0] = 1;
---
>         u8g->pin_list[U8G_PI_SET_A0] = 1;
184c184
<       // u8g_i2c_stop();
---
>       u8g_i2c_stop();

Let's see if this really solves the problem for good...

I'm using an SSD1306 based OLED on an SKR 1.4 Turbo.. unfortunately, I get the line shifting too, and making these changes doesn't make any difference. Has anyone found a fix yet?

Edit: I found this: [www.reddit.com]
Not really a solution, but it explains why it happens, at least..

Edited 1 time(s). Last edit at 08/10/2020 04:06PM by Arakon.
Re: DIY Tiny OLED I2C full graphics controller
August 11, 2020 12:27PM
Well, here's mine. I *think* I managed to fix it by adding a 4.7kohm resistor to both SDA and SCL to VCC.. at least, the issue has not returned since.


Edit: Nope.. once the steppers run, it slips again.

Edited 1 time(s). Last edit at 08/11/2020 01:24PM by Arakon.
Sorry, only registered users may post in this forum.

Click here to login