aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/pinky/pinky.c
diff options
context:
space:
mode:
authorMasayuki Sunahara <tamanishi@gmail.com>2019-01-06 02:35:48 +0900
committerDrashna Jaelre <drashna@live.com>2019-01-05 09:35:48 -0800
commitac7a9e3c66c59c8f35202269eebac692bb4c3716 (patch)
tree457a4ac7fc1d17e5c604ee783bca0d010b0a2b1c /keyboards/pinky/pinky.c
parentea47be936b41a31e2644ad3403d91010916683ce (diff)
downloadfirmware-ac7a9e3c66c59c8f35202269eebac692bb4c3716.tar.gz
firmware-ac7a9e3c66c59c8f35202269eebac692bb4c3716.tar.bz2
firmware-ac7a9e3c66c59c8f35202269eebac692bb4c3716.zip
add Pinky keyboard (#4748)
add Pinky (https://github.com/tamanishi/Pinky3) keyboard
Diffstat (limited to 'keyboards/pinky/pinky.c')
-rw-r--r--keyboards/pinky/pinky.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/keyboards/pinky/pinky.c b/keyboards/pinky/pinky.c
new file mode 100644
index 000000000..9b98ea85d
--- /dev/null
+++ b/keyboards/pinky/pinky.c
@@ -0,0 +1,43 @@
+/* Copyright 2018 'Masayuki Sunahara'
+ *
+ * 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 "pinky.h"
+
+void matrix_init_kb(void) {
+ // put your keyboard start-up code here
+ // runs once when the firmware starts up
+
+ matrix_init_user();
+}
+
+void matrix_scan_kb(void) {
+ // put your looping keyboard code here
+ // runs every cycle (a lot)
+
+ matrix_scan_user();
+}
+
+bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
+ // put your per-action keyboard code here
+ // runs for every action, just before processing by the firmware
+
+ return process_record_user(keycode, record);
+}
+
+void led_set_kb(uint8_t usb_led) {
+ // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
+
+ led_set_user(usb_led);
+}