summaryrefslogtreecommitdiffstats
path: root/keyboards/hineybush/hineyg80/hineyg80.c
diff options
context:
space:
mode:
authorJosh Hinnebusch <josh@hinnebus.ch>2019-05-01 07:35:49 +0200
committerDrashna Jaelre <drashna@live.com>2019-05-01 07:35:49 +0200
commit61ce41ae13242adb113f61ec03dd9ed26acee26b (patch)
tree10247e609beeb810b353499c54ed933d59f83e5a /keyboards/hineybush/hineyg80/hineyg80.c
parente4b5c4426285d4e987fdbcc0c0bb6f7169c72c2e (diff)
downloadqmk_firmware-61ce41ae13242adb113f61ec03dd9ed26acee26b.tar.gz
qmk_firmware-61ce41ae13242adb113f61ec03dd9ed26acee26b.tar.xz
[Keyboard] Update hineybush keyboard projects (#5554)
* Add H87a keymap and info * Create readme.md * Add h87a .json for kbfirmware.com use * Update readme.md * Update readme.md * Update h87a files * Delete Makefile * Update readme.md * Delete desktop.ini * update files to match new QMK framework * Update files to match new QMK structure * Update files to match new QMK structure * add layout name information * Add info.json * update keymap to support layout_all * update keymap to support layout_all * update rules.mk to fix filesize * Update readme.md * Update config.h * Update readme.md * Update config.h * Update config.h Add "define CONFIG_H and include "config_common.h" back to file * update config.h to include RGB turnoff when PC goes to sleep * update info.json * update info.json * Update readme.md Add project link * Update readme.md * refactor hineybush projects into single folder. update hineyg80 to modern code * updated layout file to reflect new keymap changes * actually updated all layout names this time, verified make * Update keyboards/hineybush/h87a/h87a.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/default/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/readme.md Co-Authored-By: hineybush <josh@hinnebus.ch> * edit based on PR edit requests * update hiney80 files to avoid confusion * update hineyg80.h to reflect matrix * Update keyboards/hineybush/hineyg80/info.json Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/info.json Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/info.json Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/info.json Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/default/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/keymaps/wkl/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/default/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/readme.md Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/readme.md Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/readme.md Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/readme.md Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/default/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/keymaps/default/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/readme.md Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/readme.md Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * update hineyg80 config.h * Update keyboards/hineybush/h87a/keymaps/wkl/keymap.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/keymap.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/keymap.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/keymap.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/keymap.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/keymap.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/keymap.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/h87a/keymaps/wkl/keymap.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/hineyg80.c Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/config.h Co-Authored-By: hineybush <josh@hinnebus.ch> * Update keyboards/hineybush/hineyg80/config.h Co-Authored-By: hineybush <josh@hinnebus.ch>
Diffstat (limited to 'keyboards/hineybush/hineyg80/hineyg80.c')
-rw-r--r--keyboards/hineybush/hineyg80/hineyg80.c63
1 files changed, 63 insertions, 0 deletions
diff --git a/keyboards/hineybush/hineyg80/hineyg80.c b/keyboards/hineybush/hineyg80/hineyg80.c
new file mode 100644
index 000000000..236c646be
--- /dev/null
+++ b/keyboards/hineybush/hineyg80/hineyg80.c
@@ -0,0 +1,63 @@
+/* Copyright 2019 Josh Hinnebusch
+ *
+ * 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 "hineyg80.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
+ if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
+ // Turn numlock on
+ writePinHigh(C6);
+ } else {
+ // Turn numlock off
+ writePinLow(C6);
+ }
+ if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
+ // Turn capslock on
+ writePinHigh(B6);
+ } else {
+ // Turn capslock off
+ writePinLow(B6);
+ }
+ if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
+ // Turn scrolllock on
+ writePinHigh(B5);
+ } else {
+ // Turn scrolllock off
+ writePinLow(B5);
+ }
+ led_set_user(usb_led);
+}