From a0a67d4f85d01a510f8006edc2b041c1390ce498 Mon Sep 17 00:00:00 2001 From: Chase Nordengren Date: Sat, 20 Feb 2021 10:29:08 -0800 Subject: adding personal keymaps (#11952) * adding personal keymaps * Update keyboards/xd60/keymaps/semicolonsnet/keymap.c Co-authored-by: Drashna Jaelre * added license * added license Co-authored-by: Drashna Jaelre --- .../sixkeyboard/keymaps/semicolonsnet/keymap.c | 42 ++++++++++++++++++++++ .../sixkeyboard/keymaps/semicolonsnet/readme.md | 29 +++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c create mode 100644 keyboards/sixkeyboard/keymaps/semicolonsnet/readme.md (limited to 'keyboards/sixkeyboard') diff --git a/keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c b/keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c new file mode 100644 index 0000000000..86fdc90b65 --- /dev/null +++ b/keyboards/sixkeyboard/keymaps/semicolonsnet/keymap.c @@ -0,0 +1,42 @@ +/* Copyright 2021 Chase Nordengren + * + * 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 QMK_KEYBOARD_H + + +enum custom_keycodes { + QMKPASS = SAFE_RANGE, +}; + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case QMKPASS: + if (record->event.pressed) { + // when keycode QMKPASS is pressed + SEND_STRING("Sample string"); + } else { + // when keycode QMKPASS is released + } + break; + } + return true; +}; + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT(KC_ESC, SGUI(KC_R), SGUI(KC_S), QMKPASS, SGUI(KC_A), SGUI(KC_V)) +}; + diff --git a/keyboards/sixkeyboard/keymaps/semicolonsnet/readme.md b/keyboards/sixkeyboard/keymaps/semicolonsnet/readme.md new file mode 100644 index 0000000000..e791b12a65 --- /dev/null +++ b/keyboards/sixkeyboard/keymaps/semicolonsnet/readme.md @@ -0,0 +1,29 @@ +Techkeys SixKeyBoard +=== + +Keyboard Maintainer: QMK Community +Hardware Supported: Techkeys SixKeyBoard PCB +Hardware Availability: [Techkeys](http://techkeys.us/collections/accessories/products/sixkeyboard) + +Make example for this keyboard (after setting up your build environment): + + make sixkeyboard:semicolonsnet + +See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. + +## Hardware Info + +The schematic is like this: + +``` + switches leds +,--+--+--. ,--+--+--. +|C7|B7|B5| |C6|B6|B4| ++--+--+--+ +--+--+--+ +|D6|D1|D4| |D5|D2|D3| +`--+--+--' `--+--+--' +``` + +The LED on the bottom is `C4`. All 7 of the leds are turned on when the keyboard boots-up in the `sixkeyboard.c` file - backlight_enable is not required. The MCU is an Atmega16u2, so the flash memory is limited to 0x3000 bytes - the current setup uses just about all of that! I'm sure things can be opitimised a bit. + +There is a jumper on the bottom of the board (next to the USB port) that serves as a reset button - I drilled a hole in my case to allow for quick access via a screwdriver/metal object. -- cgit v1.2.3