Skip to content

Add optional character OLED support#2

Open
EETEngineer wants to merge 3 commits into
markub3327:masterfrom
EETEngineer:OLED-Reset
Open

Add optional character OLED support#2
EETEngineer wants to merge 3 commits into
markub3327:masterfrom
EETEngineer:OLED-Reset

Conversation

@EETEngineer

Copy link
Copy Markdown

Some HDD44780-style character OLEDs need longer initialization timings upon a system reset.

Certain modules will display garbage characters or swap character lines due to the memory not clearing or initialization glitches.

This change adds in enableOledMode for compatibility.

enableOledMode(bool enable, bool hardClearOnInit)

When enabled the library:

  • Adds in an additional delay during initialization
  • increases clear and home timings
  • has an optional full display memory write on startup

This mode is disabled by default and doesn't affect regular LCD behavior

This has been tested with:

  • Arduino Nano
  • NewHaven display: NHD-0420DZW-AG5 20x4 OLED
  • PCF8574 I2C Backpack
  • A second 20X4 Character LCD with PCF8574 I2C backpack running simultaneously

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