summaryrefslogtreecommitdiff
path: root/keyboards/handwired/practice60/practice60.c
diff options
context:
space:
mode:
authorAndrew Kannan <andrew.kannan@klaviyo.com>2019-01-28 19:40:02 -0500
committerDrashna Jaelre <drashna@live.com>2019-01-28 16:40:02 -0800
commit0f507f01696eae0e8fe808d17a19db3f6d9e2ce4 (patch)
tree986c78fbb09b6bf5e33df6c28158e6877af64960 /keyboards/handwired/practice60/practice60.c
parentd9120412d3d81fc688a7e5346711cf716518dc34 (diff)
Practice60 RGB and PWM Backlight (#4929)
* Update Practice60 to enable RGB via SPI DMA and use PWM backlight breathing * Correct stm32f103c8t6 flash size in eeprom definition * Remove unused files and improve ifdef checks * Update quantum/rgblight.c Co-Authored-By: awkannan <andrew.kannan@klaviyo.com> * Update quantum/rgblight.c Co-Authored-By: awkannan <andrew.kannan@klaviyo.com> * EEPROM implementation fix and updated p60 code * Update define * Remove dead code * Update keymap to remove test key * Update keymap again
Diffstat (limited to 'keyboards/handwired/practice60/practice60.c')
-rw-r--r--keyboards/handwired/practice60/practice60.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/keyboards/handwired/practice60/practice60.c b/keyboards/handwired/practice60/practice60.c
index 5d0fffbd09..acc0f00e53 100644
--- a/keyboards/handwired/practice60/practice60.c
+++ b/keyboards/handwired/practice60/practice60.c
@@ -3,8 +3,7 @@
#include "ch.h"
#include "hal.h"
-
-#include "underglow.h"
+#include "led_custom.h"
#include "print.h"
#include "debug.h"
#include "util.h"
@@ -19,14 +18,18 @@
void matrix_init_kb(void){
/* MOSI pin*/
palSetPadMode(GPIOB, 15, PAL_MODE_STM32_ALTERNATE_PUSHPULL);
-
LED_ON();
- palSetPad(GPIOA, 8);
wait_ms(500);
- palClearPad(GPIOA, 8);
LED_OFF();
+#ifdef RGBLIGHT_ENABLE
leds_init();
+#endif
+}
-
+void matrix_scan_kb(void)
+{
+ #ifdef RGBLIGHT_ENABLE
+ rgblight_task();
+ #endif
}