Add SSD1333 (176×176) OLED display support + finer low-end brightness control#452
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for the SSD1333 176×176 RGB OLED display controller as a new display option, and refines low-end brightness control for both the SSD1333 and the existing SSD1351.
What's in here
New
PiFinder/ssd1333_device.py— aluma.oleddriver for the Solomon Systech SSD1333 (176×176, 16-bit 5-6-5 color), subclassingluma.oled.device.color_device. Notable differences from the SSD1351 are documented inline (176×176 resolution, MUX ratio 175, no GPIO/Function-Select/2nd-unlock commands, built-in linear LUT). Exposescontrast()(per-channel, 0xC1) andmaster_brightness()(global current control, 0xC7).PiFinder/displays.pyDisplaySSD1333display class (SPI, 176×176, BGR), wired intoget_display()under the"ssd1333"hardware key.set_brightness()for both SSD1351 and SSD1333 to combine master brightness (0xC7) with per-channel contrast (0xC1) for a wider dimming range:The change is additive — existing displays (SSD1351, ST7789) are unaffected aside from the SSD1351 brightness curve improvement.