1
0
Fork 0

Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
QMK Bot 2021-07-22 06:58:28 +00:00
commit 931bf52b74
12 changed files with 88 additions and 95 deletions

View file

@ -1,5 +1,5 @@
/* /*
Copyright 2020 pastapojken <pastapojken@gmail.com> Copyright 2020 farfalleflickan <farfalleflickan@gmail.com>
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define VENDOR_ID 0xDA12 #define VENDOR_ID 0xDA12
#define PRODUCT_ID 0x6060 #define PRODUCT_ID 0x6060
#define DEVICE_VER 0x0001 #define DEVICE_VER 0x0001
#define MANUFACTURER pastapojken #define MANUFACTURER farfalleflickan
#define PRODUCT nack keyboard #define PRODUCT nack keyboard
#define MATRIX_ROWS 4 #define MATRIX_ROWS 4
@ -48,12 +48,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#endif #endif
#ifdef AUDIO_ENABLE #ifdef AUDIO_ENABLE
#define STARTUP_SONG SONG(NO_SOUND)
#define AUDIO_PIN A5 #define AUDIO_PIN A5
#define AUDIO_PIN_ALT A4 #define AUDIO_PIN_ALT A4
#define AUDIO_PIN_ALT_AS_NEGATIVE #define STARTUP_SONG SONG(NO_SOUND)
/* #define AUDIO_DAC_SAMPLE_MAX 4095U
* Basically, change this section once pull request 6165 has been merged
* https://github.com/qmk/qmk_firmware/pull/6165
*/
#endif #endif

View file

@ -1,7 +1,7 @@
{ {
"keyboard_name": "nack", "keyboard_name": "nack",
"url": "https://github.com/pastapojken/nack", "url": "https://github.com/farfalleflickan/nack",
"maintainer": "pastapojken", "maintainer": "farfalleflickan",
"width": 13, "width": 13,
"height": 4, "height": 4,
"layouts": { "layouts": {

View file

@ -1,4 +1,4 @@
/* Copyright 2020 pastapojken <pastapojken@gmail.com> /* Copyright 2020 farfalleflickan <farfalleflickan@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -33,7 +33,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// | |---SHIFT----|---Z--------|---X--------|----C-------|-----V------|-----B------|-----N------|------M-----|---( ,; )---|---( .: )---|---( -_ )---|----UP------|-BACKSPACE--| // | |---SHIFT----|---Z--------|---X--------|----C-------|-----V------|-----B------|-----N------|------M-----|---( ,; )---|---( .: )---|---( -_ )---|----UP------|-BACKSPACE--|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_BSPC, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_BSPC,
// | |---CTRL-----|---ALT------|---META-----|----FN_1----|----------SPACE----------|----FN_2----|----AltGr---|--( <>| )---|---ENETER---|-LEFT-------|---DOWN-----|--RIGHT-----| // | |---CTRL-----|---ALT------|---META-----|----FN_1----|----------SPACE----------|----FN_2----|----AltGr---|--( <>| )---|---ENETER---|-LEFT-------|---DOWN-----|--RIGHT-----|
KC_LCTL, KC_LALT, KC_LGUI, TT(NUM), KC_SPC, KC_NO, TT(FN), KC_RALT, KC_NUBS, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT KC_LCTL, KC_LALT, KC_LGUI, MO(NUM), KC_SPC, KC_NO, MO(FN), KC_RALT, KC_NUBS, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________| // \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
), ),
[NUM] = LAYOUT( [NUM] = LAYOUT(
@ -46,7 +46,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// | |---SHIFT----|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------| // | |---SHIFT----|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|
_______, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, _______, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
// | |---CTRL-----|---ALT------|---META-----|---FN_1-----|------------|------------|----FN_2----|--AltGr-----|---( §½ )---|------------|------------|------------|------------| // | |---CTRL-----|---ALT------|---META-----|---FN_1-----|------------|------------|----FN_2----|--AltGr-----|---( §½ )---|------------|------------|------------|------------|
_______, _______, _______, TT(FN), KC_NO, KC_NO, TO(BASE), _______, KC_GRV, KC_NO, KC_NO, KC_NO, KC_NO _______, _______, _______, MO(FN), KC_NO, KC_NO, TO(BASE), _______, KC_GRV, KC_NO, KC_NO, KC_NO, KC_NO
// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________| // \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
), ),
[FN] = LAYOUT( [FN] = LAYOUT(
@ -59,7 +59,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// | |------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|-RGB LIGHT +|------------| // | |------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|-RGB LIGHT +|------------|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAI, KC_NO,
// | |------------|------------|------------|---FN_1-----|------------|------------|----FN_2----|------------|------------|------------|------------|-RGB LIGHT -|------------| // | |------------|------------|------------|---FN_1-----|------------|------------|----FN_2----|------------|------------|------------|------------|-RGB LIGHT -|------------|
KC_NO, KC_NO, KC_NO, TT(NUM), KC_NO, KC_NO, TO(BASE), KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAD, KC_NO KC_NO, KC_NO, KC_NO, MO(NUM), KC_NO, KC_NO, TO(BASE), KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAD, KC_NO
// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________| // \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
) )
}; };

View file

@ -1,4 +1,4 @@
/* Copyright 2020 pastapojken <pastapojken@gmail.com> /* Copyright 2020 farfalleflickan <farfalleflickan@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -21,6 +21,7 @@
// Defines names for use in layer keycodes and the keymap // Defines names for use in layer keycodes and the keymap
enum layer_names { enum layer_names {
BASE, BASE,
NOGUI,
NUM, NUM,
FN FN
}; };
@ -30,10 +31,6 @@ enum custom_keycodes {
CK_LSFT = SAFE_RANGE, // Shift CK_LSFT = SAFE_RANGE, // Shift
CK_RALT, // AltGr CK_RALT, // AltGr
CK_BSPC_DEL, // Backspace or Del (if pressed with CK_LSFT or CK_RALT) CK_BSPC_DEL, // Backspace or Del (if pressed with CK_LSFT or CK_RALT)
CK_UP_PGUP, // Up or PgUp (if pressed with CK_LSFT or CK_RALT)
CK_DOWN_PGDOWN, // Down or PgDown (if pressed with CK_LSFT or CK_RALT)
CK_LEFT_HOME, // Left or Home (if pressed with CK_LSFT or CK_RALT)
CK_RIGHT_END, // Right or End (if pressed with CK_LSFT or CK_RALT)
KK_RESET KK_RESET
}; };
@ -46,9 +43,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// | |----ESC-----|---A--------|---S--------|----D-------|-----F------|-----G------|-----H------|-----J------|-----K------|-----L------|-----Ö------|-----Ä------|--( '* )----| // | |----ESC-----|---A--------|---S--------|----D-------|-----F------|-----G------|-----H------|-----J------|-----K------|-----L------|-----Ö------|-----Ä------|--( '* )----|
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS,
// | |---SHIFT----|---Z--------|---X--------|----C-------|-----V------|-----B------|-----N------|------M-----|---( ,; )---|---( .: )---|---( -_ )---|----UP------|-BACKSPACE--| // | |---SHIFT----|---Z--------|---X--------|----C-------|-----V------|-----B------|-----N------|------M-----|---( ,; )---|---( .: )---|---( -_ )---|----UP------|-BACKSPACE--|
CK_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, CK_UP_PGUP, CK_BSPC_DEL, CK_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, CK_BSPC_DEL,
// | |---CTRL-----|---ALT------|---META-----|----FN_1----|----------SPACE----------|----FN_2----|----AltGr---|--( <>| )---|---ENETER---|-LEFT-------|---DOWN-----|--RIGHT-----| // | |---CTRL-----|---ALT------|---META-----|----FN_1----|----------SPACE----------|----FN_2----|----AltGr---|--( <>| )---|---ENTER----|-LEFT-------|---DOWN-----|--RIGHT-----|
KC_LCTL, KC_LALT, KC_LGUI, TT(NUM), KC_SPC, KC_NO, TT(FN), CK_RALT, KC_NUBS, KC_ENT, CK_LEFT_HOME,CK_DOWN_PGDOWN,CK_RIGHT_END KC_LCTL, KC_LALT, KC_LGUI, MO(NUM), KC_SPC, KC_NO, MO(FN), CK_RALT, KC_NUBS, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
),
[NOGUI] = LAYOUT(
/* __________________________________________________________________________________________________________________________________________________________________________
| \ \ \ \ \ \ \ \ \ \ \ \ \ \ */
// | |----TAB-----|---Q--------|-----W------|-----E------|-----R------|----T-------|-----Y------|-----U------|----I-------|------O-----|----P-------|----Å-------|--( ¨^~ )---|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC,
// | |----ESC-----|---A--------|---S--------|----D-------|-----F------|-----G------|-----H------|-----J------|-----K------|-----L------|-----Ö------|-----Ä------|--( '* )----|
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS,
// | |---SHIFT----|---Z--------|---X--------|----C-------|-----V------|-----B------|-----N------|------M-----|---( ,; )---|---( .: )---|---( -_ )---|----UP------|-BACKSPACE--|
CK_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, CK_BSPC_DEL,
// | |---CTRL-----|---ALT------|---META-----|----FN_1----|----------SPACE----------|----FN_2----|----AltGr---|--( <>| )---|---ENTER----|-LEFT-------|---DOWN-----|--RIGHT-----|
KC_LCTL, KC_LALT, KC_NO, MO(NUM), KC_SPC, KC_NO, TO(BASE), CK_RALT, KC_NUBS, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________| // \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
), ),
[NUM] = LAYOUT( [NUM] = LAYOUT(
@ -59,9 +69,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// | |----ESC-----|-----F1-----|-----F2-----|----F3------|----F4------|----F5------|-----F6-----|-----F7------|----F8-----|-----F9-----|-----F10----|----F11-----|----F12-----| // | |----ESC-----|-----F1-----|-----F2-----|----F3------|----F4------|----F5------|-----F6-----|-----F7------|----F8-----|-----F9-----|-----F10----|----F11-----|----F12-----|
____, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, ____, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
// | |---SHIFT----|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------| // | |---SHIFT----|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|
____, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, ____, KC_P0, KC_P1, KC_P2, KC_P3, KC_P4, KC_P5, KC_P6, KC_P7, KC_P8, KC_P9, KC_PGUP, KC_NO,
// | |---CTRL-----|---ALT------|---META-----|---FN_1-----|------------|------------|----FN_2----|--AltGr-----|---( §½ )---|------------|------------|------------|------------| // | |---CTRL-----|---ALT------|---META-----|---FN_1-----|------------|------------|----FN_2----|--AltGr-----|---( §½ )---|------------|------------|------------|------------|
____, ____, ____, TT(FN), KC_NO, KC_NO, TO(BASE), ____, KC_GRV, KC_NO, KC_NO, KC_NO, KC_NO ____, ____, ____, TO(BASE), KC_NO, KC_NO, MO(FN), ____, KC_GRV, KC_PDOT, KC_HOME, KC_PGDOWN, KC_END
// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________| // \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
), ),
[FN] = LAYOUT( [FN] = LAYOUT(
@ -74,7 +84,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// | |------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|-RGB LIGHT +|------------| // | |------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|------------|-RGB LIGHT +|------------|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAI, KC_NO,
// | |------------|------------|------------|---FN_1-----|------------|------------|----FN_2----|------------|------------|------------|------------|-RGB LIGHT -|------------| // | |------------|------------|------------|---FN_1-----|------------|------------|----FN_2----|------------|------------|------------|------------|-RGB LIGHT -|------------|
KC_NO, KC_NO, KC_NO, TT(NUM), KC_NO, KC_NO, TO(BASE), KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAD, KC_NO KC_NO, KC_NO, KC_NO, TO(BASE), KC_NO, KC_NO, TO(BASE), TO(NOGUI), KC_NO, KC_NO, KC_NO, RGB_VAD, KC_NO
// \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________| // \|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|____________|
) )
}; };
@ -138,6 +148,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
lshift = false; lshift = false;
} }
return false; return false;
break;
case CK_RALT: case CK_RALT:
if(record->event.pressed) { if(record->event.pressed) {
unregister_code(KC_RALT); unregister_code(KC_RALT);
@ -149,20 +160,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
ralt = false; ralt = false;
} }
return false; return false;
break;
case CK_BSPC_DEL: case CK_BSPC_DEL:
if (ralt==true) {
RALT_NO(KC_BSPC,KC_DEL); RALT_NO(KC_BSPC,KC_DEL);
break; } else {
case CK_UP_PGUP: SHIFT_NO(KC_BSPC,KC_DEL);
RALT_NO(KC_UP,KC_PGUP); }
break;
case CK_DOWN_PGDOWN:
RALT_NO(KC_DOWN,KC_PGDOWN);
break;
case CK_LEFT_HOME:
RALT_NO(KC_LEFT,KC_HOME);
break;
case CK_RIGHT_END:
RALT_NO(KC_RIGHT,KC_END);
break; break;
case KK_RESET: // Basically, turn off RGB before resetting case KK_RESET: // Basically, turn off RGB before resetting
if (record->event.pressed) { if (record->event.pressed) {

View file

@ -1,4 +1,4 @@
/* Copyright 2020 pastapojken <pastapojken@gmail.com> /* Copyright 2020 farfalleflickan <farfalleflickan@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -17,12 +17,6 @@
#pragma once #pragma once
#include "quantum.h" #include "quantum.h"
#define TAPPING_TOGGLE 2
#ifdef AUDIO_ENABLE
#define STARTUP_SONG SONG(NO_SOUND)
#endif
void add_to_prev(uint16_t kc); void add_to_prev(uint16_t kc);
void unreg_prev(void); void unreg_prev(void);
void timer_timeout_keymap(void); void timer_timeout_keymap(void);

View file

@ -0,0 +1 @@
# farfalleflickan's keymap for nack

View file

@ -1 +0,0 @@
# pastapojken's keymap for nack

View file

@ -28,4 +28,3 @@
#undef STM32_SPI_USE_SPI2 #undef STM32_SPI_USE_SPI2
#define STM32_SPI_USE_SPI2 FALSE #define STM32_SPI_USE_SPI2 FALSE

View file

@ -1,4 +1,4 @@
/* Copyright 2020 pastapojken <pastapojken@gmail.com> /* Copyright 2020 farfalleflickan <farfalleflickan@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by

View file

@ -1,4 +1,4 @@
/* Copyright 2020 pastapojken <pastapojken@gmail.com> /* Copyright 2020 farfalleflickan <farfalleflickan@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by

View file

@ -4,9 +4,9 @@
A ISO-friendly ortholinear keyboard, 13x4 keys. A ISO-friendly ortholinear keyboard, 13x4 keys.
See [screenshots](https://imgur.com/a/PPO18Lc). See [screenshots](https://imgur.com/a/PPO18Lc).
* Keyboard Maintainer: [pastapojken](https://github.com/pastapojken) * Keyboard Maintainer: [farfalleflickan](https://github.com/farfalleflickan)
* Hardware Supported: nack PCB * Hardware Supported: nack PCB
* Hardware Availability: [github repo](https://github.com/pastapojken/nack) * Hardware Availability: [github repo](https://github.com/farfalleflickan/nack)
Make example for this keyboard (after setting up your build environment): Make example for this keyboard (after setting up your build environment):

View file

@ -24,5 +24,5 @@ AUDIO_ENABLE = yes # Audio output
RGB_MATRIX_ENABLE = yes RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = WS2812 RGB_MATRIX_DRIVER = WS2812
WS2812_DRIVER = spi WS2812_DRIVER = spi
AUDIO_DRIVER = dac_additive # How to drive the 2 speakers AUDIO_DRIVER = dac_basic # How to drive the 2 speakers
UNICODE_ENABLE = yes # Unicode support UNICODE_ENABLE = yes # Unicode support