Skip to content

Commit

Permalink
backlight: split AVR PWM and timer drivers (qmk#21540)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and akeep committed Oct 2, 2023
1 parent 5921780 commit 4026f13
Show file tree
Hide file tree
Showing 43 changed files with 555 additions and 302 deletions.
346 changes: 216 additions & 130 deletions docs/feature_backlight.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions keyboards/40percentclub/4pack/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"device_version": "0.0.1"
},
"backlight": {
"driver": "timer",
"pins": ["F6", "F7"]
},
"processor": "atmega32u4",
Expand Down
1 change: 1 addition & 0 deletions keyboards/40percentclub/sixpack/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"device_version": "10.0.1"
},
"backlight": {
"driver": "timer",
"pins": ["F4", "F5"],
"levels": 6,
"breathing": true
Expand Down
1 change: 1 addition & 0 deletions keyboards/8pack/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"pid": "0x2171"
},
"backlight": {
"driver": "timer",
"pins": ["D1", "D0", "D4", "C6", "D7", "E6", "B4", "B5"],
"levels": 8
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/ai03/equinox/rev0/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D1",
"levels": 5,
"breathing": true
Expand Down
1 change: 1 addition & 0 deletions keyboards/amjkeyboard/amj66/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D4",
"breathing": true
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/anavi/macropad8/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"device_version": "0.0.1"
},
"backlight": {
"driver": "timer",
"pin": "D7",
"breathing": true
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/bear_face/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F7"
},
"processor": "atmega32u4",
Expand Down
1 change: 1 addition & 0 deletions keyboards/cablecardesigns/cypher/rev6/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D0",
"levels": 5,
"breathing": true
Expand Down
1 change: 1 addition & 0 deletions keyboards/cest73/tkm/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "E6"
},
"indicators": {
Expand Down
1 change: 1 addition & 0 deletions keyboards/checkerboards/nop60/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D1",
"levels": 6,
"breathing": true
Expand Down
1 change: 1 addition & 0 deletions keyboards/checkerboards/quark_plus/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
]
},
"backlight": {
"driver": "timer",
"pin": "C4",
"levels": 6,
"breathing": true
Expand Down
1 change: 1 addition & 0 deletions keyboards/checkerboards/snop60/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
]
},
"backlight": {
"driver": "timer",
"pin": "D1",
"levels": 6,
"breathing": true
Expand Down
1 change: 1 addition & 0 deletions keyboards/efreet/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D0",
"breathing": true
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/gray_studio/cod67/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D4",
"on_state": 0
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/handwired/bdn9_ble/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"device_version": "1.0.0"
},
"backlight": {
"driver": "timer",
"pin": "F6",
"levels": 5
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/kc60se/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F5",
"levels": 6
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/keebio/iris/rev1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D2",
"levels": 5
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/kopibeng/xt65/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "B1",
"levels": 5
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/kprepublic/cospad/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F7",
"on_state": 0
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/ktec/daisy/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D0",
"levels": 6
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/ktec/staryu/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"device_version": "2.0.5"
},
"backlight": {
"driver": "timer",
"pins": ["C2", "C7", "D5", "D6", "B0"],
"levels": 10
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/maple_computing/christmas_tree/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D2"
},
"processor": "atmega32u4",
Expand Down
1 change: 1 addition & 0 deletions keyboards/maple_computing/ivy/rev1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D2"
},
"processor": "atmega32u4",
Expand Down
1 change: 1 addition & 0 deletions keyboards/maple_computing/jnao/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D0"
},
"processor": "atmega32u4",
Expand Down
1 change: 0 additions & 1 deletion keyboards/melgeek/mj6xy/rev3/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "software",
"pin": "B7",
"levels": 10
},
Expand Down
2 changes: 1 addition & 1 deletion keyboards/mntre/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#pragma once

#define BACKLIGHT_CUSTOM_RESOLUTION 0x400
#define BACKLIGHT_RESOLUTION 0x400

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
Expand Down
1 change: 1 addition & 0 deletions keyboards/mt/mt40/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D2"
},
"rgblight": {
Expand Down
4 changes: 2 additions & 2 deletions keyboards/nopunin10did/jabberwocky/v2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "software",
"pins": ["D6"],
"driver": "timer",
"pin": "D6",
"levels": 6
},
"indicators": {
Expand Down
1 change: 1 addition & 0 deletions keyboards/org60/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F5",
"levels": 6
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/playkbtw/ca66/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F0"
},
"rgblight": {
Expand Down
1 change: 1 addition & 0 deletions keyboards/sandwich/keeb68/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "C7",
"levels": 5,
"breathing": true
Expand Down
1 change: 1 addition & 0 deletions keyboards/tkc/osav2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D6",
"breathing": true
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/v60_type_r/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F7",
"on_state": 0
},
Expand Down
1 change: 1 addition & 0 deletions keyboards/viktus/osav2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"pin": "D4"
},
"backlight": {
"driver": "timer",
"levels": 6,
"max_brightness": 191,
"pin": "D6"
Expand Down
1 change: 1 addition & 0 deletions keyboards/westfoxtrot/cypher/rev5/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D0",
"levels": 5,
"breathing": true
Expand Down
1 change: 1 addition & 0 deletions keyboards/xiudi/xd60/rev2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F5",
"levels": 6,
"on_state": 0
Expand Down
1 change: 1 addition & 0 deletions keyboards/xiudi/xd60/rev3/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F5",
"levels": 6,
"on_state": 0
Expand Down
1 change: 1 addition & 0 deletions keyboards/xiudi/xd68/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F5",
"levels": 6,
"breathing": true,
Expand Down
1 change: 1 addition & 0 deletions keyboards/xiudi/xd84pro/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "F5",
"levels": 10,
"on_state": 0
Expand Down
1 change: 1 addition & 0 deletions keyboards/xiudi/xd87/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"diode_direction": "COL2ROW",
"backlight": {
"driver": "timer",
"pin": "D0",
"on_state": 0
},
Expand Down
Loading

0 comments on commit 4026f13

Please sign in to comment.