diff options
Diffstat (limited to 'keyboards/knops')
-rw-r--r-- | keyboards/knops/mini/config.h | 97 | ||||
-rw-r--r-- | keyboards/knops/mini/info.json | 16 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/default-gsm-newbs/config.h | 24 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c | 416 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/default-gsm-newbs/readme.md | 12 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/default/keymap.c | 305 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/default/readme.md | 7 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/knops/keymap.c | 142 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/knops/readme.md | 11 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/mverteuil/config.h | 25 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/mverteuil/keymap.c | 306 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/mverteuil/readme.md | 1 | ||||
-rw-r--r-- | keyboards/knops/mini/keymaps/mverteuil/rules.mk | 6 | ||||
-rw-r--r-- | keyboards/knops/mini/mini.c | 16 | ||||
-rw-r--r-- | keyboards/knops/mini/mini.h | 29 | ||||
-rw-r--r-- | keyboards/knops/mini/readme.md | 21 | ||||
-rw-r--r-- | keyboards/knops/mini/rules.mk | 17 | ||||
-rw-r--r-- | keyboards/knops/readme.md | 10 |
18 files changed, 0 insertions, 1461 deletions
diff --git a/keyboards/knops/mini/config.h b/keyboards/knops/mini/config.h deleted file mode 100644 index 7ca350b30c..0000000000 --- a/keyboards/knops/mini/config.h +++ /dev/null @@ -1,97 +0,0 @@ -/* -Copyright 2017 Pawnerd - -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/>. -*/ - -#pragma once - -#include "config_common.h" - -/* key matrix size */ -#define MATRIX_ROWS 1 -#define MATRIX_COLS 6 - -/* - * Keyboard Matrix Assignments - * - * Change this to how you wired your keyboard - * COLS: AVR pins used for columns, left to right - * ROWS: AVR pins used for rows, top to bottom - * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) - * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) - * -*/ -#define MATRIX_ROW_PINS { D0 } -#define MATRIX_COL_PINS { F7, F6, F5, F4, F1, F0 } - -/* COL2ROW, ROW2COL*/ -#define DIODE_DIRECTION COL2ROW - -// #define BACKLIGHT_PIN B7 -// #define BACKLIGHT_BREATHING -// #define BACKLIGHT_LEVELS 3 - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - -/* define if matrix has ghost (lacks anti-ghosting diodes) */ -//#define MATRIX_HAS_GHOST - -/* number of backlight levels */ - -/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ -#define LOCKING_SUPPORT_ENABLE -/* Locking resynchronize hack */ -#define LOCKING_RESYNC_ENABLE - -/* If defined, GRAVE_ESC will always act as ESC when CTRL is held. - * This is userful for the Windows task manager shortcut (ctrl+shift+esc). - */ -// #define GRAVE_ESC_CTRL_OVERRIDE - -/* - * Force NKRO - * - * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved - * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the - * makefile for this to work.) - * - * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) - * until the next keyboard reset. - * - * NKRO may prevent your keystrokes from being detected in the BIOS, but it is - * fully operational during normal computer usage. - * - * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) - * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by - * bootmagic, NKRO mode will always be enabled until it is toggled again during a - * power-up. - * - */ -/* - * Feature disable options - * These options are also useful to firmware size reduction. - */ - -/* disable debug print */ -//#define NO_DEBUG - -/* disable print */ -//#define NO_PRINT - -/* disable action features */ -//#define NO_ACTION_LAYER -//#define NO_ACTION_TAPPING -//#define NO_ACTION_ONESHOT diff --git a/keyboards/knops/mini/info.json b/keyboards/knops/mini/info.json deleted file mode 100644 index fcc8e5229e..0000000000 --- a/keyboards/knops/mini/info.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "keyboard_name": "Knops Mini", - "manufacturer": "Alltrons IT", - "url": "http://www.knops.io/knopsmini.html", - "maintainer": "Pawnerd", - "usb": { - "vid": "0xFEFD", - "pid": "0x9460", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT": { - "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}] - } - } -} diff --git a/keyboards/knops/mini/keymaps/default-gsm-newbs/config.h b/keyboards/knops/mini/keymaps/default-gsm-newbs/config.h deleted file mode 100644 index 999d8876c2..0000000000 --- a/keyboards/knops/mini/keymaps/default-gsm-newbs/config.h +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright 2017 Pawnerd - * - * 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/>. - */ - -#ifndef CONFIG_USER_H -#define CONFIG_USER_H - -#include "../../config.h" - -// place overrides here - -#endif diff --git a/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c b/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c deleted file mode 100644 index 4921564529..0000000000 --- a/keyboards/knops/mini/keymaps/default-gsm-newbs/keymap.c +++ /dev/null @@ -1,416 +0,0 @@ -#include QMK_KEYBOARD_H - -enum custom_keycodes { - M_TGLHF = SAFE_RANGE, - M_TGG -}; - -/* -* Copy of knopps mini default May 16,2018 -* Added comments in code to more easilly understand it. -* -* Key Layout -* _____ _____ _____ -* | | | | | | -* | 1 | | 2 | | 3 | -* |_____| |_____| |_____| -* _____ _____ _____ -* | | | | | | -* | 4 | | 5 | | 6 | -* |_____| |_____| |_____| -* -* Each Layout row below keys. 1,2,3,4,5,6 -* -* Hold 3 when powering on for DFU Program Mode -*/ - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - -/* -* Layer 0 (Default) -* _____ _____ _____ -* | | | | | | -* Stop VolUp Play -* |_____| |_____| |_____| -* _____ _____ _____ -* | | | | | | -* Prev VolDwn Next -* |_____| |_____| |_____| -* -* Button 1 (stop) is Held to activate Layer 3 only while held, User then selects the keymap to change to -*/ - LAYOUT( - LT(3, KC_MSTP), KC_VOLU, KC_MPLY, KC_MPRV, KC_VOLD, KC_MNXT), - -/* -* Layer 1 -* _____ _____ _____ -* | | | | | | -* ESC Ctl+Z CSf+Z -* |_____| |_____| |_____| -* _____ _____ _____ -* | | | | | | -* Ctl+X Ctl+C Ctl+V -* |_____| |_____| |_____| -* -*/ - LAYOUT( - LT(3, KC_ESC), C(KC_Z), C(S(KC_Z)), C(KC_X), C(KC_C), C(KC_V)), - -/* -* Layer 2 -* _____ _____ _____ -* | | | | | | -* | 1 | | 2 | | 3 | -* |_____| |_____| |_____| -* _____ _____ _____ -* | | | | | | -* | 4 | |Macro0 Macro1 -* |_____| |_____| |_____| -* -*/ - LAYOUT( - LT(3, KC_1), KC_2, KC_3, KC_4, M_TGLHF, M_TGG), - -/* -* Layer 3 Key Layout -* This Layer does the Layer Selection -* _____ _____ _____ -* | | | | | DFU -* |None | |None | | FLash -* |_____| |_____| |_____| -* _____ _____ _____ -* | | | | | | -* Layer Layer Layer -* 0 1 2 -* |_____| |_____| |_____| -* -* Layers 0,1,2 have Button 1 held to activate this layer. Then press the specific layer to switch to it. -* -*/ - LAYOUT( - KC_TRNS, KC_TRNS, QK_BOOT, TO(0), TO(1), TO(2)), - -// More Layers that can be used, but are not by default - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) - -}; - -void set_switch_led(int ledId, bool state) { - if(state) { - switch(ledId) { - case 1: - PORTD |= (1<<7); - break; - case 2: - if((PINB & (1 << 7)) != 0) { - PORTC |= (1<<6); - } else { - PORTC |= (1<<7); - } - break; - case 3: - PORTD |= (1<<4); - break; - case 4: - PORTE |= (1<<6); - break; - case 5: - PORTB |= (1<<4); - break; - case 6: - PORTD |= (1<<6); - break; - } - } else { - switch(ledId) { - case 1: - PORTD &= ~(1<<7); - break; - case 2: - if((PINB & (1 << 7)) != 0) { - PORTC &= ~(1<<6); - } else { - PORTC &= ~(1<<7); - } - break; - case 3: - PORTD &= ~(1<<4); - break; - case 4: - PORTE &= ~(1<<6); - break; - case 5: - PORTB &= ~(1<<4); - break; - case 6: - PORTD &= ~(1<<6); - break; - } - } -} - - -void set_layer_led(int layerId) { - PORTD |= (1<<5); - PORTB &= ~(1<<6); - PORTB |= (1<<0); - switch(layerId) { - case 0: - PORTD &= ~(1<<5); - break; - case 1: - PORTB |= (1<<6); - break; - case 2: - PORTB &= ~(1<<0); - break; - } -} - -void led_init_ports_user(void) { - // led voor switch #1 - DDRD |= (1<<7); - PORTD &= ~(1<<7); - - // led voor switch #2 - DDRC |= (1<<6); - DDRC |= (1<<7); - PORTC &= ~(1<<6); - PORTC &= ~(1<<7); - - // led voor switch #3 - DDRD |= (1<<4); - PORTD &= ~(1<<4); - - // led voor switch #4 - DDRE |= (1<<6); - PORTE &= ~(1<<6); - - // led voor switch #5 - DDRB |= (1<<4); - PORTB &= ~(1<<4); - - // led voor switch #6 - DDRD |= (1<<6); - PORTD &= ~(1<<6); - - /* - DDRD |= (1<<7); - PORTD |= (1<<7); - - DDRC |= (1<<6); - PORTC |= (1<<6); - - DDRD |= (1<<4); - PORTD |= (1<<4); - - DDRE |= (1<<6); - PORTE |= (1<<6); - - DDRB |= (1<<4); - PORTB |= (1<<4); - - DDRD |= (1<<6); - PORTD |= (1<<6); - // */ - - DDRD |= (1<<5); - DDRB |= (1<<6); - DDRB |= (1<<0); - //led_set_layer(0); -} - -void matrix_init_user(void) { - led_init_ports_user(); - - PORTB |= (1 << 7); - DDRB &= ~(1<<7); - - PORTD |= (1<<7); - PORTC |= (1<<6); - PORTC |= (1<<7); - PORTD |= (1<<4); - PORTE |= (1<<6); - PORTB |= (1<<4); - PORTD |= (1<<6); - - set_layer_led(0); -} - -void matrix_scan_user(void) { -} - -void led_set_user(uint8_t usb_led) { - - if (usb_led & (1 << USB_LED_NUM_LOCK)) { - - } else { - - } - - if (usb_led & (1 << USB_LED_CAPS_LOCK)) { - - } else { - - } - - if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { - - } else { - - } - - if (usb_led & (1 << USB_LED_COMPOSE)) { - - } else { - - } - - if (usb_led & (1 << USB_LED_KANA)) { - - } else { - - } - -} - - -/* -* NOTE: -* -* In case you don't understand this coding stuff, please -* feel free to mail me or post something -* at the /r/knops subreddit and I will configure the code as -* you wish for your needs to make the LEDs do what you want :-). -* -* Contact me at: support@knops.io -* -* -* Knops Mini LED Numbers: -* _____ _____ _____ -* | | | | | | -* | 1 | | 2 | | 3 | <--- -* |_____| |_____| |_____| | These LEDs are called 'Switch LEDs' -* _____ _____ _____ |----- To turn on/off these leds, use: -* | | | | | | | set_switch_led( [1-6], [true/false]); -* | 4 | | 5 | | 6 | <--- -* |_____| |_____| |_____| -* -* < 0 > < 1 > < 2 > <--- These front-LEDs are called 'Layer LEDs' -* To turn one of them on, use: -* set_layer_led( [0-2] ); -* -*/ - -/* -* This function led_set_layer gets called when you switch between layers. -* It allows you to turn on and off leds for each different layer and do -* other cool stuff. Currently the GUI does not have LED support. I am working -* on that, but takes time. -*/ -void led_set_layer(int layer) { - switch(layer) { - - /** - * Here is an example to turn LEDs on and of. By default: - * - the LEDs are turned on in layer 0 - * - the LEDs are turned off in layer 1 - * - the LEDs don't change from state for layer 2 - */ - - case 0: - set_layer_led(0); // Turn on only the first/left layer indicator - set_switch_led(1, true); - set_switch_led(2, true); - set_switch_led(3, true); - set_switch_led(4, true); - set_switch_led(5, true); - set_switch_led(6, true); - break; - - case 1: - set_layer_led(1); // Turn on only the second/middle layer indicator - set_switch_led(1, false); - set_switch_led(2, false); - set_switch_led(3, false); - set_switch_led(4, false); - set_switch_led(5, false); - set_switch_led(6, false); - break; - - case 2: - set_layer_led(2); // Turn on only the third/right layer indicator - - // Keep leds for layer two in their current state, since we don't use set_switch_led(SWITCH_ID, TRUE_OR_FALSE) - - break; - } -} - -bool process_record_user (uint16_t keycode, keyrecord_t *record) { - switch(keycode) { - case TO(0): - if (record->event.pressed) { - led_set_layer(0); - } - break; - case TO(1): - if (record->event.pressed) { - led_set_layer(1); - } - break; - case TO(2): - if (record->event.pressed) { - led_set_layer(2); - } - break; - case M_TGLHF: - if (record->event.pressed) { - SEND_STRING("tglhf"); - tap_code(KC_ENT); - } - case M_TGG: - if (record->event.pressed) { - SEND_STRING("tgg"); - tap_code(KC_ENT); - } - return false; - } - return true; -} diff --git a/keyboards/knops/mini/keymaps/default-gsm-newbs/readme.md b/keyboards/knops/mini/keymaps/default-gsm-newbs/readme.md deleted file mode 100644 index 784ef19afd..0000000000 --- a/keyboards/knops/mini/keymaps/default-gsm-newbs/readme.md +++ /dev/null @@ -1,12 +0,0 @@ -# Copy of Default Knops Mini Keymap - -*Note:* copy of knops,mini,default keymap on May 16,2018 with comments to help new user to QMK and knops mini create their own keymap - -## Key Layout - - 1 | 2 | 3 - 4 | 5 | 6 - -## Programming Keypad - -Hold 3 when powering on for DFU Program Mode diff --git a/keyboards/knops/mini/keymaps/default/keymap.c b/keyboards/knops/mini/keymaps/default/keymap.c deleted file mode 100644 index de990cc597..0000000000 --- a/keyboards/knops/mini/keymaps/default/keymap.c +++ /dev/null @@ -1,305 +0,0 @@ -#include QMK_KEYBOARD_H - -enum custom_keycodes { - M_TGLHF = SAFE_RANGE, - M_TGG -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - LAYOUT( - LT(3, KC_MSTP), KC_VOLU, KC_MPLY, KC_MPRV, KC_VOLD, KC_MNXT), - - LAYOUT( - LT(3, KC_ESC), C(KC_Z), C(S(KC_Z)), C(KC_X), C(KC_C), C(KC_V)), - - LAYOUT( - LT(3, KC_1), KC_2, KC_3, KC_4, M_TGLHF, M_TGG), - - LAYOUT( - KC_TRNS, KC_TRNS, QK_BOOT, TO(0), TO(1), TO(2)), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), - - LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) - -}; - -void set_switch_led(int ledId, bool state) { - if(state) { - switch(ledId) { - case 1: - PORTD |= (1<<7); - break; - case 2: - if((PINB & (1 << 7)) != 0) { - PORTC |= (1<<6); - } else { - PORTC |= (1<<7); - } - break; - case 3: - PORTD |= (1<<4); - break; - case 4: - PORTE |= (1<<6); - break; - case 5: - PORTB |= (1<<4); - break; - case 6: - PORTD |= (1<<6); - break; - } - } else { - switch(ledId) { - case 1: - PORTD &= ~(1<<7); - break; - case 2: - if((PINB & (1 << 7)) != 0) { - PORTC &= ~(1<<6); - } else { - PORTC &= ~(1<<7); - } - break; - case 3: - PORTD &= ~(1<<4); - break; - case 4: - PORTE &= ~(1<<6); - break; - case 5: - PORTB &= ~(1<<4); - break; - case 6: - PORTD &= ~(1<<6); - break; - } - } -} - - -void set_layer_led(int layerId) { - PORTD |= (1<<5); - PORTB &= ~(1<<6); - PORTB |= (1<<0); - switch(layerId) { - case 0: - PORTD &= ~(1<<5); - break; - case 1: - PORTB |= (1<<6); - break; - case 2: - PORTB &= ~(1<<0); - break; - } -} - -void led_init_ports_user(void) { - // led voor switch #1 - DDRD |= (1<<7); - PORTD &= ~(1<<7); - - // led voor switch #2 - DDRC |= (1<<6); - DDRC |= (1<<7); - PORTC &= ~(1<<6); - PORTC &= ~(1<<7); - - // led voor switch #3 - DDRD |= (1<<4); - PORTD &= ~(1<<4); - - // led voor switch #4 - DDRE |= (1<<6); - PORTE &= ~(1<<6); - - // led voor switch #5 - DDRB |= (1<<4); - PORTB &= ~(1<<4); - - // led voor switch #6 - DDRD |= (1<<6); - PORTD &= ~(1<<6); - - /* - DDRD |= (1<<7); - PORTD |= (1<<7); - - DDRC |= (1<<6); - PORTC |= (1<<6); - - DDRD |= (1<<4); - PORTD |= (1<<4); - - DDRE |= (1<<6); - PORTE |= (1<<6); - - DDRB |= (1<<4); - PORTB |= (1<<4); - - DDRD |= (1<<6); - PORTD |= (1<<6); - // */ - - DDRD |= (1<<5); - DDRB |= (1<<6); - DDRB |= (1<<0); - //led_set_layer(0); -} - -void matrix_init_user(void) { - led_init_ports_user(); - - PORTB |= (1 << 7); - DDRB &= ~(1<<7); - - PORTD |= (1<<7); - PORTC |= (1<<6); - PORTC |= (1<<7); - PORTD |= (1<<4); - PORTE |= (1<<6); - PORTB |= (1<<4); - PORTD |= (1<<6); - - set_layer_led(0); -} - -/* -* NOTE: -* -* In case you don't understand this coding stuff, please -* feel free to mail me or post something -* at the /r/knops subreddit and I will configure the code as -* you wish for your needs to make the LEDs do what you want :-). -* -* Contact me at: support@knops.io -* -* -* Knops Mini LED Numbers: -* _____ _____ _____ -* | | | | | | -* | 1 | | 2 | | 3 | <--- -* |_____| |_____| |_____| | These LEDs are called 'Switch LEDs' -* _____ _____ _____ |----- To turn on/off these leds, use: -* | | | | | | | set_switch_led( [1-6], [true/false]); -* | 4 | | 5 | | 6 | <--- -* |_____| |_____| |_____| -* -* < 0 > < 1 > < 2 > <--- These front-LEDs are called 'Layer LEDs' -* To turn one of them on, use: -* set_layer_led( [0-2] ); -* -*/ - -/* -* This function led_set_layer gets called when you switch between layers. -* It allows you to turn on and off leds for each different layer and do -* other cool stuff. Currently the GUI does not have LED support. I am working -* on that, but takes time. -*/ -void led_set_layer(int layer) { - switch(layer) { - - /** - * Here is an example to turn LEDs on and of. By default: - * - the LEDs are turned on in layer 0 - * - the LEDs are turned off in layer 1 - * - the LEDs don't change from state for layer 2 - */ - - case 0: - set_layer_led(0); // Turn on only the first/left layer indicator - set_switch_led(1, true); - set_switch_led(2, true); - set_switch_led(3, true); - set_switch_led(4, true); - set_switch_led(5, true); - set_switch_led(6, true); - break; - - case 1: - set_layer_led(1); // Turn on only the second/middle layer indicator - set_switch_led(1, false); - set_switch_led(2, false); - set_switch_led(3, false); - set_switch_led(4, false); - set_switch_led(5, false); - set_switch_led(6, false); - break; - - case 2: - set_layer_led(2); // Turn on only the third/right layer indicator - - // Keep leds for layer two in their current state, since we don't use set_switch_led(SWITCH_ID, TRUE_OR_FALSE) - - break; - } -} - -bool process_record_user (uint16_t keycode, keyrecord_t *record) { - switch(keycode) { - case TO(0): - if (record->event.pressed) { - led_set_layer(0); - } - break; - case TO(1): - if (record->event.pressed) { - led_set_layer(1); - } - break; - case TO(2): - if (record->event.pressed) { - led_set_layer(2); - } - break; - case M_TGLHF: - if (record->event.pressed) { - SEND_STRING("tglhf"); - tap_code(KC_ENT); - } - return false; - case M_TGG: - if (record->event.pressed) { - SEND_STRING("tgg"); - tap_code(KC_ENT); - } - return false; - } - return true; -} diff --git a/keyboards/knops/mini/keymaps/default/readme.md b/keyboards/knops/mini/keymaps/default/readme.md deleted file mode 100644 index 61479b486c..0000000000 --- a/keyboards/knops/mini/keymaps/default/readme.md +++ /dev/null @@ -1,7 +0,0 @@ -# Default Knops Mini Layout - -![Knops logo](http://knops.io/img/Knops_logo.jpg) - -![Knops Mini Layout Image](https://i.imgur.com/WQBQctm.png) - -This is the default layout that comes flashed on every Knops Mini. For your use, you probably want to change this. We suggest you to use [our configurator tool](http://knops.io/configurator.html) for this.
\ No newline at end of file diff --git a/keyboards/knops/mini/keymaps/knops/keymap.c b/keyboards/knops/mini/keymaps/knops/keymap.c deleted file mode 100644 index 15d9e5bc11..0000000000 --- a/keyboards/knops/mini/keymaps/knops/keymap.c +++ /dev/null @@ -1,142 +0,0 @@ -#include "mini.h" - -/*KNOPS_MISC*/ - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - /*KNOPS_KEYMAP*/ - -}; - -void set_led_state(int ledId, bool state) { - if(state) { - switch(ledId) { - /* LED 0 to 5 are the leds of each keyswitch. From left to right, top to bottom. These are equal to the numbers in the legends of the default keycaps. */ - case 0: - PORTD |= (1<<7); - break; - case 1: - if((PINB & (1 << 7)) != 0) { - PORTC |= (1<<6); - } else { - PORTC |= (1<<7); - } - break; - case 2: - PORTD |= (1<<4); - break; - case 3: - PORTE |= (1<<6); - break; - case 4: - PORTB |= (1<<4); - break; - case 5: - PORTD |= (1<<6); - break; - /* LED 6 to 8 are the three layer leds in front of the device from left to right. */ - case 6: - PORTD &= ~(1<<5); - break; - case 7: - PORTB |= (1<<6); - break; - case 8: - PORTB &= ~(1<<0); - break; - } - } else { - switch(ledId) { - case 0: - PORTD &= ~(1<<7); - break; - case 1: - if((PINB & (1 << 7)) != 0) { - PORTC &= ~(1<<6); - } else { - PORTC &= ~(1<<7); - } - break; - case 2: - PORTD &= ~(1<<4); - break; - case 3: - PORTE &= ~(1<<6); - break; - case 4: - PORTB &= ~(1<<4); - break; - case 5: - PORTD &= ~(1<<6); - break; - case 6: - PORTD |= (1<<5); - break; - case 7: - PORTB &= ~(1<<6); - break; - case 8: - PORTB |= (1<<0); - break; - } - } -} - -void led_init_ports_user(void) { - PORTB |= (1 << 7); - DDRB &= ~(1<<7); - - DDRD |= (1<<7); - DDRC |= (1<<6); - DDRC |= (1<<7); - DDRD |= (1<<4); - DDRE |= (1<<6); - DDRB |= (1<<4); - DDRD |= (1<<6); - - DDRD |= (1<<5); - DDRB |= (1<<6); - DDRB |= (1<<0); -} - -void led_set_layer(int layer) { - - /*KNOPS_SIMPLELED_STATES*/ - -} - -void matrix_init_user(void) { - led_init_ports_user(); - - led_set_layer(1); - - /*KNOPS_INIT*/ -} - -const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { - //keyevent_t event = record->event; - - /*KNOPS_MACRO*/ - return NULL; -} - - -void matrix_scan_user(void) { - /*KNOPS_SCAN*/ -} - -void led_set_user(uint8_t usb_led) { - - /*KNOPS_FUNCTIONALLED_STATES*/ - -} - -bool process_record_user (uint16_t keycode, keyrecord_t *record) { - - /*KNOPS_PROCESS_STATE*/ - - return NULL; - -} - - diff --git a/keyboards/knops/mini/keymaps/knops/readme.md b/keyboards/knops/mini/keymaps/knops/readme.md deleted file mode 100644 index 58696974ed..0000000000 --- a/keyboards/knops/mini/keymaps/knops/readme.md +++ /dev/null @@ -1,11 +0,0 @@ -# Default Knops Mini Layout - -![Knops logo](http://knops.io/img/Knops_logo.jpg) - -![Knops Mini Layout Image](https://i.imgur.com/WQBQctm.png) - -This is the keymap that our configurator uses to compile new keymaps and features. Here is a screenshot: - -![Knops Mini Layout Image](https://i.imgur.com/afH1NOt.png) - -As of 12th of february 2018, this tool has not yet been released to the public. You may have a look at our older tool, KBFlasher: [our (almost outdated) configurator tool](http://knops.io/configurator.html) for this.
\ No newline at end of file diff --git a/keyboards/knops/mini/keymaps/mverteuil/config.h b/keyboards/knops/mini/keymaps/mverteuil/config.h deleted file mode 100644 index 584296cfaa..0000000000 --- a/keyboards/knops/mini/keymaps/mverteuil/config.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2017 Pawnerd, 2019 Matthew de Verteuil - * - * 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. - * |