From 0f507f01696eae0e8fe808d17a19db3f6d9e2ce4 Mon Sep 17 00:00:00 2001 From: Andrew Kannan Date: Mon, 28 Jan 2019 19:40:02 -0500 Subject: 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 * Update quantum/rgblight.c Co-Authored-By: awkannan * EEPROM implementation fix and updated p60 code * Update define * Remove dead code * Update keymap to remove test key * Update keymap again --- keyboards/handwired/practice60/practice60.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'keyboards/handwired/practice60/practice60.c') 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 } -- cgit v1.2.3