Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add brightness level API to OLED driver #10772

Merged
merged 2 commits into from
Oct 29, 2020
Merged

Conversation

fauxpark
Copy link
Member

@fauxpark fauxpark commented Oct 26, 2020

Description

🔅 🔆

The SSD1306 datasheet calls this "contrast", probably a holdover from LCDs, but since OLEDs emit light, it is actually brightness.

The VCOM deselect level was changed from 0x40 to 0x20 in order to get what seems (to me) to be a larger brightness range - at 0x40 the OLED is quite bright but at brightness level 0, the display only dims a little bit. Likewise, when set to 0x00, the maximum brightness is noticeably dimmer, but the minimum is much dimmer. 0x20 appears to be the sweet spot from my 5 seconds of experimentation (I also note that this is the value upon reset). Maybe there is some way to dynamically change the VCOM deselect along with the brightness level...

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@drashna drashna requested a review from a team October 26, 2020 21:21
@tzarc tzarc requested a review from a team October 26, 2020 21:25
@drashna drashna merged commit 5cecc1e into qmk:master Oct 29, 2020
@fauxpark fauxpark deleted the oled-brightness branch October 29, 2020 07:16
oscarcarlsson pushed a commit to oscarcarlsson/qmk_firmware that referenced this pull request Nov 2, 2020
* Add brightness level API to OLED driver

* Set default brightness to 255
ringmaster pushed a commit to ringmaster/qmk_firmware that referenced this pull request Nov 5, 2020
* Add brightness level API to OLED driver

* Set default brightness to 255
tacahiroy pushed a commit to tacahiroy/qmk_firmware that referenced this pull request Nov 8, 2020
* Add brightness level API to OLED driver

* Set default brightness to 255
nicsuzor added a commit to nicsuzor/qmk_firmware that referenced this pull request Nov 14, 2020
* upstream/master: (636 commits)
  [Keyboard] Adding info.json files for NIBBLE 65% keyboard (qmk#10769)
  [Keymap] Add KiCad keymap for ANAVI Macro Pad 8 (qmk#10766)
  [Keymap] add an autoclicker to my plaid keymap (qmk#10743)
  Roadster Edit (qmk#10784)
  [Keyboard] Redox via support added (qmk#10710)
  [Keyboard] Adding Little Alby the Arduino Keyboard (qmk#10713)
  Add brightness level API to OLED driver (qmk#10772)
  [Keyboard] Add via keymap to E6.5 (qmk#10771)
  [Keyboard] Add via keymap for percent booster (qmk#10768)
  xelus/kangaroo: fix info.json layout macro reference (qmk#10765)
  [Keyboard] Added polilla keyboard (squashed) (qmk#10686)
  docs(massdrop alt/ctrl): update link to loader releases (qmk#10781)
  [Keyboard] KBDfans Bella Soldered tidy-up (qmk#10753)
  [Keyboard] Add Via support for TG4x (qmk#10571)
  GEN ONE Eclipse_65 keyboard addition (qmk#10669)
  VN66 refactor (qmk#10776)
  Stella refactor (qmk#10775)
  [Keymap] greatwizard userspace and ortho 4x12 and 5x12 keymaps (qmk#9584)
  add rsync to the api update process
  [Keyboard] Add Projectkb/alice/rev2 LAYOUT_alice support (qmk#10697)
  ...
drashna pushed a commit to zsa/qmk_firmware that referenced this pull request Nov 24, 2020
* Add brightness level API to OLED driver

* Set default brightness to 255
drashna pushed a commit to zsa/qmk_firmware that referenced this pull request Jan 13, 2021
* Add brightness level API to OLED driver

* Set default brightness to 255
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
* Add brightness level API to OLED driver

* Set default brightness to 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants