update keymap
This commit is contained in:
parent
bcf7b7d4e1
commit
4f08187275
Binary file not shown.
@ -51,7 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define ws2812_PORTREG PORTD
|
#define ws2812_PORTREG PORTD
|
||||||
#define ws2812_DDRREG DDRD
|
#define ws2812_DDRREG DDRD
|
||||||
#define ws2812_pin PD2
|
#define ws2812_pin PD2
|
||||||
#define RGBLED_NUM 4 // Number of LEDs
|
#define RGBLED_NUM 5 // Number of LEDs
|
||||||
#ifndef RGBLIGHT_HUE_STEP
|
#ifndef RGBLIGHT_HUE_STEP
|
||||||
#define RGBLIGHT_HUE_STEP 10
|
#define RGBLIGHT_HUE_STEP 10
|
||||||
#endif
|
#endif
|
||||||
|
Binary file not shown.
@ -13,14 +13,14 @@ KEYMAP(
|
|||||||
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, DELETE,
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, DELETE,
|
||||||
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, MINS, EQL, LBRC, RBRC, BSLS,
|
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, MINS, EQL, LBRC, RBRC, BSLS,
|
||||||
TRNS, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, TRNS,
|
TRNS, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, TRNS,
|
||||||
TRNS, TRNS, TRNS, SLSH, TRNS, TRNS, TRNS, TRNS, HOME, PGDN, PGUP, END
|
TRNS, TRNS, TRNS, CAPS, TRNS, TRNS, TRNS, TRNS, HOME, PGDN, PGUP, END
|
||||||
),
|
),
|
||||||
|
|
||||||
KEYMAP(
|
KEYMAP(
|
||||||
FN4, FN5, FN6, FN7, FN8, FN9, FN10, FN11, FN12, FN13, FN14, DELETE,
|
FN4, FN5, FN6, FN7, FN8, FN9, FN10, FN11, FN12, FN13, FN14, DELETE,
|
||||||
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, FN23, FN24, FN25, FN26, FN27,
|
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, FN23, FN24, FN25, FN26, FN27,
|
||||||
TRNS, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, TRNS,
|
TRNS, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, TRNS,
|
||||||
TRNS, TRNS, TRNS, SLSH, TRNS, TRNS, TRNS, TRNS, HOME, PGDN, PGUP, END
|
TRNS, TRNS, TRNS, CAPS, TRNS, TRNS, TRNS, TRNS, HOME, PGDN, PGUP, END
|
||||||
),
|
),
|
||||||
|
|
||||||
KEYMAP( /* Tab */
|
KEYMAP( /* Tab */
|
||||||
|
@ -22,5 +22,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
void led_set(uint8_t usb_led)
|
void led_set(uint8_t usb_led)
|
||||||
{
|
{
|
||||||
|
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
||||||
|
// output low
|
||||||
|
DDRB &= ~(1<<0);
|
||||||
|
PORTB &= ~(1<<0);
|
||||||
|
DDRD |= (1<<5);
|
||||||
|
PORTD &= ~(1<<5);
|
||||||
|
} else {
|
||||||
|
// Hi-Z
|
||||||
|
DDRB |= (1<<0);
|
||||||
|
PORTB &= ~(1<<0);
|
||||||
|
DDRD &= ~(1<<5);
|
||||||
|
PORTD &= ~(1<<5);
|
||||||
|
}
|
||||||
}
|
}
|
@ -14,14 +14,14 @@ KEYMAP(
|
|||||||
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, DELETE,
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, DELETE,
|
||||||
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, MINS, EQL, LBRC, RBRC, BSLS,
|
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, MINS, EQL, LBRC, RBRC, BSLS,
|
||||||
TRNS, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, TRNS,
|
TRNS, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, TRNS,
|
||||||
TRNS, TRNS, TRNS, SLSH, TRNS, TRNS, TRNS, HOME, PGDN, PGUP, END
|
TRNS, TRNS, TRNS, CAPS, TRNS, TRNS, TRNS, HOME, PGDN, PGUP, END
|
||||||
),
|
),
|
||||||
|
|
||||||
KEYMAP(
|
KEYMAP(
|
||||||
FN6, FN7, FN8, FN9, FN10, FN11, FN12, FN13, FN14, FN15, FN16, DELETE,
|
FN6, FN7, FN8, FN9, FN10, FN11, FN12, FN13, FN14, FN15, FN16, DELETE,
|
||||||
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, FN17, FN18, FN19, FN20, FN21,
|
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, FN17, FN18, FN19, FN20, FN21,
|
||||||
TRNS, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, TRNS,
|
TRNS, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, TRNS,
|
||||||
TRNS, TRNS, TRNS, SLSH, TRNS, TRNS, TRNS, HOME, PGDN, PGUP, END
|
TRNS, TRNS, TRNS, CAPS, TRNS, TRNS, TRNS, HOME, PGDN, PGUP, END
|
||||||
),
|
),
|
||||||
|
|
||||||
KEYMAP( /* Tab */
|
KEYMAP( /* Tab */
|
||||||
|
Loading…
Reference in New Issue
Block a user