void led_set(uint8_t usb_led)
{
- if (usb_led & (1<<USB_LED_FUNCTION)) {
- // Output high.
- DDRF |= (1<<0);
- PORTF |= (1<<0);
- } else {
- // Output low.
- DDRF &= ~(1<<0);
- PORTF &= ~(1<<0);
- }
}
return MATRIX_COLS;
}
-static
-void setup_leds(void) {
- DDRF |= 0x00;
- PORTF |= 0x00;
-}
-
void matrix_init(void)
{
unselect_rows();
init_cols();
- setup_leds();
-
// initialize matrix state: all keys off
for (uint8_t i=0; i < MATRIX_ROWS; i++) {
matrix[i] = 0;
};
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
-{
+{
keyevent_t event = record->event;
switch (id) {
case M_Q0:
void led_set(uint8_t usb_led)
{
- if (usb_led & (1<<USB_LED_FUNCTION)) {
- // Output high.
- DDRF |= (1<<0);
- PORTF |= (1<<0);
- } else {
- // Output low.
- DDRF &= ~(1<<0);
- PORTF &= ~(1<<0);
- }
+ // if (usb_led & (1<<USB_LED_FUNCTION)) {
+ // // Output high.
+ // DDRF |= (1<<0);
+ // PORTF |= (1<<0);
+ // } else {
+ // // Output low.
+ // DDRF &= ~(1<<0);
+ // PORTF &= ~(1<<0);
+ // }
}