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

Fix AVR boards which were overriding backlight without setting… #8044

Merged
merged 4 commits into from
Jan 30, 2020

Conversation

zvecr
Copy link
Member

@zvecr zvecr commented Jan 30, 2020

Description

Another round of #7970, but this time for AVR.

Hangover from old AVR implementation within quantum.c, where you could use custom stuff without actually defining you were doing so. The reason you currently get away with it is the #ifdef BACKLIGHT_PIN wrapping quantum/backlight/backlight_avr.c

Types of Changes

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

Checklist

  • My code follows the code style of this project.
  • 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).

@zvecr zvecr added the keyboard label Jan 30, 2020
@zvecr zvecr requested a review from a team January 30, 2020 14:09
@zvecr zvecr force-pushed the feature/avr_backlight_driver branch from 819168f to 28e2303 Compare January 30, 2020 14:14
@zvecr zvecr mentioned this pull request Jan 30, 2020
17 tasks
keyboards/amj96/config.h Show resolved Hide resolved
NKRO_ENABLE ?= yes # USB Nkey Rollover
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality

This PCB seems to support backlight, no idea what the pin is though. I assume that's why you disabled it here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the code wasnt functional as there was no BACKLIGHT_PIN defined. Currently it would have just had an empty backlight_set function. Given I dont have the board, I figured it best to disable.

keyboards/lazydesigners/dimple/rules.mk Outdated Show resolved Hide resolved
keyboards/duck/octagon/v2/rules.mk Outdated Show resolved Hide resolved
keyboards/duck/octagon/v1/rules.mk Outdated Show resolved Hide resolved
keyboards/duck/lightsaver/rules.mk Outdated Show resolved Hide resolved
keyboards/duck/jetfire/rules.mk Outdated Show resolved Hide resolved
keyboards/duck/eagle_viper/v2/rules.mk Outdated Show resolved Hide resolved
keyboards/clueboard/card/rules.mk Outdated Show resolved Hide resolved
keyboards/duck/orion/v3/rules.mk Outdated Show resolved Hide resolved
@zvecr zvecr force-pushed the feature/avr_backlight_driver branch from 7b13f60 to 9d0b4f3 Compare January 30, 2020 23:13
@zvecr zvecr requested review from fauxpark and a team January 30, 2020 23:35
Copy link
Contributor

@Duckle29 Duckle29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fauxpark fauxpark changed the title Fix AVR boards which were overriding backlight without setting custom driver Fix AVR boards which were overriding backlight without setting… Jan 30, 2020
@fauxpark fauxpark merged commit 4139de3 into qmk:master Jan 30, 2020
HokieGeek pushed a commit to HokieGeek/qmk_firmware that referenced this pull request Feb 21, 2020
…8044)

* Add backlight custom driver to all boards not declaring it but overriding backlight

* Apply suggestions from code review

Co-Authored-By: fauxpark <[email protected]>

* Apply suggestions from code review

Co-Authored-By: fauxpark <[email protected]>

* Remove old tmk references from show_options.mk

Co-authored-by: fauxpark <[email protected]>
@zvecr zvecr mentioned this pull request Mar 12, 2020
13 tasks
c0psrul3 pushed a commit to c0psrul3/qmk_firmware that referenced this pull request Mar 23, 2020
…8044)

* Add backlight custom driver to all boards not declaring it but overriding backlight

* Apply suggestions from code review

Co-Authored-By: fauxpark <[email protected]>

* Apply suggestions from code review

Co-Authored-By: fauxpark <[email protected]>

* Remove old tmk references from show_options.mk

Co-authored-by: fauxpark <[email protected]>
kylekuj pushed a commit to kylekuj/qmk_firmware that referenced this pull request Apr 21, 2020
…8044)

* Add backlight custom driver to all boards not declaring it but overriding backlight

* Apply suggestions from code review

Co-Authored-By: fauxpark <[email protected]>

* Apply suggestions from code review

Co-Authored-By: fauxpark <[email protected]>

* Remove old tmk references from show_options.mk

Co-authored-by: fauxpark <[email protected]>
@zvecr zvecr deleted the feature/avr_backlight_driver branch April 28, 2020 01:08
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
…8044)

* Add backlight custom driver to all boards not declaring it but overriding backlight

* Apply suggestions from code review

Co-Authored-By: fauxpark <[email protected]>

* Apply suggestions from code review

Co-Authored-By: fauxpark <[email protected]>

* Remove old tmk references from show_options.mk

Co-authored-by: fauxpark <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants