Skip to content

Allow OLED orientation change#511

Open
ProfessorKa0Z wants to merge 2 commits intoDCC-EX:develfrom
ProfessorKa0Z:devel
Open

Allow OLED orientation change#511
ProfessorKa0Z wants to merge 2 commits intoDCC-EX:develfrom
ProfessorKa0Z:devel

Conversation

@ProfessorKa0Z
Copy link
Copy Markdown

@ProfessorKa0Z ProfessorKa0Z commented Mar 12, 2026

  1. The orientation of an OLED created in config.h can be changed by adding
    #define FLIP_OLED
    to config.h.

  2. Displays created by HAL can be changed by adding the optional parameter Orientation::flipped, e.g.:
    HALDisplay<OLED>::create(1, 0x3d, 132, 64, Orientation::flipped);

  3. Since the HALDisplay::create constructors are shared between OLED and LCD displays, an unused default orientation parameter was added to the LCD constructors in LiquidCrystal_I2c.

  4. config.example.h and myHal.cpp_example.txt illustrate use of the new options.

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.

1 participant