diff options
| author | fauxpark <fauxpark@gmail.com> | 2020-01-19 18:00:32 +1100 |
|---|---|---|
| committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2020-01-18 23:00:32 -0800 |
| commit | f5209aa4e941c7f3a942ef4a7e256ab432ec98ce (patch) | |
| tree | 29c2a0d197050ff2accb920731ddb1d022cb2a90 /keyboards/ymdk_np21/ymdk_np21.c | |
| parent | eb5d267e637db4c2c639932b8c8176bf47dff78f (diff) | |
| download | qmk_firmware-f5209aa4e941c7f3a942ef4a7e256ab432ec98ce.tar.gz qmk_firmware-f5209aa4e941c7f3a942ef4a7e256ab432ec98ce.zip | |
Remove custom backlight code for PS2AVRGB boards (#7775)
* Remove custom backlight code for PS2AVRGB boards
* Remove custom driver setting
* BACKLIGHT_BREATHING goes in config.h, not here
* Don't need to include backlight.c again here either
* Turn on backlight for Canoe
* Disable console on a few boards due to oversize
Diffstat (limited to 'keyboards/ymdk_np21/ymdk_np21.c')
| -rw-r--r-- | keyboards/ymdk_np21/ymdk_np21.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/keyboards/ymdk_np21/ymdk_np21.c b/keyboards/ymdk_np21/ymdk_np21.c index f2b3d46da..5bf159758 100644 --- a/keyboards/ymdk_np21/ymdk_np21.c +++ b/keyboards/ymdk_np21/ymdk_np21.c | |||
| @@ -18,20 +18,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 18 | 18 | ||
| 19 | #include "ymdk_np21.h" | 19 | #include "ymdk_np21.h" |
| 20 | 20 | ||
| 21 | #include "backlight.h" | 21 | void keyboard_pre_init_kb(void) { |
| 22 | #include "backlight_custom.h" | 22 | led_init_ports(); |
| 23 | 23 | keyboard_pre_init_user(); | |
| 24 | #ifdef BACKLIGHT_ENABLE | ||
| 25 | /// Overrides functions in `quantum.c` | ||
| 26 | void backlight_init_ports(void) { | ||
| 27 | b_led_init_ports(); | ||
| 28 | } | 24 | } |
| 29 | 25 | ||
| 30 | void backlight_task(void) { | 26 | void led_init_ports(void) { |
| 31 | b_led_task(); | 27 | setPinOutput(D0); |
| 28 | writePinHigh(D0); | ||
| 32 | } | 29 | } |
| 33 | 30 | ||
| 34 | void backlight_set(uint8_t level) { | 31 | bool led_update_kb(led_t led_state) { |
| 35 | b_led_set(level); | 32 | if (led_update_user(led_state)) { |
| 33 | writePin(D0, !led_state.num_lock); | ||
| 34 | } | ||
| 35 | return true; | ||
| 36 | } | 36 | } |
| 37 | #endif | ||
