Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Heltec: OLED doesn't work #158

Open
0x53A opened this issue Nov 28, 2023 · 0 comments
Open

Heltec: OLED doesn't work #158

0x53A opened this issue Nov 28, 2023 · 0 comments

Comments

@0x53A
Copy link

0x53A commented Nov 28, 2023

I have a Heltec WiFi LoRa 32 (V3) board, which isn't yet supported by this repository, but it's very similar and I just had to switch a few pins.

When trying to talk to the display, I had a few issues:

  1. The display gets completely reset (back to black) at the end of heltec_hello_world(which means you can't see anything).
    I believe this is because the PinDriver has a Drop implementation that resets the pin - so the RST gets set back to zero, clearing the display. I'm not sure what the best solution is, maybe pulling the driver out to main so it survives longer.

  2. After solving that, I had a completely white display instead of the expected text "Hello Rust". This is because in led_draw_customit draws a rectangle with fill=On, so the whole display is already On, and the text writing doesn't show. Two possible solutions are either setting fill=Off or foreground=off, so there's contrast between text and rectangle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant