Fixup the cluepad code

master
skullY 2016-04-05 20:27:40 -07:00
parent 34dd96187c
commit 0da53d3811
4 changed files with 13 additions and 13 deletions

View File

@ -6,7 +6,7 @@
int pwm_level; int pwm_level;
void led_set(uint8_t usb_led) void led_set_kb(uint8_t usb_led)
{ {
print("led_set\n"); print("led_set\n");
} }

View File

@ -1,16 +1,16 @@
#include "cluepad.h" #include "cluepad.h"
__attribute__ ((weak)) __attribute__ ((weak))
void * matrix_init_user(void) { void matrix_init_user(void) {
// leave these blank // leave these blank
}; };
__attribute__ ((weak)) __attribute__ ((weak))
void * matrix_scan_user(void) { void matrix_scan_user(void) {
// leave these blank // leave these blank
}; };
void * matrix_init_kb(void) { void matrix_init_kb(void) {
// put your keyboard start-up code here // put your keyboard start-up code here
// runs once when the firmware starts up // runs once when the firmware starts up
if (matrix_init_user) { if (matrix_init_user) {
@ -30,7 +30,7 @@ void * matrix_init_kb(void) {
MCUCR |= (1<<JTD); MCUCR |= (1<<JTD);
}; };
void * matrix_scan_kb(void) { void matrix_scan_kb(void) {
// put your looping keyboard code here // put your looping keyboard code here
// runs every cycle (a lot) // runs every cycle (a lot)
if (matrix_scan_user) { if (matrix_scan_user) {

View File

@ -35,7 +35,7 @@
{ k40, KC_NO, k42, KC_NO } \ { k40, KC_NO, k42, KC_NO } \
} }
void * matrix_init_user(void); void matrix_init_user(void);
void * matrix_scan_user(void); void matrix_scan_user(void);
#endif #endif

View File

@ -36,20 +36,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* .-------------------. * .-------------------.
* |NL F| | | Fn0| * |NL F| | | Fn0|
* |-------------------| * |-------------------|
* | Fn2| | Fn4| | * | | Fn4| | |
* |--------------| | * |--------------| |
* | Fn3|BL_S| Fn5| Fn6| * | Fn3|BL_S| Fn2| Fn6|
* |-------------------| * |-------------------|
* | | | | | * | | Fn5| | |
* |--------------| | * |--------------| |
* | Fn1| | Fn7| * | Fn1| | Fn7|
* '-------------------' * '-------------------'
*/ */
[_FL] = KEYMAP( [_FL] = KEYMAP(
LT(_FL, KC_NLCK), KC_TRNS, KC_TRNS, F(0), \ LT(_FL, KC_NLCK), KC_TRNS, KC_TRNS, F(0), \
F(2), KC_TRNS, F(4), F(6), \ KC_TRNS, F(4), KC_TRNS, F(6), \
F(3), BL_STEP, F(5), \ F(3), BL_STEP, F(2), \
KC_TRNS, KC_TRNS, KC_TRNS, F(7), \ KC_TRNS, F(5), KC_TRNS, F(7), \
F(1), KC_TRNS) F(1), KC_TRNS)
}; };