From 0c5b3826d15015ec8aaee0b87a7a485f17158c6b Mon Sep 17 00:00:00 2001 From: worthlessowl <53881082+worthlessowl@users.noreply.github.com> Date: Wed, 2 Oct 2019 11:26:39 +0700 Subject: [Keyboard] Add Owlet60 Keyboard to qmk_firmware/keyboards/handwired (#6803) * first commit, skeleton code, not sure if working * Owlet 60 working firmware, json not sure * use json from kle to qmk converter * deleted temporary text from owlet60.h * owlet60 working oled and led firmware * moved owlet60 to handwired * updated readme.md * Revert "owlet60 working oled and led firmware" This reverts commit 27f9465aabd62d9ee445b477a02af348160532c1. * Revert "moved owlet60 to handwired" This reverts commit 9b8e8344fc303ddc4dcc3b023d4e9d05b89d5800. * revert changes, moved owlet60 to handwired, updated copyright blurb * fixed readme.md * removed duplicate items * resolve merge artifact * Update keyboards/handwired/owlet60/readme.md Co-Authored-By: fauxpark * check out merge artifacts with qmk master * Update keyboards/handwired/owlet60/matrix.c Co-Authored-By: fauxpark * Update keyboards/handwired/owlet60/matrix.c Co-Authored-By: fauxpark * Update keyboards/handwired/owlet60/matrix.c Co-Authored-By: fauxpark * Update keyboards/handwired/owlet60/matrix.c Co-Authored-By: fauxpark * removed redundant rule on oled_testing/rules.mk, refactored mux switching code on matrix.c --- keyboards/handwired/owlet60/owlet60.c | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 keyboards/handwired/owlet60/owlet60.c (limited to 'keyboards/handwired/owlet60/owlet60.c') diff --git a/keyboards/handwired/owlet60/owlet60.c b/keyboards/handwired/owlet60/owlet60.c new file mode 100644 index 0000000000..42d24a291a --- /dev/null +++ b/keyboards/handwired/owlet60/owlet60.c @@ -0,0 +1,53 @@ +/* Copyright 2019 worthlessowl + * + * 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 . + */ +#include "owlet60.h" + +// Optional override functions below. +// You can leave any or all of these undefined. +// These are only required if you want to perform custom actions. + + +/* +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(); + oled_task_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); +} + +*/ -- cgit v1.2.3