-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CH1120 OLED driver support #2496
Comments
It looks like that the CH1120 is a graylevel display, while SH1108 is a pure monochrome display. Did you compare the command table of both display? I think there are not so many similarities... Anyhow I will follow your apprach and create a copy of the SH1108 code... |
I tookover the init sequence from the display datasheet. It is very much different to the SH1108. I really wonder that anything was visible with the SH1108 constructor. I have created beta 2.35.25 with constructor U8G2_CH1120_128X160_1_4W_HW_SPI and friends Maybe you can test this new constructor. I assume still a lot of work is required. You can download the latest U8g2 beta release from here: https://github.com/olikraus/U8g2_Arduino/archive/master.zip
PlatformIO:
|
Somehow it looks like that no data is transfered.
|
I tested the code with two displays. The modules are absolutely the same except for the driver IC. The pinout of the modules is the same, so I'm just swapping the modules and flashing the new code to the Arduino Mega. The code is pretty basic, please find it here with comments
As the pinout of the modules is the same and the code works fine with the SH1108-based display, I assume, the connection is correct. |
Ok, i found a remark in the datasheet and fixed the code based on this. Can you test the new beta (2.35.26) again ? /
PlatformIO:
|
I tested the updated code. Unfortunately, there are no changes. |
I am running out of ideas. Where did you buy that display? |
I got it from TELEREX as a product sample. Suspecting the module is damaged, I ordered one more to check how it works. As soon as I have them received it, I will repeat the tests and let you know |
I started the display after the modifying the initial sequence and the adding the U8X8_MSG_DISPLAY_DRAW_TILE functionality. The max frequency of SPI for this controller is around 1MHz Again, there are some artifacts on the display
|
hmmm looks good..., however I am not sure how to help at the moment. |
I have encountered an issue with the newer CH1120 driver IC, which seems to be replacing the SH1108.
The OLED module looks absolutely the same, has the same pinout (SPI connection) and same resolution (128x160)
Despite their similarities, the CH1120 does not function correctly with the existing SH1108 code in the library.
I'm using STM32CubeIDE, the display module is connected through the SPI. The module based on SH1108 with the same setup works perfectly
I attempted to modify the existing code:
void u8g2_Setup_ch1120_128x160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb);
uint8_t u8x8_d_ch1120_128x160(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr);
Unfortunately, changes I made didn't lead to the working module, only displaying "the snow". But the display reacts for the setting the contrast, rotation and u8g2_SetPowerSave
Please find here the datasheet for the OLED driver IC and for the OLED display based on it
WEA160128BWPP3N00000.pdf
CH1120 V0.9.pdf
The text was updated successfully, but these errors were encountered: