|
|
@ -71,51 +71,13 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
switch(id) {
|
|
|
|
switch(id) {
|
|
|
|
case 0:
|
|
|
|
case 0:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
// play_note(440, 20);
|
|
|
|
|
|
|
|
// register_code(KC_RSFT);
|
|
|
|
|
|
|
|
backlight_set(BACKLIGHT_LEVELS);
|
|
|
|
backlight_set(BACKLIGHT_LEVELS);
|
|
|
|
default_layer_and(0);
|
|
|
|
default_layer_and(0);
|
|
|
|
default_layer_or((1<<5));
|
|
|
|
default_layer_or((1<<5));
|
|
|
|
|
|
|
|
|
|
|
|
// uint8_t low = boot_lock_fuse_bits_get(0x0000);
|
|
|
|
|
|
|
|
// uint8_t high = boot_lock_fuse_bits_get(0x0003);
|
|
|
|
|
|
|
|
// uint8_t ext = boot_lock_fuse_bits_get(0x0002);
|
|
|
|
|
|
|
|
// uint8_t lock = boot_lock_fuse_bits_get(0x0001);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// register_code(hextokeycode((low & 0xF0) >> 4));
|
|
|
|
|
|
|
|
// unregister_code(hextokeycode((low & 0xF0) >> 4));
|
|
|
|
|
|
|
|
// register_code(hextokeycode((low & 0x0F)));
|
|
|
|
|
|
|
|
// unregister_code(hextokeycode((low & 0x0F)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// register_code(hextokeycode((high & 0xF0) >> 4));
|
|
|
|
|
|
|
|
// unregister_code(hextokeycode((high & 0xF0) >> 4));
|
|
|
|
|
|
|
|
// register_code(hextokeycode((high & 0x0F)));
|
|
|
|
|
|
|
|
// unregister_code(hextokeycode((high & 0x0F)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// register_code(hextokeycode((ext & 0xF0) >> 4));
|
|
|
|
|
|
|
|
// unregister_code(hextokeycode((ext & 0xF0) >> 4));
|
|
|
|
|
|
|
|
// register_code(hextokeycode((ext & 0x0F)));
|
|
|
|
|
|
|
|
// unregister_code(hextokeycode((ext & 0x0F)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// register_code(hextokeycode((lock & 0xF0) >> 4));
|
|
|
|
|
|
|
|
// unregister_code(hextokeycode((lock & 0xF0) >> 4));
|
|
|
|
|
|
|
|
// register_code(hextokeycode((lock & 0x0F)));
|
|
|
|
|
|
|
|
// unregister_code(hextokeycode((lock & 0x0F)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// note(0+12, 20);
|
|
|
|
|
|
|
|
// note(0+24, 20);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// unregister_code(KC_RSFT);
|
|
|
|
|
|
|
|
// stop_note();
|
|
|
|
|
|
|
|
backlight_set(0);
|
|
|
|
backlight_set(0);
|
|
|
|
default_layer_and(0);
|
|
|
|
default_layer_and(0);
|
|
|
|
default_layer_or(0);
|
|
|
|
default_layer_or(0);
|
|
|
|
// note(0+24, 20);
|
|
|
|
|
|
|
|
// note(0, 20);
|
|
|
|
|
|
|
|
// play_note(4, 20);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|