aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ckeys/handwire_101/handwire_101.c
diff options
context:
space:
mode:
authorJames Young <18669334+noroadsleft@users.noreply.github.com>2021-08-04 14:32:27 -0700
committerGitHub <noreply@github.com>2021-08-04 22:32:27 +0100
commitf4c55db8dde8fb1590bff7661dae8718a29208b4 (patch)
treea8a3edd7fe3561c922906c2795f1033b04be56be /keyboards/ckeys/handwire_101/handwire_101.c
parent4445455c1fbbdc960e7b8ae5cfc6559712d0323a (diff)
downloadqmk_firmware-f4c55db8dde8fb1590bff7661dae8718a29208b4.tar.gz
qmk_firmware-f4c55db8dde8fb1590bff7661dae8718a29208b4.zip
cKeys Handwire 101 Refactor (#13879)
* update info.json - use human-friendly formatting - remove `key_count` key * rename LAYOUT to LAYOUT_ortho_4x4 * refactor default keymap - add license header - qmk cformat pass - keycode grid alignment * remove empty config.h file from default keymap * update Manufacturer and Product strings * tidy up handwire_101.c - add license header - remove boilerplate functions * tidy up handwire_101.h - add license header - remove instructive comment * minor rules.mk tidy-up - remove Bootloader selection sample comments * rewrite SEND_STRING() statements per fauxpark Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/ckeys/handwire_101/handwire_101.c')
-rwxr-xr-xkeyboards/ckeys/handwire_101/handwire_101.c43
1 files changed, 16 insertions, 27 deletions
diff --git a/keyboards/ckeys/handwire_101/handwire_101.c b/keyboards/ckeys/handwire_101/handwire_101.c
index a6ff8f0e3..7d251ddce 100755
--- a/keyboards/ckeys/handwire_101/handwire_101.c
+++ b/keyboards/ckeys/handwire_101/handwire_101.c
@@ -1,28 +1,17 @@
1#include "handwire_101.h" 1/* Copyright 2019 Branden Byers
2 2 *
3void matrix_init_kb(void) { 3 * This program is free software: you can redistribute it and/or modify
4 // put your keyboard start-up code here 4 * it under the terms of the GNU General Public License as published by
5 // runs once when the firmware starts up 5 * the Free Software Foundation, either version 2 of the License, or
6 // Turn status LED on 6 * (at your option) any later version.
7 //DDRD |= (1<<6); 7 *
8 //PORTD |= (1<<6); 8 * This program is distributed in the hope that it will be useful,
9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 matrix_init_user(); 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11} 11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
12 16
13void matrix_scan_kb(void) { 17#include "handwire_101.h"
14 // put your looping keyboard code here
15 // runs every cycle (a lot)
16 matrix_scan_user();
17}
18
19bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
20 // put your per-action keyboard code here
21 // runs for every action, just before processing by the firmware
22 return process_record_user(keycode, record);
23}
24
25void led_set_kb(uint8_t usb_led) {
26 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
27 led_set_user(usb_led);
28}