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

ST7920 has artifacts on ESP32-S3 #2552

Open
gaznoziy opened this issue Dec 13, 2024 · 0 comments
Open

ST7920 has artifacts on ESP32-S3 #2552

gaznoziy opened this issue Dec 13, 2024 · 0 comments

Comments

@gaznoziy
Copy link

gaznoziy commented Dec 13, 2024

Lib version: 2.35.30

I'm using ESP32-S3-Pico dev board from Waveshare and trying to connect ST7920 via default HW SPI.
Default SPI pins defined for this board are:

static const uint8_t SS = 10;
static const uint8_t MOSI = 11;
static const uint8_t MISO = 13;
static const uint8_t SCK = 12;

Using this constructor U8G2_ST7920_128X64_F_HW_SPI u8g2(U8G2_R0, 10); leads to appearing artifacts on the LCD. After some tries to make it work I've figured out that manually setting u8g2->setBusClock(800000); resolves an issue. Clocks that are higher than 800000 hz are breaking display.

Previously I've used the same LCD with NodeMcu ESP8266 and with this constructor U8G2_ST7920_128X64_F_HW_SPI u8g2(U8G2_R0, D8); everything worked fine without setting bus clock. Just made some tests with ESP8266 again and it seems that artifacts appear on clocks set more that 1.1MHz.

I'm fine with using it at 800000 hz, but just curious why can this happen on ESP32?

Also hope this helps someone struggling with the same issue.

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