Files
Thomas Haukland 699bfcc533 Use user LED: light when not typing...
also enabling boot magic and RALT
2022-04-16 23:16:30 +02:00

39 lines
1.1 KiB
C

/* Copyright 2021 Harshit Goel
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "vonreg.h"
char _down;
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
writePinHigh(C13);
_down++;
} else {
_down--;
if (_down == 0) {
writePinLow(C13);
}
}
//process_record_user(keycode, record);
return true;
}
void keyboard_post_init_kb(void) {
setPinOutput(C13);
//keyboard_post_init_user();
}