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 ST7567 LW12832 #2217

Merged
merged 1 commit into from
Jul 9, 2023
Merged

Support for ST7567 LW12832 #2217

merged 1 commit into from
Jul 9, 2023

Conversation

shezik
Copy link
Contributor

@shezik shezik commented Jul 6, 2023

Hi olikraus,

This display has a few interesting traits. It's generally consistent with ST7567 JLX12864, but its physical resolution is padded from 128x32 to 142x36 with weird behaving margins. Since the bits representing the margins are outside display area, there's no way to overwrite them, and they become random garbage data whenever the controller (consequently the DDRAM) is power cycled.

The newly added static void st7567_lw12832_clear_ddram(u8x8_t *u8x8) function is to address this issue by setting DDRAM to all zero while ignoring u8x8->x_offset, thus clearing everything including the margin bits.

Code is tested using U8G2_ST7567_LW12832_F_4W_SW_SPI and it works fine. Changelog and examples haven't been updated yet.

@olikraus
Copy link
Owner

olikraus commented Jul 9, 2023

Thanks for your contribution, I will merge the pr.

@olikraus olikraus added this to the 2.35 milestone Jul 9, 2023
@olikraus olikraus merged commit 73667a3 into olikraus:master Jul 9, 2023
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

Successfully merging this pull request may close these issues.

2 participants