atomic14 / atomic14/esp32-c3-oled-single-button-games

ESP32-C3 with SH1106 OLED

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
9
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Hi,

I got myself one of those ESP32-C3 too, and tried your code. As aparently my display was different form yours, it had a shift of the display, few pixel lines down, and 1 or 2 to the left.

Changed the code a bit:

U8G2_SH1106_72X40_WISE_F_HW_I2C u8g2(U8G2_R0,U8X8_PIN_NONE,6,5);

(and outcommented the Public class and the other U8g2 definition. Now it displays correctly on the SH1106 display too!

CHeers,
Love the code, even if it is Vibe coded.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the current U8g2 display definition and the commented-out Public class in the Arduino code. Compare the existing SSD1306 setup with the suggested U8G2_SH1106_72X40_WISE_F_HW_I2C constructor, then test the display alignment on both supported display variants. Done means the SH1106 output is aligned without breaking the existing SSD1306 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.