From b61d5f65279bed26ad1ead27b5e6a0fa528158ff Mon Sep 17 00:00:00 2001 From: drhigsby Date: Mon, 2 May 2022 15:20:03 -0700 Subject: [PATCH] whole buncha stuff whole buncha stuff --- keyboards/letitslide/config.h | 60 +++++++++++ keyboards/letitslide/info.json | 18 ++++ keyboards/letitslide/keymaps/default/keymap.c | 102 ++++++++++++++++++ .../letitslide/keymaps/default/readme.md | 1 + keyboards/letitslide/keymaps/split.zip | Bin 0 -> 1652 bytes keyboards/letitslide/keymaps/split/keymap.c | 102 ++++++++++++++++++ keyboards/letitslide/keymaps/split/readme.md | 1 + keyboards/letitslide/letitslide.c | 16 +++ keyboards/letitslide/letitslide.h | 58 ++++++++++ keyboards/letitslide/readme.md | 15 +++ keyboards/letitslide/rules.mk | 25 +++++ keyboards/sleepyfox/config.h | 60 +++++++++++ keyboards/sleepyfox/info.json | 12 +++ keyboards/sleepyfox/keymaps/default/keymap.c | 62 +++++++++++ keyboards/sleepyfox/keymaps/default/readme.md | 1 + keyboards/sleepyfox/readme.md | 16 +++ keyboards/sleepyfox/rules.mk | 23 ++++ keyboards/sleepyfox/sleepyfox.c | 16 +++ keyboards/sleepyfox/sleepyfox.h | 32 ++++++ keyboards/warpstone/config.h | 59 ++++++++++ keyboards/warpstone/info.json | 22 ++++ keyboards/warpstone/keymaps/default/keymap.c | 79 ++++++++++++++ keyboards/warpstone/keymaps/default/readme.md | 1 + .../warpstone/keymaps/double175/keymap.c | 79 ++++++++++++++ .../warpstone/keymaps/double175/readme.md | 1 + keyboards/warpstone/readme.md | 15 +++ keyboards/warpstone/rules.mk | 23 ++++ keyboards/warpstone/warpstone.c | 16 +++ keyboards/warpstone/warpstone.h | 71 ++++++++++++ 29 files changed, 986 insertions(+) create mode 100644 keyboards/letitslide/config.h create mode 100644 keyboards/letitslide/info.json create mode 100644 keyboards/letitslide/keymaps/default/keymap.c create mode 100644 keyboards/letitslide/keymaps/default/readme.md create mode 100644 keyboards/letitslide/keymaps/split.zip create mode 100644 keyboards/letitslide/keymaps/split/keymap.c create mode 100644 keyboards/letitslide/keymaps/split/readme.md create mode 100644 keyboards/letitslide/letitslide.c create mode 100644 keyboards/letitslide/letitslide.h create mode 100644 keyboards/letitslide/readme.md create mode 100644 keyboards/letitslide/rules.mk create mode 100644 keyboards/sleepyfox/config.h create mode 100644 keyboards/sleepyfox/info.json create mode 100644 keyboards/sleepyfox/keymaps/default/keymap.c create mode 100644 keyboards/sleepyfox/keymaps/default/readme.md create mode 100644 keyboards/sleepyfox/readme.md create mode 100644 keyboards/sleepyfox/rules.mk create mode 100644 keyboards/sleepyfox/sleepyfox.c create mode 100644 keyboards/sleepyfox/sleepyfox.h create mode 100644 keyboards/warpstone/config.h create mode 100644 keyboards/warpstone/info.json create mode 100644 keyboards/warpstone/keymaps/default/keymap.c create mode 100644 keyboards/warpstone/keymaps/default/readme.md create mode 100644 keyboards/warpstone/keymaps/double175/keymap.c create mode 100644 keyboards/warpstone/keymaps/double175/readme.md create mode 100644 keyboards/warpstone/readme.md create mode 100644 keyboards/warpstone/rules.mk create mode 100644 keyboards/warpstone/warpstone.c create mode 100644 keyboards/warpstone/warpstone.h diff --git a/keyboards/letitslide/config.h b/keyboards/letitslide/config.h new file mode 100644 index 000000000000..70f1f24f57fe --- /dev/null +++ b/keyboards/letitslide/config.h @@ -0,0 +1,60 @@ +/* Copyright 2021 drhigsby + * + * 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 . + */ +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define MANUFACTURER DrHigsby +#define PRODUCT Let It Slide! +#define VENDOR_ID 0x0007 +#define PRODUCT_ID 0x0001 +#define DEVICE_VER 0x0005 + +/* key matrix size */ +#define MATRIX_ROWS 4 +#define MATRIX_COLS 13 + +/* + * 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) + * + */ + +/* key matrix pins */ +#define MATRIX_ROW_PINS { F4, F5, D5, D3 } +#define MATRIX_COL_PINS { C7, C6, B6, B5, B4, D7, D6, D4, B2, B3, D1, D0, D2 } +#define UNUSED_PINS + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* 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 + +/* Define encoder pads */ +#define ENCODERS_PAD_A { F7 } +#define ENCODERS_PAD_B { F6 } diff --git a/keyboards/letitslide/info.json b/keyboards/letitslide/info.json new file mode 100644 index 000000000000..fb7c7e40c1b9 --- /dev/null +++ b/keyboards/letitslide/info.json @@ -0,0 +1,18 @@ +{ + "keyboard_name": "Let It Slide!", + "url": "http://www.keyboard-layout-editor.com/#/gists/a9bf583ebcf8c970eae7cfc119dd2f25", + "maintainer": "drhigsby", + "layouts": { + "LAYOUT_625u": { + "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"{", "x":11, "y":0}, {"label":"}", "x":12, "y":0}, {"label":"Back", "x":13, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.25}, {"label":"A", "x":1.25, "y":1}, {"label":"S", "x":2.25, "y":1}, {"label":"D", "x":3.25, "y":1}, {"label":"F", "x":4.25, "y":1}, {"label":"G", "x":5.25, "y":1}, {"label":"H", "x":6.25, "y":1}, {"label":"J", "x":7.25, "y":1}, {"label":"K", "x":8.25, "y":1}, {"label":"L", "x":9.25, "y":1}, {"label":":", "x":10.25, "y":1}, {"label":"\"", "x":11.25, "y":1}, {"label":"Enter", "x":12.25, "y":1, "w":1.75}, {"label":"Shift", "x":0, "y":2, "w":1.75}, {"label":"Z", "x":1.75, "y":2}, {"label":"X", "x":2.75, "y":2}, {"label":"C", "x":3.75, "y":2}, {"label":"V", "x":4.75, "y":2}, {"label":"B", "x":5.75, "y":2}, {"label":"N", "x":6.75, "y":2}, {"label":"M", "x":7.75, "y":2}, {"label":"<", "x":8.75, "y":2}, {"label":">", "x":9.75, "y":2}, {"label":"?", "x":10.75, "y":2}, {"label":"Shift", "x":11.75, "y":2, "w":1.25}, {"label":"↑", "x":13, "y":2}, {"label":"Ctrl", "x":0, "y":3}, {"label":"Win", "x":1, "y":3}, {"label":"Alt", "x":2, "y":3}, {"label":"", "x":3, "y":3, "w":6.25}, {"label":"Fn", "x":9.25, "y":3, "w":1.25}, {"label":"Any", "x":10.5, "y":3, "w":1.25}, {"label":"←", "x":12, "y":3}, {"label":"↓", "x":13, "y":3}, {"label":"→", "x":14, "y":3}] + }, + + "LAYOUT_225u_2u": { + "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"{", "x":11, "y":0}, {"label":"}", "x":12, "y":0}, {"label":"Back", "x":13, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.25}, {"label":"A", "x":1.25, "y":1}, {"label":"S", "x":2.25, "y":1}, {"label":"D", "x":3.25, "y":1}, {"label":"F", "x":4.25, "y":1}, {"label":"G", "x":5.25, "y":1}, {"label":"H", "x":6.25, "y":1}, {"label":"J", "x":7.25, "y":1}, {"label":"K", "x":8.25, "y":1}, {"label":"L", "x":9.25, "y":1}, {"label":":", "x":10.25, "y":1}, {"label":"\"", "x":11.25, "y":1}, {"label":"Enter", "x":12.25, "y":1, "w":1.75}, {"label":"Shift", "x":0, "y":2, "w":1.75}, {"label":"Z", "x":1.75, "y":2}, {"label":"X", "x":2.75, "y":2}, {"label":"C", "x":3.75, "y":2}, {"label":"V", "x":4.75, "y":2}, {"label":"B", "x":5.75, "y":2}, {"label":"N", "x":6.75, "y":2}, {"label":"M", "x":7.75, "y":2}, {"label":"<", "x":8.75, "y":2}, {"label":">", "x":9.75, "y":2}, {"label":"?", "x":10.75, "y":2}, {"label":"Shift", "x":11.75, "y":2, "w":1.25}, {"label":"↑", "x":13, "y":2}, {"label":"Ctrl", "x":0, "y":3}, {"label":"Win", "x":1, "y":3}, {"label":"Alt", "x":2, "y":3}, {"x":3, "y":3}, {"label":"", "x":4, "y":3, "w":2.25}, {"label":"", "x":6.25, "y":3, "w":2}, {"x":8.25, "y":3}, {"label":"Fn", "x":9.25, "y":3, "w":1.25}, {"label":"Any", "x":10.5, "y":3, "w":1.25}, {"label":"←", "x":12, "y":3}, {"label":"↓", "x":13, "y":3}, {"label":"→", "x":14, "y":3}] + }, + + "LAYOUT_2x3u": { + "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"{", "x":11, "y":0}, {"label":"}", "x":12, "y":0}, {"label":"Back", "x":13, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.25}, {"label":"A", "x":1.25, "y":1}, {"label":"S", "x":2.25, "y":1}, {"label":"D", "x":3.25, "y":1}, {"label":"F", "x":4.25, "y":1}, {"label":"G", "x":5.25, "y":1}, {"label":"H", "x":6.25, "y":1}, {"label":"J", "x":7.25, "y":1}, {"label":"K", "x":8.25, "y":1}, {"label":"L", "x":9.25, "y":1}, {"label":":", "x":10.25, "y":1}, {"label":"\"", "x":11.25, "y":1}, {"label":"Enter", "x":12.25, "y":1, "w":1.75}, {"label":"Shift", "x":0, "y":2, "w":1.75}, {"label":"Z", "x":1.75, "y":2}, {"label":"X", "x":2.75, "y":2}, {"label":"C", "x":3.75, "y":2}, {"label":"V", "x":4.75, "y":2}, {"label":"B", "x":5.75, "y":2}, {"label":"N", "x":6.75, "y":2}, {"label":"M", "x":7.75, "y":2}, {"label":"<", "x":8.75, "y":2}, {"label":">", "x":9.75, "y":2}, {"label":"?", "x":10.75, "y":2}, {"label":"Shift", "x":11.75, "y":2, "w":1.25}, {"label":"↑", "x":13, "y":2}, {"label":"Ctrl", "x":0, "y":3}, {"label":"Win", "x":1, "y":3}, {"x":2, "y":3, "w":1.25}, {"label":"", "x":3.25, "y":3, "w":3}, {"label":"", "x":6.25, "y":3, "w":3}, {"label":"Fn", "x":9.25, "y":3, "w":1.25}, {"label":"Any", "x":10.5, "y":3, "w":1.25}, {"label":"←", "x":12, "y":3}, {"label":"↓", "x":13, "y":3}, {"label":"→", "x":14, "y":3}] + } + } +} diff --git a/keyboards/letitslide/keymaps/default/keymap.c b/keyboards/letitslide/keymaps/default/keymap.c new file mode 100644 index 000000000000..df915e43219d --- /dev/null +++ b/keyboards/letitslide/keymaps/default/keymap.c @@ -0,0 +1,102 @@ +/* Copyright 2021 drhigsby + * + * 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 + +#include "analog.h" + +#define POT_TOLERANCE 50 +#define POT_PIN F0 +#include "print.h" + +int16_t max_pot_val = 1023; +int16_t max_ticks = 50; +int16_t ticks = 0; +int16_t pot_oldVal = 0; +int16_t pot_val = 0; + +void matrix_init_user(void) { + analogReference(ADC_REF_POWER); + for (int i = 0; i POT_TOLERANCE) { + uprintf("Pot Val: %d",pot_val); + int num_ticks = ((float)pot_val/max_pot_val)*max_ticks; + int delta_ticks = num_ticks - ticks; + if (delta_ticks > 0) { + for (int i = 0; is!)IOw20ox@aY0UIiGFr!Wo}}DUh>uO-27V} z0{`SR|0hnl?0MmmL&oLpCR1fLaQ1GDy{+y3tikkMU@w z8^@EJbJr8y?j33qHQ)|D;o(v|?_%ab&H%ndsjZQ0-eMPbvItLhm72&?;nOfVXD0LP z)BTO6ZH%6tVrmaWF1MUJu*7)MGZv>Ux@n(gxGdN+DVpbDYj_nSoAZ+i!PB-i1YAik z@ZTh}e_^zwreO2|qs~hlI}7ZXw+Ttle({lQ(uDWl=GB?A?+#F2u(GB9CfDLFL6OHX zmsJ`y8odqJe|j>|FOoBy0-UH8n;S$C&8SGQg`r)x%!E_d+0 zg90i?Jj$!D?{MEOHOslaX<~!n7u~y`4{V6NaNuH0{SE2av$)UQD9!P=XZ_Go(Bsh} zpHii_y7goa2Y=?I_lxEybQXUx=v3f)&pEBi?S<_x@k2bbpFarBR{9+h@zwKtENm$|(bAXGVw?PrZ7Y*sRa?y||7Lpb0@LDP_Q+I|r>bmT z>H5rkr$0n*NV3^++(G~0n#;9y8`nQ6`DW^VwQ~8g6>6`GnOapZu4S#A}G zF5NXK%DAQR`Tm-oEw>jL9*I_-5{kQIhT2PPEw7Pp1g%a#Bf5qy0{i0O;o-Q$I-09Q( zbla=mV>XG3`O~~_Z!OETyZN+AUO|bIf4hM7j`R;1rfwnef90&I>$*SgIJQ-`J#^hM z$F0Y|N*t}YQESKG`Qg-$m7x=V&U*UnzRBJH6JJJE%cZT}mi<0u>dpJ5>)(Vm{r+(1 z{)1HgSgv&@{`sCKrTTT=hMjC{eXakhyyMcL6M0j(XIsxrJXv{o)!Dy&%mzmHx7sus zCujEMCzf85y)M`DMX*M7cIu8(_Vqt)F4dI(&@6aso&WpdX5aVR$AZ${Z~hYIGvgM^ z{3#1=+v+#vUA(cBL6@&&{dJ*3?w;>euBw)*epQ|8VKuEpW2Np&<&~9BwFI^ct+QEv z{g!cy|D-D!ld2|tQ#DnQ^{CQ)$?lmivMuVqvF_7nH^SszihZ)>UiMsLdEMkMlb4*D z8~t?360YIrPk@`U2IpK#+dsT#T zuGfC(t6CDWt8Loygs=U}gnsSX8UJwJvlW|O&G(ra>f2hrcB<#w*{hbz?9G{cZ-dB| ziHk#KJ=Z>1a>q!0>H{9xt24qQmd?s7tcWsw_~G}*Bl`tiWWIUSr+lA(Y4$2@5&eKH9oql%QpN?Ytr+sy&-R=Cao8(4$gZ&WzP}I*J1DeT`$=0 z{$GE`CY?tHtGMeAts(p3-e!TtG-`2mb-Rpa6tRCT3G4bJk(MZQD=eO81 z20+VY28QyC_+Xu>e`6GY. + */ +#include QMK_KEYBOARD_H + +#include "analog.h" + +#define POT_TOLERANCE 50 +#define POT_PIN F0 +#include "print.h" + +int16_t max_pot_val = 1023; +int16_t max_ticks = 50; +int16_t ticks = 0; +int16_t pot_oldVal = 0; +int16_t pot_val = 0; + +void matrix_init_user(void) { + analogReference(ADC_REF_POWER); + for (int i = 0; i POT_TOLERANCE) { + uprintf("Pot Val: %d",pot_val); + int num_ticks = ((float)pot_val/max_pot_val)*max_ticks; + int delta_ticks = num_ticks - ticks; + if (delta_ticks > 0) { + for (int i = 0; i. + */ +#include "letitslide.h" diff --git a/keyboards/letitslide/letitslide.h b/keyboards/letitslide/letitslide.h new file mode 100644 index 000000000000..aabe81bdbd43 --- /dev/null +++ b/keyboards/letitslide/letitslide.h @@ -0,0 +1,58 @@ +/* Copyright 2021 drhigsby + * + * 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 . + */ +#pragma once + +#include "quantum.h" + + +#define LAYOUT_625u( \ + k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k312, \ + k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, \ + k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, \ + k300, k301, k302, k304, k307, k308, k309, k310, k311 \ +) \ +{ \ + { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012 }, \ + { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112 }, \ + { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212 }, \ + { k300, k301, k302, KC_NO, k304, KC_NO, KC_NO, k307, k308, k309, k310, k311, k312 } \ +} + +#define LAYOUT_225u_2u( \ + k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k312, \ + k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, \ + k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, \ + k300, k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311 \ +) \ +{ \ + { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012 }, \ + { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112 }, \ + { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212 }, \ + { k300, k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312 } \ +} + +#define LAYOUT_2x3u( \ + k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k312, \ + k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, \ + k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, \ + k300, k301, k302, k304, k305, k307, k308, k309, k310, k311 \ +) \ +{ \ + { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012 }, \ + { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112 }, \ + { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212 }, \ + { k300, k301, k302, KC_NO, k304, k305, KC_NO, k307, k308, k309, k310, k311, k312 } \ +} diff --git a/keyboards/letitslide/readme.md b/keyboards/letitslide/readme.md new file mode 100644 index 000000000000..08594a715238 --- /dev/null +++ b/keyboards/letitslide/readme.md @@ -0,0 +1,15 @@ +# Let It Slide! + +![Let It Slide!](https://i.imgur.com/) + +Let It Slide! Is a 14u wide 40% keyboard featuring a potentiometer slider and full punctuation. + +* Keyboard Maintainer: [H. Bond](https://github.com/drhigsby) +* Hardware Supported: Let It Slide! (https://github.com/drhigsby/letitslide) +* Hardware Availability: Make your own + +Make example for this keyboard (after setting up your build environment): + + make letitslide:default + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/letitslide/rules.mk b/keyboards/letitslide/rules.mk new file mode 100644 index 000000000000..273959c8f236 --- /dev/null +++ b/keyboards/letitslide/rules.mk @@ -0,0 +1,25 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +BOOTLOADER = caterina + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +NKRO_ENABLE = yes # USB Nkey Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output +LTO_ENABLE = no # Use link time optimization +ENCODER_ENABLE = yes + +SRC += analog.c diff --git a/keyboards/sleepyfox/config.h b/keyboards/sleepyfox/config.h new file mode 100644 index 000000000000..628c391eb60b --- /dev/null +++ b/keyboards/sleepyfox/config.h @@ -0,0 +1,60 @@ +/* Copyright 2021 drhigsby + * + * 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 . + */ +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define MANUFACTURER DrHigsby +#define PRODUCT Sleepy Fox +#define VENDOR_ID 0x0420 +#define PRODUCT_ID 0x0422 +#define DEVICE_VER 0x0420 + +/* key matrix size */ +#define MATRIX_ROWS 4 +#define MATRIX_COLS 12 + +/* Define encoder pads */ +#define ENCODERS_PAD_A { B6 } +#define ENCODERS_PAD_B { B5 } + +/* + * 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) + * + */ + +/* key matrix pins */ +#define MATRIX_ROW_PINS { D7, B2, B4, E6 } +#define MATRIX_COL_PINS { F4, F5, F6, F7, B3, B1, C6, D4, D0, D1, D2, D3 } +#define UNUSED_PINS + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* 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 diff --git a/keyboards/sleepyfox/info.json b/keyboards/sleepyfox/info.json new file mode 100644 index 000000000000..0b4f0aeeee9a --- /dev/null +++ b/keyboards/sleepyfox/info.json @@ -0,0 +1,12 @@ +{ + "keyboard_name": "Sleepy Fox", + "url": "http://www.keyboard-layout-editor.com/#/gists/1908d22bb79aaf469599ea55e8e56f17", + "maintainer": "drhigsby", + "width": 12, + "height": 4, + "layouts": { + "LAYOUT": { + "layout": [{"x":0, "y":0, "w":1.25}, {"x":1.25, "y":0}, {"x":2.25, "y":0}, {"x":3.25, "y":0}, {"x":4.25, "y":0}, {"x":5.25, "y":0}, {"x":7.25, "y":0}, {"x":8.25, "y":0}, {"x":9.25, "y":0}, {"x":10.25, "y":0}, {"x":11.25, "y":0}, {"x":12.25, "y":0, "w":1.25}, {"x":0, "y":1, "w":1.25}, {"x":1.25, "y":1}, {"x":2.25, "y":1}, {"x":3.25, "y":1}, {"x":4.25, "y":1}, {"x":5.25, "y":1}, {"x":7.25, "y":1}, {"x":8.25, "y":1}, {"x":9.25, "y":1}, {"x":10.25, "y":1}, {"x":11.25, "y":1}, {"x":12.25, "y":1, "w":1.25}, {"x":0, "y":2, "w":1.25}, {"x":1.25, "y":2}, {"x":2.25, "y":2}, {"x":3.25, "y":2}, {"x":4.25, "y":2}, {"x":5.25, "y":2}, {"x":6.25, "y":2}, {"x":7.25, "y":2}, {"x":8.25, "y":2}, {"x":9.25, "y":2}, {"x":10.25, "y":2}, {"x":11.25, "y":2}, {"x":12.25, "y":2, "w":1.25}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3, "w":1.5}, {"x":6.75, "y":3, "w":1.5}, {"x":8.25, "y":3}, {"x":9.25, "y":3}] + } + } +} diff --git a/keyboards/sleepyfox/keymaps/default/keymap.c b/keyboards/sleepyfox/keymaps/default/keymap.c new file mode 100644 index 000000000000..bf416f634b8e --- /dev/null +++ b/keyboards/sleepyfox/keymaps/default/keymap.c @@ -0,0 +1,62 @@ +/* Copyright 2021 drhigsby + * + * 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 layers{ + _BASE, + _NUM, + _FN +}; + +#define NUM MO(_NUM) +#define FN MO(_FN) +#define ZZZ KC_TRNS + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_BASE] = LAYOUT( + KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, + KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, + KC_LALT, KC_LCTL, NUM, KC_CAPS, KC_SPC, KC_RGUI, FN + ), + + + [_NUM] = LAYOUT( + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, + KC_CAPS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_MINS, KC_EQL, ZZZ, + ZZZ, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_HOME, KC_END, KC_PIPE, KC_BSLS, KC_DQUO, KC_QUOT, ZZZ, + KC_PGUP, KC_PGDN, ZZZ, ZZZ, ZZZ, KC_PGUP, KC_PGDN + ), + + [_FN] = LAYOUT( + KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, + ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, + ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ, + KC_LBRC, KC_RBRC, ZZZ, ZZZ, ZZZ, ZZZ, ZZZ + ) + +}; + +bool encoder_update_user(uint8_t index, bool clockwise) { + if (index == 0) { + if (clockwise) { + tap_code(KC_PGUP); + } else { + tap_code(KC_PGDN); + } + } + return true; +} diff --git a/keyboards/sleepyfox/keymaps/default/readme.md b/keyboards/sleepyfox/keymaps/default/readme.md new file mode 100644 index 000000000000..84f9bc516b2f --- /dev/null +++ b/keyboards/sleepyfox/keymaps/default/readme.md @@ -0,0 +1 @@ +# Default Sleepy Fox Keymap diff --git a/keyboards/sleepyfox/readme.md b/keyboards/sleepyfox/readme.md new file mode 100644 index 000000000000..2c5b0e90da76 --- /dev/null +++ b/keyboards/sleepyfox/readme.md @@ -0,0 +1,16 @@ +# Sleepy Fox + +![Sleepy Fox](https://i.imgur.com/xxx) + +Sleepy Fox is a unibody split keyboard featuring 1.25u side mods, 1.5u spacebars, and columnar stagger. + +* Keyboard Maintainer: [H. Bond](https://github.com/drhigsby) +* Hardware Supported: Sleepy Fox (https://github.com/drhigsby/Sleepy-Fox) +* Hardware Availability: make your own + +Make example for this keyboard (after setting up your build environment): + + make sleepyfox:default + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). + diff --git a/keyboards/sleepyfox/rules.mk b/keyboards/sleepyfox/rules.mk new file mode 100644 index 000000000000..0e0fbcc840f9 --- /dev/null +++ b/keyboards/sleepyfox/rules.mk @@ -0,0 +1,23 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +# Teensy halfkay +# Pro Micro caterina +# Atmel DFU atmel-dfu +# LUFA DFU lufa-dfu +# QMK DFU qmk-dfu +# ATmega32A bootloadHID +# ATmega328P USBasp +BOOTLOADER = atmel-dfu + +BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +NKRO_ENABLE = yes # USB Nkey Rollover +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +TAP_DANCE_ENABLE = no +ENCODER_ENABLE = yes +OLED_DRIVER_ENABLE = no +COMBO_ENABLE = no diff --git a/keyboards/sleepyfox/sleepyfox.c b/keyboards/sleepyfox/sleepyfox.c new file mode 100644 index 000000000000..bacdf56b7507 --- /dev/null +++ b/keyboards/sleepyfox/sleepyfox.c @@ -0,0 +1,16 @@ +/* Copyright 2021 drhigsby + * + * 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 "sleepyfox.h" diff --git a/keyboards/sleepyfox/sleepyfox.h b/keyboards/sleepyfox/sleepyfox.h new file mode 100644 index 000000000000..f80e37c84db8 --- /dev/null +++ b/keyboards/sleepyfox/sleepyfox.h @@ -0,0 +1,32 @@ +/* Copyright 2021 drhigsby + * + * 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 . + */ +#pragma once + +#include "quantum.h" + +#define XXX KC_NO + +#define LAYOUT( \ + k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, \ + k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, \ + k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, \ + k303, k304, k305, k309, k306, k307, k308 \ +) { \ + { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011 }, \ + { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111 }, \ + { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211 }, \ + { XXX, XXX, XXX, k303, k304, k305, k306, k307, k308, k309, XXX, XXX } \ +} diff --git a/keyboards/warpstone/config.h b/keyboards/warpstone/config.h new file mode 100644 index 000000000000..09d3fb61d843 --- /dev/null +++ b/keyboards/warpstone/config.h @@ -0,0 +1,59 @@ +/* Copyright 2022 drhigsby + * + * 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 . + */ +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define MANUFACTURER DrHigsby +#define PRODUCT Warpstone +#define VENDOR_ID 0x0007 +#define PRODUCT_ID 0x0008 +#define DEVICE_VER 0x0001 + +/* key matrix size */ +#define MATRIX_ROWS 4 +#define MATRIX_COLS 10 + +/* + * 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) + * + */ + +/* key matrix pins */ +#define MATRIX_ROW_PINS { E6, D7, C6, D4 } +#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, B4, B5 } +#define UNUSED_PINS + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* 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 + +#define COMBO_COUNT 7 +#define COMBO_TERM 40 diff --git a/keyboards/warpstone/info.json b/keyboards/warpstone/info.json new file mode 100644 index 000000000000..5da10aca1790 --- /dev/null +++ b/keyboards/warpstone/info.json @@ -0,0 +1,22 @@ +{ + "keyboard_name": "warpstone", + "url": "http://www.keyboard-layout-editor.com/#/gists/da9202c4c069f9cc00b6be29940ffcfc", + "maintainer": "drhigsby", + "layouts": { + "LAYOUT_double175": { + "layout": [{"label":"Q", "x":0, "y":0, "w":1.5}, {"label":"W", "x":1.5, "y":0}, {"label":"E", "x":2.5, "y":0}, {"label":"R", "x":3.5, "y":0}, {"label":"T", "x":4.5, "y":0}, {"label":"Y", "x":5.5, "y":0}, {"label":"U", "x":6.5, "y":0}, {"label":"I", "x":7.5, "y":0}, {"label":"O", "x":8.5, "y":0}, {"label":"P", "x":9.5, "y":0, "w":1.5}, {"label":"A", "x":0, "y":1, "w":1.75}, {"label":"S", "x":1.75, "y":1}, {"label":"D", "x":2.75, "y":1}, {"label":"F", "x":3.75, "y":1}, {"label":"G", "x":4.75, "y":1}, {"label":"H", "x":5.75, "y":1}, {"label":"J", "x":6.75, "y":1}, {"label":"K", "x":7.75, "y":1}, {"label":"L", "x":8.75, "y":1}, {"label":":", "x":9.75, "y":1, "w":1.25}, {"label":"Shift", "x":0, "y":2, "w":1.25}, {"label":"Z", "x":1.25, "y":2}, {"label":"X", "x":2.25, "y":2}, {"label":"C", "x":3.25, "y":2}, {"label":"V", "x":4.25, "y":2}, {"label":"B", "x":5.25, "y":2}, {"label":"N", "x":6.25, "y":2}, {"label":"M", "x":7.25, "y":2}, {"label":">", "x":8.25, "y":2}, {"label":"Shift", "x":9.25, "y":2, "w":1.75}, {"label":"Ctrl", "x":0, "y":3, "w":1.25}, {"label":"Alt", "x":1.25, "y":3, "w":1.25}, {"label":"Any", "x":2.5, "y":3, "w":1.25}, {"label":"", "x":3.75, "y":3, "w":1.75}, {"label":"", "x":5.5, "y":3, "w":1.75}, {"label":"Any", "x":7.25, "y":3, "w":1.25}, {"label":"Code", "x":8.5, "y":3, "w":1.25}, {"label":"Fn", "x":9.75, "y":3, "w":1.25}] + }, + + "LAYOUT_double300": { + "layout": [{"label":"Q", "x":0, "y":0, "w":1.5}, {"label":"W", "x":1.5, "y":0}, {"label":"E", "x":2.5, "y":0}, {"label":"R", "x":3.5, "y":0}, {"label":"T", "x":4.5, "y":0}, {"label":"Y", "x":5.5, "y":0}, {"label":"U", "x":6.5, "y":0}, {"label":"I", "x":7.5, "y":0}, {"label":"O", "x":8.5, "y":0}, {"label":"P", "x":9.5, "y":0, "w":1.5}, {"label":"A", "x":0, "y":1, "w":1.75}, {"label":"S", "x":1.75, "y":1}, {"label":"D", "x":2.75, "y":1}, {"label":"F", "x":3.75, "y":1}, {"label":"G", "x":4.75, "y":1}, {"label":"H", "x":5.75, "y":1}, {"label":"J", "x":6.75, "y":1}, {"label":"K", "x":7.75, "y":1}, {"label":"L", "x":8.75, "y":1}, {"label":":", "x":9.75, "y":1, "w":1.25}, {"label":"Shift", "x":0, "y":2, "w":1.25}, {"label":"Z", "x":1.25, "y":2}, {"label":"X", "x":2.25, "y":2}, {"label":"C", "x":3.25, "y":2}, {"label":"V", "x":4.25, "y":2}, {"label":"B", "x":5.25, "y":2}, {"label":"N", "x":6.25, "y":2}, {"label":"M", "x":7.25, "y":2}, {"label":">", "x":8.25, "y":2}, {"label":"Shift", "x":9.25, "y":2, "w":1.75}, {"label":"Ctrl", "x":0, "y":3, "w":1.25}, {"label":"Alt", "x":1.25, "y":3, "w":1.25}, {"label":"", "x":2.5, "y":3, "w":3}, {"label":"", "x":5.5, "y":3, "w":3}, {"label":"Code", "x":8.5, "y":3, "w":1.25}, {"label":"Fn", "x":9.75, "y":3, "w":1.25}] + }, + + "LAYOUT_single700": { + "layout": [{"label":"Q", "x":0, "y":0, "w":1.5}, {"label":"W", "x":1.5, "y":0}, {"label":"E", "x":2.5, "y":0}, {"label":"R", "x":3.5, "y":0}, {"label":"T", "x":4.5, "y":0}, {"label":"Y", "x":5.5, "y":0}, {"label":"U", "x":6.5, "y":0}, {"label":"I", "x":7.5, "y":0}, {"label":"O", "x":8.5, "y":0}, {"label":"P", "x":9.5, "y":0, "w":1.5}, {"label":"A", "x":0, "y":1, "w":1.75}, {"label":"S", "x":1.75, "y":1}, {"label":"D", "x":2.75, "y":1}, {"label":"F", "x":3.75, "y":1}, {"label":"G", "x":4.75, "y":1}, {"label":"H", "x":5.75, "y":1}, {"label":"J", "x":6.75, "y":1}, {"label":"K", "x":7.75, "y":1}, {"label":"L", "x":8.75, "y":1}, {"label":":", "x":9.75, "y":1, "w":1.25}, {"label":"Shift", "x":0, "y":2, "w":1.25}, {"label":"Z", "x":1.25, "y":2}, {"label":"X", "x":2.25, "y":2}, {"label":"C", "x":3.25, "y":2}, {"label":"V", "x":4.25, "y":2}, {"label":"B", "x":5.25, "y":2}, {"label":"N", "x":6.25, "y":2}, {"label":"M", "x":7.25, "y":2}, {"label":">", "x":8.25, "y":2}, {"label":"Shift", "x":9.25, "y":2, "w":1.75}, {"label":"Ctrl", "x":0, "y":3}, {"label":"Alt", "x":1, "y":3}, {"label":"", "x":2, "y":3, "w":7}, {"label":"Code", "x":9, "y":3}, {"label":"Fn", "x":10, "y":3}] + }, + + "LAYOUT_single600": { + "layout": [{"label":"Q", "x":0, "y":0, "w":1.5}, {"label":"W", "x":1.5, "y":0}, {"label":"E", "x":2.5, "y":0}, {"label":"R", "x":3.5, "y":0}, {"label":"T", "x":4.5, "y":0}, {"label":"Y", "x":5.5, "y":0}, {"label":"U", "x":6.5, "y":0}, {"label":"I", "x":7.5, "y":0}, {"label":"O", "x":8.5, "y":0}, {"label":"P", "x":9.5, "y":0, "w":1.5}, {"label":"A", "x":0, "y":1, "w":1.75}, {"label":"S", "x":1.75, "y":1}, {"label":"D", "x":2.75, "y":1}, {"label":"F", "x":3.75, "y":1}, {"label":"G", "x":4.75, "y":1}, {"label":"H", "x":5.75, "y":1}, {"label":"J", "x":6.75, "y":1}, {"label":"K", "x":7.75, "y":1}, {"label":"L", "x":8.75, "y":1}, {"label":":", "x":9.75, "y":1, "w":1.25}, {"label":"Shift", "x":0, "y":2, "w":1.25}, {"label":"Z", "x":1.25, "y":2}, {"label":"X", "x":2.25, "y":2}, {"label":"C", "x":3.25, "y":2}, {"label":"V", "x":4.25, "y":2}, {"label":"B", "x":5.25, "y":2}, {"label":"N", "x":6.25, "y":2}, {"label":"M", "x":7.25, "y":2}, {"label":">", "x":8.25, "y":2}, {"label":"Shift", "x":9.25, "y":2, "w":1.75}, {"label":"Ctrl", "x":0, "y":3, "w":1.25}, {"label":"Alt", "x":1.25, "y":3, "w":1.25}, {"label":"", "x":2.5, "y":3, "w":6}, {"label":"Code", "x":8.5, "y":3, "w":1.25}, {"label":"Fn", "x":9.75, "y":3, "w":1.25}] + } + } +} diff --git a/keyboards/warpstone/keymaps/default/keymap.c b/keyboards/warpstone/keymaps/default/keymap.c new file mode 100644 index 000000000000..a87987b84f38 --- /dev/null +++ b/keyboards/warpstone/keymaps/default/keymap.c @@ -0,0 +1,79 @@ +/* Copyright 2022 drhigsby + * + * 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 layers{ + _BASE, + _NUM, + _FN +}; + +enum combo_events { + combo_ESC, + combo_BACK, + combo_TAB, + combo_DELETE, + combo_ENTER, + combo_LPRN, + combo_RPRN, +}; + +const uint16_t PROGMEM esc_combo[] = {KC_Q, KC_W, COMBO_END}; +const uint16_t PROGMEM bspc_combo[] = {KC_O, KC_P, COMBO_END}; +const uint16_t PROGMEM tab_combo[] = {KC_A, KC_S, COMBO_END}; +const uint16_t PROGMEM del_combo[] = {KC_I, KC_O, COMBO_END}; +const uint16_t PROGMEM enter_combo[] = {KC_L, KC_SCLN, COMBO_END}; +const uint16_t PROGMEM lprn_combo[] = {KC_X, KC_C, COMBO_END}; +const uint16_t PROGMEM rprn_combo[] = {KC_COMM, KC_M, COMBO_END}; + + +combo_t key_combos[COMBO_COUNT] = { + [combo_ESC] = COMBO(esc_combo, KC_ESC), + [combo_BACK] = COMBO(bspc_combo, KC_BSPC), + [combo_TAB] = COMBO(tab_combo, KC_TAB), + [combo_DELETE] = COMBO(del_combo, KC_DEL), + [combo_ENTER] = COMBO(enter_combo, KC_ENT), + [combo_LPRN] = COMBO(lprn_combo, KC_LPRN), + [combo_RPRN] = COMBO(rprn_combo, KC_RPRN), +}; + +#define NUM MO(_NUM) +#define FN MO(_FN) +#define xxx KC_TRNS + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_BASE] = LAYOUT_double175( + KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, + KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, RSFT_T(KC_DOT), + KC_LGUI, KC_LALT, KC_LCTL, NUM, KC_SPC, KC_RGUI, FN, KC_SLSH + ), + + [_NUM] = LAYOUT_double175( + KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, + KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_MINS, KC_EQL, + KC_ , KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_HOME, KC_END, KC_BSLS, KC_DQUO, KC_QUOT, + xxx, xxx, xxx, xxx, xxx, xxx, KC_PGUP, KC_PGDN + ), + + [_FN] = LAYOUT_double175( + KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, + xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, KC_F11, KC_F12, + xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, + xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx + ) + +}; diff --git a/keyboards/warpstone/keymaps/default/readme.md b/keyboards/warpstone/keymaps/default/readme.md new file mode 100644 index 000000000000..6777b9eb4cc5 --- /dev/null +++ b/keyboards/warpstone/keymaps/default/readme.md @@ -0,0 +1 @@ +# Default Warpstone Keymap diff --git a/keyboards/warpstone/keymaps/double175/keymap.c b/keyboards/warpstone/keymaps/double175/keymap.c new file mode 100644 index 000000000000..d3447fe8147f --- /dev/null +++ b/keyboards/warpstone/keymaps/double175/keymap.c @@ -0,0 +1,79 @@ +/* Copyright 2022 drhigsby + * + * 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 layers{ + _BASE, + _NUM, + _FN +}; + +enum combo_events { + combo_ESC, + combo_BACK, + combo_TAB, + combo_DELETE, + combo_ENTER, + combo_LPRN, + combo_RPRN, +}; + +const uint16_t PROGMEM esc_combo[] = {KC_Q, KC_W, COMBO_END}; +const uint16_t PROGMEM bspc_combo[] = {KC_O, KC_P, COMBO_END}; +const uint16_t PROGMEM tab_combo[] = {KC_A, KC_S, COMBO_END}; +const uint16_t PROGMEM del_combo[] = {KC_I, KC_O, COMBO_END}; +const uint16_t PROGMEM enter_combo[] = {KC_L, KC_SCLN, COMBO_END}; +const uint16_t PROGMEM lprn_combo[] = {KC_X, KC_C, COMBO_END}; +const uint16_t PROGMEM rprn_combo[] = {KC_COMM, KC_M, COMBO_END}; + + +combo_t key_combos[COMBO_COUNT] = { + [combo_ESC] = COMBO(esc_combo, KC_ESC), + [combo_BACK] = COMBO(bspc_combo, KC_BSPC), + [combo_TAB] = COMBO(tab_combo, KC_TAB), + [combo_DELETE] = COMBO(del_combo, KC_DEL), + [combo_ENTER] = COMBO(enter_combo, KC_ENT), + [combo_LPRN] = COMBO(lprn_combo, KC_LPRN), + [combo_RPRN] = COMBO(rprn_combo, KC_RPRN), +}; + +#define NUM MO(_NUM) +#define FN MO(_FN) +#define xxx KC_TRNS + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_BASE] = LAYOUT_double175( + KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, + KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, RSFT_T(KC_DOT), + KC_LGUI, KC_LALT, KC_LCTL, NUM, KC_SPC, KC_RGUI, FN, KC_SLSH + ), + + [_NUM] = LAYOUT_double175( + KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, + KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_MINS, KC_EQL, + KC_LSFT , KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_HOME, KC_END, KC_BSLS, KC_DQUO, KC_QUOT, + xxx, xxx, xxx, xxx, xxx, xxx, KC_PGUP, KC_PGDN + ), + + [_FN] = LAYOUT_double175( + KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, + xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, KC_F11, KC_F12, + xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, + xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx + ) + +}; diff --git a/keyboards/warpstone/keymaps/double175/readme.md b/keyboards/warpstone/keymaps/double175/readme.md new file mode 100644 index 000000000000..e90158374822 --- /dev/null +++ b/keyboards/warpstone/keymaps/double175/readme.md @@ -0,0 +1 @@ +# Double175 Warpstone Keymap diff --git a/keyboards/warpstone/readme.md b/keyboards/warpstone/readme.md new file mode 100644 index 000000000000..07ac0ecd2840 --- /dev/null +++ b/keyboards/warpstone/readme.md @@ -0,0 +1,15 @@ +# Warpstone + +![Warpstone](https://i.imgur.com/nzDZuS3h.jpg) + +Warpstone is a QAZ-like keyboard featuring fullsize mods and multiple spacebar arrangments. + +* Keyboard Maintainer: [H. Bond](https://github.com/drhigsby) +* Hardware Supported: Warpstone (https://github.com/drhigsby/warpstone) +* Hardware Availability: make your own + +Make example for this keyboard (after setting up your build environment): + + make warpstone:default + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/warpstone/rules.mk b/keyboards/warpstone/rules.mk new file mode 100644 index 000000000000..7ae05a538286 --- /dev/null +++ b/keyboards/warpstone/rules.mk @@ -0,0 +1,23 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +BOOTLOADER = caterina + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +NKRO_ENABLE = yes # USB Nkey Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output +LTO_ENABLE = no # Use link time optimization +COMBO_ENABLE = yes diff --git a/keyboards/warpstone/warpstone.c b/keyboards/warpstone/warpstone.c new file mode 100644 index 000000000000..28f82d1e323b --- /dev/null +++ b/keyboards/warpstone/warpstone.c @@ -0,0 +1,16 @@ +/* Copyright 2022 drhigsby + * + * 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 "warpstone.h" diff --git a/keyboards/warpstone/warpstone.h b/keyboards/warpstone/warpstone.h new file mode 100644 index 000000000000..7c9e238d2c89 --- /dev/null +++ b/keyboards/warpstone/warpstone.h @@ -0,0 +1,71 @@ +/* Copyright 2022 drhigsby + * + * 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 . + */ + +#pragma once + +#include "quantum.h" + +#define LAYOUT_double175( \ + k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, \ + k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, \ + k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, \ + k301, k302, k303, k304, k305, k306, k307, k308 \ +) \ +{ \ + { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009 }, \ + { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109 }, \ + { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209 }, \ + { KC_NO, k301, k302, k303, k304, k305, k306, k307, k308, KC_NO } \ +} + +#define LAYOUT_double300( \ + k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, \ + k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, \ + k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, \ + k301, k302, k304, k305, k307, k308 \ +) \ +{ \ + { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009 }, \ + { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109 }, \ + { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209 }, \ + { KC_NO, k301, k302, KC_NO, k304, k305, KC_NO, k307, k308, KC_NO } \ +} + +#define LAYOUT_single700( \ + k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, \ + k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, \ + k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, \ + k301, k302, k304, k307, k308 \ +) \ +{ \ + { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009 }, \ + { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109 }, \ + { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209 }, \ + { KC_NO, k301, k302, KC_NO, k304, KC_NO, KC_NO, k307, k308, KC_NO } \ +} + +#define LAYOUT_single600( \ + k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, \ + k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, \ + k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, \ + k301, k302, k304, k307, k308 \ +) \ +{ \ + { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009 }, \ + { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109 }, \ + { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209 }, \ + { KC_NO, k301, k302, KC_NO, k304, KC_NO, KC_NO, k307, k308, KC_NO } \ +}