aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ymdk
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2020-01-19 18:00:32 +1100
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2020-01-18 23:00:32 -0800
commitf5209aa4e941c7f3a942ef4a7e256ab432ec98ce (patch)
tree29c2a0d197050ff2accb920731ddb1d022cb2a90 /keyboards/ymdk
parenteb5d267e637db4c2c639932b8c8176bf47dff78f (diff)
downloadfirmware-f5209aa4e941c7f3a942ef4a7e256ab432ec98ce.tar.gz
firmware-f5209aa4e941c7f3a942ef4a7e256ab432ec98ce.tar.bz2
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')
-rw-r--r--keyboards/ymdk/bface/bface.c27
-rw-r--r--keyboards/ymdk/bface/config.h2
-rw-r--r--keyboards/ymdk/bface/rules.mk3
3 files changed, 10 insertions, 22 deletions
diff --git a/keyboards/ymdk/bface/bface.c b/keyboards/ymdk/bface/bface.c
index 8622fd523..e2810409a 100644
--- a/keyboards/ymdk/bface/bface.c
+++ b/keyboards/ymdk/bface/bface.c
@@ -16,26 +16,19 @@
*/
#include "quantum.h"
+void keyboard_pre_init_kb(void) {
+ led_init_ports();
+ keyboard_pre_init_user();
+}
-void keyboard_pre_init_kb(void){
- //init the CAPS LOCK LED pin as an output
+void led_init_ports(void) {
setPinOutput(D1);
- //init the Backlight Pin as an output
- setPinOutput(D4);
- //call any user initialization code
- keyboard_pre_init_user();
+ writePinHigh(D1);
}
-void led_set_kb(uint8_t usb_led){
- //control the caps lock LED
- if(IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)){
- //set led pin to high
- writePinHigh(D1);
- } else {
- //set to low
- writePinLow(D1);
+bool led_update_kb(led_t led_state) {
+ if (led_update_user(led_state)) {
+ writePin(D1, !led_state.caps_lock);
}
- //call any user LED functions
- led_set_user(usb_led);
+ return true;
}
-
diff --git a/keyboards/ymdk/bface/config.h b/keyboards/ymdk/bface/config.h
index 2273b7e84..a8c8a2149 100644
--- a/keyboards/ymdk/bface/config.h
+++ b/keyboards/ymdk/bface/config.h
@@ -40,5 +40,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 6
-
-
diff --git a/keyboards/ymdk/bface/rules.mk b/keyboards/ymdk/bface/rules.mk
index f6f026cf3..6320071ab 100644
--- a/keyboards/ymdk/bface/rules.mk
+++ b/keyboards/ymdk/bface/rules.mk
@@ -18,9 +18,6 @@ EXTRAKEY_ENABLE = yes
CONSOLE_ENABLE = no
COMMAND_ENABLE = yes
BACKLIGHT_ENABLE = yes
-BACKLIGHT_CUSTOM_DRIVER = no
-BACKLIGHT_BREATHING = no
RGBLIGHT_ENABLE = no
-RGBLIGHT_CUSTOM_DRIVER = no
OPT_DEFS = -DDEBUG_LEVEL=0