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

Refactor more backlight to a common location #8292

Merged
merged 3 commits into from
Mar 6, 2020

Conversation

zvecr
Copy link
Member

@zvecr zvecr commented Mar 2, 2020

Description

To make something like #8291 not introduce a 3rd duplicate copy of some backlight functionality, this PR aims to move more backlight logic to a common location.

Types of Changes

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

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 requested a review from a team March 2, 2020 07:48
@tzarc tzarc requested a review from a team March 3, 2020 03:54
@drashna drashna self-requested a review March 4, 2020 09:33
@drashna
Copy link
Member

drashna commented Mar 4, 2020

Looks like this breaks clueboard/66/rev4. From travis:

Making clueboard/66/rev4 with keymap default                                                           [ERRORS]
quantum/backlight/backlight.c:44:36: error: 'BACKLIGHT_PIN' undeclared here (not in a function)
 static const pin_t backlight_pin = BACKLIGHT_PIN;
                                    ^~~~~~~~~~~~~
 | 
 | 
 | 
make[1]: *** [tmk_core/rules.mk:377: .build/obj_clueboard_66_rev4_default/quantum/backlight/backlight.o] Error 1

@zvecr zvecr force-pushed the feature/more_backlight_common branch from 28cb2c4 to 6e341cc Compare March 6, 2020 12:15
@zvecr zvecr merged commit 918a85d into qmk:master Mar 6, 2020
c0psrul3 pushed a commit to c0psrul3/qmk_firmware that referenced this pull request Mar 23, 2020
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
sowbug pushed a commit to sowbug/qmk_firmware that referenced this pull request Apr 2, 2020
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
HokieGeek pushed a commit to HokieGeek/qmk_firmware that referenced this pull request Apr 10, 2020
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
kylekuj pushed a commit to kylekuj/qmk_firmware that referenced this pull request Apr 21, 2020
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
@zvecr zvecr deleted the feature/more_backlight_common branch April 28, 2020 01:13
drashna pushed a commit to zsa/qmk_firmware that referenced this pull request May 24, 2020
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
drashna pushed a commit to zsa/qmk_firmware that referenced this pull request May 24, 2020
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
fdidron pushed a commit to zsa/qmk_firmware that referenced this pull request Jun 12, 2020
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
jakobaa pushed a commit to jakobaa/qmk_firmware that referenced this pull request Jul 7, 2020
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
jakeisnt pushed a commit to jakeisnt/qmk_firmware that referenced this pull request Aug 20, 2020
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
* Refactor more backlight to a common location

* BACKLIGHT_PIN not defined for custom backlight

* align function names
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.

5 participants