|
@@ -15,25 +15,28 @@
|
|
|
*/
|
|
|
#include "v60_type_r.h"
|
|
|
|
|
|
+#include "quantum.h"
|
|
|
+
|
|
|
+
|
|
|
+#ifdef V60_POLESTAR
|
|
|
+
|
|
|
#include "rgblight.h"
|
|
|
|
|
|
#include <avr/pgmspace.h>
|
|
|
|
|
|
#include "action_layer.h"
|
|
|
-#include "quantum.h"
|
|
|
|
|
|
-
|
|
|
-#ifdef V60_POLESTAR
|
|
|
#define SOFTPWM_LED_TIMER_TOP F_CPU/(256*64)
|
|
|
|
|
|
extern rgblight_config_t rgblight_config;
|
|
|
static uint8_t softpwm_buff[3] = {0};
|
|
|
|
|
|
-void matrix_init_user(void) {
|
|
|
+void matrix_init_kb(void) {
|
|
|
rgb_init();
|
|
|
+ matrix_init_user();
|
|
|
}
|
|
|
|
|
|
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
+bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|
|
uint8_t r = led[0].r, g = led[0].g, b = led[0].b;
|
|
|
switch(keycode) {
|
|
|
case RGB_RI:
|
|
@@ -98,7 +101,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- return true;
|
|
|
+ return process_record_user(keycode, record);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -188,44 +191,4 @@ ISR(TIMER1_COMPA_vect)
|
|
|
softpwm_buff[2] = led[0].b;
|
|
|
}
|
|
|
}
|
|
|
-#else
|
|
|
-
|
|
|
-void matrix_init_user(void) {
|
|
|
-}
|
|
|
-
|
|
|
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
- return true;
|
|
|
-}
|
|
|
-
|
|
|
#endif
|
|
|
-
|
|
|
-
|
|
|
-void led_set_kb(uint8_t usb_led) {
|
|
|
-
|
|
|
-
|
|
|
- led_set_user(usb_led);
|
|
|
-}
|
|
|
-
|
|
|
-void matrix_scan_user(void) {
|
|
|
-}
|
|
|
-
|
|
|
-void matrix_init_kb(void) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- matrix_init_user();
|
|
|
-}
|
|
|
-
|
|
|
-void matrix_scan_kb(void) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- matrix_scan_user();
|
|
|
-}
|
|
|
-
|
|
|
-bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- return process_record_user(keycode, record);
|
|
|
-}
|