diff options
| -rw-r--r-- | keyboards/geminate60/chconf.h | 21 | ||||
| -rw-r--r-- | keyboards/geminate60/config.h | 52 | ||||
| -rw-r--r-- | keyboards/geminate60/geminate60.c | 16 | ||||
| -rw-r--r-- | keyboards/geminate60/geminate60.h | 30 | ||||
| -rw-r--r-- | keyboards/geminate60/halconf.h | 524 | ||||
| -rw-r--r-- | keyboards/geminate60/info.json | 79 | ||||
| -rw-r--r-- | keyboards/geminate60/keymaps/default/keymap.c | 50 | ||||
| -rw-r--r-- | keyboards/geminate60/keymaps/via/keymap.c | 58 | ||||
| -rw-r--r-- | keyboards/geminate60/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/geminate60/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/geminate60/rules.mk | 21 |
11 files changed, 867 insertions, 0 deletions
diff --git a/keyboards/geminate60/chconf.h b/keyboards/geminate60/chconf.h new file mode 100644 index 000000000..d58807924 --- /dev/null +++ b/keyboards/geminate60/chconf.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* Copyright 2020 Weirdo | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 3 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | // Need to override the SysTick timer to use TIM3 -- this is a 16-bit timer on F303 | ||
| 18 | // so we need to change resolution and frequency to match. | ||
| 19 | #define CH_CFG_ST_RESOLUTION 16 | ||
| 20 | #define CH_CFG_ST_FREQUENCY 10000 | ||
| 21 | #include_next "chconf.h" | ||
diff --git a/keyboards/geminate60/config.h b/keyboards/geminate60/config.h new file mode 100644 index 000000000..6e13da06d --- /dev/null +++ b/keyboards/geminate60/config.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* Copyright 2020 Weirdo | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | #include "config_common.h" | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0x7764 | ||
| 21 | #define PRODUCT_ID 0x676D | ||
| 22 | #define DEVICE_VER 0x0001 | ||
| 23 | #define MANUFACTURER Weirdo | ||
| 24 | #define PRODUCT Geminate60 | ||
| 25 | |||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 5 | ||
| 29 | #define MATRIX_COLS 15 | ||
| 30 | |||
| 31 | #define MATRIX_ROW_PINS { A9, A10, B10, B11, B15} | ||
| 32 | #define MATRIX_COL_PINS { A8, B14, B13, B12, B1, B0, A7 , A1 , A15, B3, B4, B5, B6, B7, B8} | ||
| 33 | #define DIODE_DIRECTION ROW2COL | ||
| 34 | #define DEBOUNCE 5 | ||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | #define RGB_DI_PIN A6 | ||
| 39 | #define RGBLED_NUM 1 | ||
| 40 | //#define RGBLIGHT_DISABLE_KEYCODES | ||
| 41 | |||
| 42 | |||
| 43 | |||
| 44 | |||
| 45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 46 | #define LOCKING_SUPPORT_ENABLE | ||
| 47 | |||
| 48 | /* Locking resynchronize hack */ | ||
| 49 | #define LOCKING_RESYNC_ENABLE | ||
| 50 | |||
| 51 | |||
| 52 | |||
diff --git a/keyboards/geminate60/geminate60.c b/keyboards/geminate60/geminate60.c new file mode 100644 index 000000000..ea3cda9b0 --- /dev/null +++ b/keyboards/geminate60/geminate60.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2020 Weirdo | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include "geminate60.h" | ||
diff --git a/keyboards/geminate60/geminate60.h b/keyboards/geminate60/geminate60.h new file mode 100644 index 000000000..9ce1beb19 --- /dev/null +++ b/keyboards/geminate60/geminate60.h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Weirdo | ||
| 3 | This program is free software: you can redistribute it and/or modify | ||
| 4 | it under the terms of the GNU General Public License as published by | ||
| 5 | the Free Software Foundation, either version 2 of the License, or | ||
| 6 | (at your option) any later version. | ||
| 7 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | #pragma once | ||
| 15 | |||
| 16 | #include "quantum.h" | ||
| 17 | |||
| 18 | #define LAYOUT( \ | ||
| 19 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K010, K011, K012, K013, K014, \ | ||
| 20 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K110, K111, K112, K113, \ | ||
| 21 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K210, K211, K212, K213, \ | ||
| 22 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K310, K311, K312, K313, \ | ||
| 23 | K40, K41, K42, K46, K410, K411, K412, K413 ) \ | ||
| 24 | { \ | ||
| 25 | {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K010, K011, K012, K013, K014}, \ | ||
| 26 | {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K110, K111, K112, K113 }, \ | ||
| 27 | {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K210, K211, K212, K213 }, \ | ||
| 28 | {K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K310, K311, K312, K313 }, \ | ||
| 29 | {K40, K41, K42, K46, K410, K411, K412, K413 } \ | ||
| 30 | } | ||
diff --git a/keyboards/geminate60/halconf.h b/keyboards/geminate60/halconf.h new file mode 100644 index 000000000..b6c7b392c --- /dev/null +++ b/keyboards/geminate60/halconf.h | |||
| @@ -0,0 +1,524 @@ | |||
| 1 | /* | ||
| 2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
| 3 | |||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | you may not use this file except in compliance with the License. | ||
| 6 | You may obtain a copy of the License at | ||
| 7 | |||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | |||
| 10 | Unless required by applicable law or agreed to in writing, software | ||
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | See the License for the specific language governing permissions and | ||
| 14 | limitations under the License. | ||
| 15 | */ | ||
| 16 | |||
| 17 | /** | ||
| 18 | * @file templates/halconf.h | ||
| 19 | * @brief HAL configuration header. | ||
| 20 | * @details HAL configuration file, this file allows to enable or disable the | ||
| 21 | * various device drivers from your application. You may also use | ||
| 22 | * this file in order to override the device drivers default settings. | ||
| 23 | * | ||
| 24 | * @addtogroup HAL_CONF | ||
| 25 | * @{ | ||
| 26 | */ | ||
| 27 | |||
| 28 | #ifndef HALCONF_H | ||
| 29 | # define HALCONF_H | ||
| 30 | |||
| 31 | # define _CHIBIOS_HAL_CONF_ | ||
| 32 | # define _CHIBIOS_HAL_CONF_VER_7_0_ | ||
| 33 | |||
| 34 | # include "mcuconf.h" | ||
| 35 | |||
| 36 | /** | ||
| 37 | * @brief Enables the PAL subsystem. | ||
| 38 | */ | ||
| 39 | # if !defined(HAL_USE_PAL) || defined(__DOXYGEN__) | ||
| 40 | # define HAL_USE_PAL TRUE | ||
| 41 | # endif | ||
| 42 | |||
| 43 | /** | ||
| 44 | * @brief Enables the ADC subsystem. | ||
| 45 | */ | ||
| 46 | # if !defined(HAL_USE_ADC) || defined(__DOXYGEN__) | ||
| 47 | # define HAL_USE_ADC FALSE | ||
| 48 | # endif | ||
| 49 | |||
| 50 | /** | ||
| 51 | * @brief Enables the CAN subsystem. | ||
| 52 | */ | ||
| 53 | # if !defined(HAL_USE_CAN) || defined(__DOXYGEN__) | ||
| 54 | # define HAL_USE_CAN FALSE | ||
| 55 | # endif | ||
| 56 | |||
| 57 | /** | ||
| 58 | * @brief Enables the cryptographic subsystem. | ||
| 59 | */ | ||
| 60 | # if !defined(HAL_USE_CRY) || defined(__DOXYGEN__) | ||
| 61 | # define HAL_USE_CRY FALSE | ||
| 62 | # endif | ||
| 63 | |||
| 64 | /** | ||
| 65 | * @brief Enables the DAC subsystem. | ||
| 66 | */ | ||
| 67 | # if !defined(HAL_USE_DAC) || defined(__DOXYGEN__) | ||
| 68 | # define HAL_USE_DAC TRUE | ||
| 69 | # endif | ||
| 70 | |||
| 71 | /** | ||
| 72 | * @brief Enables the GPT subsystem. | ||
| 73 | */ | ||
| 74 | # if !defined(HAL_USE_GPT) || defined(__DOXYGEN__) | ||
| 75 | # define HAL_USE_GPT TRUE | ||
| 76 | # endif | ||
| 77 | |||
| 78 | /** | ||
| 79 | * @brief Enables the I2C subsystem. | ||
| 80 | */ | ||
| 81 | # if !defined(HAL_USE_I2C) || defined(__DOXYGEN__) | ||
| 82 | # define HAL_USE_I2C TRUE | ||
| 83 | # endif | ||
| 84 | |||
| 85 | /** | ||
| 86 | * @brief Enables the I2S subsystem. | ||
| 87 | */ | ||
| 88 | # if !defined(HAL_USE_I2S) || defined(__DOXYGEN__) | ||
| 89 | # define HAL_USE_I2S FALSE | ||
| 90 | # endif | ||
| 91 | |||
| 92 | /** | ||
| 93 | * @brief Enables the ICU subsystem. | ||
| 94 | */ | ||
| 95 | # if !defined(HAL_USE_ICU) || defined(__DOXYGEN__) | ||
| 96 | # define HAL_USE_ICU FALSE | ||
| 97 | # endif | ||
| 98 | |||
| 99 | /** | ||
| 100 | * @brief Enables the MAC subsystem. | ||
| 101 | */ | ||
| 102 | # if !defined(HAL_USE_MAC) || defined(__DOXYGEN__) | ||
| 103 | # define HAL_USE_MAC FALSE | ||
| 104 | # endif | ||
| 105 | |||
| 106 | /** | ||
| 107 | * @brief Enables the MMC_SPI subsystem. | ||
| 108 | */ | ||
| 109 | # if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__) | ||
| 110 | # define HAL_USE_MMC_SPI FALSE | ||
| 111 | # endif | ||
| 112 | |||
| 113 | /** | ||
| 114 | * @brief Enables the PWM subsystem. | ||
| 115 | */ | ||
| 116 | # if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) | ||
| 117 | # define HAL_USE_PWM TRUE | ||
| 118 | # endif | ||
| 119 | |||
| 120 | /** | ||
| 121 | * @brief Enables the RTC subsystem. | ||
| 122 | */ | ||
| 123 | # if !defined(HAL_USE_RTC) || defined(__DOXYGEN__) | ||
| 124 | # define HAL_USE_RTC FALSE | ||
| 125 | # endif | ||
| 126 | |||
| 127 | /** | ||
| 128 | * @brief Enables the SDC subsystem. | ||
| 129 | */ | ||
| 130 | # if !defined(HAL_USE_SDC) || defined(__DOXYGEN__) | ||
| 131 | # define HAL_USE_SDC FALSE | ||
| 132 | # endif | ||
| 133 | |||
| 134 | /** | ||
| 135 | * @brief Enables the SERIAL subsystem. | ||
| 136 | */ | ||
| 137 | # if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__) | ||
| 138 | # define HAL_USE_SERIAL FALSE | ||
| 139 | # endif | ||
| 140 | |||
| 141 | /** | ||
| 142 | * @brief Enables the SERIAL over USB subsystem. | ||
| 143 | */ | ||
| 144 | # if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__) | ||
| 145 | # define HAL_USE_SERIAL_USB TRUE | ||
| 146 | # endif | ||
| 147 | |||
| 148 | /** | ||
| 149 | * @brief Enables the SIO subsystem. | ||
| 150 | */ | ||
| 151 | # if !defined(HAL_USE_SIO) || defined(__DOXYGEN__) | ||
| 152 | # define HAL_USE_SIO FALSE | ||
| 153 | # endif | ||
| 154 | |||
| 155 | /** | ||
| 156 | * @brief Enables the SPI subsystem. | ||
| 157 | */ | ||
| 158 | # if !defined(HAL_USE_SPI) || defined(__DOXYGEN__) | ||
| 159 | # define HAL_USE_SPI TRUE | ||
| 160 | # endif | ||
| 161 | |||
| 162 | /** | ||
| 163 | * @brief Enables the TRNG subsystem. | ||
| 164 | */ | ||
| 165 | # if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__) | ||
| 166 | # define HAL_USE_TRNG FALSE | ||
| 167 | # endif | ||
| 168 | |||
| 169 | /** | ||
| 170 | * @brief Enables the UART subsystem. | ||
| 171 | */ | ||
| 172 | # if !defined(HAL_USE_UART) || defined(__DOXYGEN__) | ||
| 173 | # define HAL_USE_UART FALSE | ||
| 174 | # endif | ||
| 175 | |||
| 176 | /** | ||
| 177 | * @brief Enables the USB subsystem. | ||
| 178 | */ | ||
| 179 | # if !defined(HAL_USE_USB) || defined(__DOXYGEN__) | ||
| 180 | # define HAL_USE_USB TRUE | ||
| 181 | # endif | ||
| 182 | |||
| 183 | /** | ||
| 184 | * @brief Enables the WDG subsystem. | ||
| 185 | */ | ||
| 186 | # if !defined(HAL_USE_WDG) || defined(__DOXYGEN__) | ||
| 187 | # define HAL_USE_WDG FALSE | ||
| 188 | # endif | ||
| 189 | |||
| 190 | /** | ||
| 191 | * @brief Enables the WSPI subsystem. | ||
| 192 | */ | ||
| 193 | # if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__) | ||
| 194 | # define HAL_USE_WSPI FALSE | ||
| 195 | # endif | ||
| 196 | |||
| 197 | /*===========================================================================*/ | ||
| 198 | /* PAL driver related settings. */ | ||
| 199 | /*===========================================================================*/ | ||
| 200 | |||
| 201 | /** | ||
| 202 | * @brief Enables synchronous APIs. | ||
| 203 | * @note Disabling this option saves both code and data space. | ||
| 204 | */ | ||
| 205 | # if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__) | ||
| 206 | # define PAL_USE_CALLBACKS TRUE | ||
| 207 | # endif | ||
| 208 | |||
| 209 | /** | ||
| 210 | * @brief Enables synchronous APIs. | ||
| 211 | * @note Disabling this option saves both code and data space. | ||
| 212 | */ | ||
| 213 | # if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__) | ||
| 214 | # define PAL_USE_WAIT TRUE | ||
| 215 | # endif | ||
| 216 | |||
| 217 | /*===========================================================================*/ | ||
| 218 | /* ADC driver related settings. */ | ||
| 219 | /*===========================================================================*/ | ||
| 220 | |||
| 221 | /** | ||
| 222 | * @brief Enables synchronous APIs. | ||
| 223 | * @note Disabling this option saves both code and data space. | ||
| 224 | */ | ||
| 225 | # if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__) | ||
| 226 | # define ADC_USE_WAIT TRUE | ||
| 227 | # endif | ||
| 228 | |||
| 229 | /** | ||
| 230 | * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs. | ||
| 231 | * @note Disabling this option saves both code and data space. | ||
| 232 | */ | ||
| 233 | # if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 234 | # define ADC_USE_MUTUAL_EXCLUSION TRUE | ||
| 235 | # endif | ||
| 236 | |||
| 237 | /*===========================================================================*/ | ||
| 238 | /* CAN driver related settings. */ | ||
| 239 | /*===========================================================================*/ | ||
| 240 | |||
| 241 | /** | ||
| 242 | * @brief Sleep mode related APIs inclusion switch. | ||
| 243 | */ | ||
| 244 | # if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__) | ||
| 245 | # define CAN_USE_SLEEP_MODE TRUE | ||
| 246 | # endif | ||
| 247 | |||
| 248 | /** | ||
| 249 | * @brief Enforces the driver to use direct callbacks rather than OSAL events. | ||
| 250 | */ | ||
| 251 | # if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__) | ||
| 252 | # define CAN_ENFORCE_USE_CALLBACKS FALSE | ||
| 253 | # endif | ||
| 254 | |||
| 255 | /*===========================================================================*/ | ||
| 256 | /* CRY driver related settings. */ | ||
| 257 | /*===========================================================================*/ | ||
| 258 | |||
| 259 | /** | ||
| 260 | * @brief Enables the SW fall-back of the cryptographic driver. | ||
| 261 | * @details When enabled, this option, activates a fall-back software | ||
| 262 | * implementation for algorithms not supported by the underlying | ||
| 263 | * hardware. | ||
| 264 | * @note Fall-back implementations may not be present for all algorithms. | ||
| 265 | */ | ||
| 266 | # if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__) | ||
| 267 | # define HAL_CRY_USE_FALLBACK FALSE | ||
| 268 | # endif | ||
| 269 | |||
| 270 | /** | ||
| 271 | * @brief Makes the driver forcibly use the fall-back implementations. | ||
| 272 | */ | ||
| 273 | # if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__) | ||
| 274 | # define HAL_CRY_ENFORCE_FALLBACK FALSE | ||
| 275 | # endif | ||
| 276 | |||
| 277 | /*===========================================================================*/ | ||
| 278 | /* DAC driver related settings. */ | ||
| 279 | /*===========================================================================*/ | ||
| 280 | |||
| 281 | /** | ||
| 282 | * @brief Enables synchronous APIs. | ||
| 283 | * @note Disabling this option saves both code and data space. | ||
| 284 | */ | ||
| 285 | # if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__) | ||
| 286 | # define DAC_USE_WAIT TRUE | ||
| 287 | # endif | ||
| 288 | |||
| 289 | /** | ||
| 290 | * @brief Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs. | ||
| 291 | * @note Disabling this option saves both code and data space. | ||
| 292 | */ | ||
| 293 | # if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 294 | # define DAC_USE_MUTUAL_EXCLUSION TRUE | ||
| 295 | # endif | ||
| 296 | |||
| 297 | /*===========================================================================*/ | ||
| 298 | /* I2C driver related settings. */ | ||
| 299 | /*===========================================================================*/ | ||
| 300 | |||
| 301 | /** | ||
| 302 | * @brief Enables the mutual exclusion APIs on the I2C bus. | ||
| 303 | */ | ||
| 304 | # if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 305 | # define I2C_USE_MUTUAL_EXCLUSION TRUE | ||
| 306 | # endif | ||
| 307 | |||
| 308 | /*===========================================================================*/ | ||
| 309 | /* MAC driver related settings. */ | ||
| 310 | /*===========================================================================*/ | ||
| 311 | |||
| 312 | /** | ||
| 313 | * @brief Enables the zero-copy API. | ||
| 314 | */ | ||
| 315 | # if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__) | ||
| 316 | # define MAC_USE_ZERO_COPY FALSE | ||
| 317 | # endif | ||
| 318 | |||
| 319 | /** | ||
| 320 | * @brief Enables an event sources for incoming packets. | ||
| 321 | */ | ||
| 322 | # if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__) | ||
| 323 | # define MAC_USE_EVENTS TRUE | ||
| 324 | # endif | ||
| 325 | |||
| 326 | /*===========================================================================*/ | ||
| 327 | /* MMC_SPI driver related settings. */ | ||
| 328 | /*===========================================================================*/ | ||
| 329 | |||
| 330 | /** | ||
| 331 | * @brief Delays insertions. | ||
| 332 | * @details If enabled this options inserts delays into the MMC waiting | ||
| 333 | * routines releasing some extra CPU time for the threads with | ||
| 334 | * lower priority, this may slow down the driver a bit however. | ||
| 335 | * This option is recommended also if the SPI driver does not | ||
| 336 | * use a DMA channel and heavily loads the CPU. | ||
| 337 | */ | ||
| 338 | # if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__) | ||
| 339 | # define MMC_NICE_WAITING TRUE | ||
| 340 | # endif | ||
| 341 | |||
| 342 | /*===========================================================================*/ | ||
| 343 | /* SDC driver related settings. */ | ||
| 344 | /*===========================================================================*/ | ||
| 345 | |||
| 346 | /** | ||
| 347 | * @brief Number of initialization attempts before rejecting the card. | ||
| 348 | * @note Attempts are performed at 10mS intervals. | ||
| 349 | */ | ||
| 350 | # if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__) | ||
| 351 | # define SDC_INIT_RETRY 100 | ||
| 352 | # endif | ||
| 353 | |||
| 354 | /** | ||
| 355 | * @brief Include support for MMC cards. | ||
| 356 | * @note MMC support is not yet implemented so this option must be kept | ||
| 357 | * at @p FALSE. | ||
| 358 | */ | ||
| 359 | # if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__) | ||
| 360 | # define SDC_MMC_SUPPORT FALSE | ||
| 361 | # endif | ||
| 362 | |||
| 363 | /** | ||
| 364 | * @brief Delays insertions. | ||
| 365 | * @details If enabled this options inserts delays into the MMC waiting | ||
| 366 | * routines releasing some extra CPU time for the threads with | ||
| 367 | * lower priority, this may slow down the driver a bit however. | ||
| 368 | */ | ||
| 369 | # if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__) | ||
| 370 | # define SDC_NICE_WAITING TRUE | ||
| 371 | # endif | ||
| 372 | |||
| 373 | /** | ||
| 374 | * @brief OCR initialization constant for V20 cards. | ||
| 375 | */ | ||
| 376 | # if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__) | ||
| 377 | # define SDC_INIT_OCR_V20 0x50FF8000U | ||
| 378 | # endif | ||
| 379 | |||
| 380 | /** | ||
| 381 | * @brief OCR initialization constant for non-V20 cards. | ||
| 382 | */ | ||
| 383 | # if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__) | ||
| 384 | # define SDC_INIT_OCR 0x80100000U | ||
| 385 | # endif | ||
| 386 | |||
| 387 | /*===========================================================================*/ | ||
| 388 | /* SERIAL driver related settings. */ | ||
| 389 | /*===========================================================================*/ | ||
| 390 | |||
| 391 | /** | ||
| 392 | * @brief Default bit rate. | ||
| 393 | * @details Configuration parameter, this is the baud rate selected for the | ||
| 394 | * default configuration. | ||
| 395 | */ | ||
| 396 | # if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__) | ||
| 397 | # define SERIAL_DEFAULT_BITRATE 38400 | ||
| 398 | # endif | ||
| 399 | |||
| 400 | /** | ||
| 401 | * @brief Serial buffers size. | ||
| 402 | * @details Configuration parameter, you can change the depth of the queue | ||
| 403 | * buffers depending on the requirements of your application. | ||
| 404 | * @note The default is 16 bytes for both the transmission and receive | ||
| 405 | * buffers. | ||
| 406 | */ | ||
| 407 | # if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__) | ||
| 408 | # define SERIAL_BUFFERS_SIZE 16 | ||
| 409 | # endif | ||
| 410 | |||
| 411 | /*===========================================================================*/ | ||
| 412 | /* SERIAL_USB driver related setting. */ | ||
| 413 | /*===========================================================================*/ | ||
| 414 | |||
| 415 | /** | ||
| 416 | * @brief Serial over USB buffers size. | ||
| 417 | * @details Configuration parameter, the buffer size must be a multiple of | ||
| 418 | * the USB data endpoint maximum packet size. | ||
| 419 | * @note The default is 256 bytes for both the transmission and receive | ||
| 420 | * buffers. | ||
| 421 | */ | ||
| 422 | # if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__) | ||
| 423 | # define SERIAL_USB_BUFFERS_SIZE 1 | ||
| 424 | # endif | ||
| 425 | |||
| 426 | /** | ||
| 427 | * @brief Serial over USB number of buffers. | ||
| 428 | * @note The default is 2 buffers. | ||
| 429 | */ | ||
| 430 | # if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__) | ||
| 431 | # define SERIAL_USB_BUFFERS_NUMBER 2 | ||
| 432 | # endif | ||
| 433 | |||
| 434 | /*===========================================================================*/ | ||
| 435 | /* SPI driver related settings. */ | ||
| 436 | /*===========================================================================*/ | ||
| 437 | |||
| 438 | /** | ||
| 439 | * @brief Enables synchronous APIs. | ||
| 440 | * @note Disabling this option saves both code and data space. | ||
| 441 | */ | ||
| 442 | # if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__) | ||
| 443 | # define SPI_USE_WAIT TRUE | ||
| 444 | # endif | ||
| 445 | |||
| 446 | /** | ||
| 447 | * @brief Enables circular transfers APIs. | ||
| 448 | * @note Disabling this option saves both code and data space. | ||
| 449 | */ | ||
| 450 | # if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__) | ||
| 451 | # define SPI_USE_CIRCULAR FALSE | ||
| 452 | # endif | ||
| 453 | |||
| 454 | /** | ||
| 455 | * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs. | ||
| 456 | * @note Disabling this option saves both code and data space. | ||
| 457 | */ | ||
| 458 | # if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 459 | # define SPI_USE_MUTUAL_EXCLUSION TRUE | ||
| 460 | # endif | ||
| 461 | |||
| 462 | /** | ||
| 463 | * @brief Handling method for SPI CS line. | ||
| 464 | * @note Disabling this option saves both code and data space. | ||
| 465 | */ | ||
| 466 | # if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__) | ||
| 467 | # define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
| 468 | # endif | ||
| 469 | |||
| 470 | /*===========================================================================*/ | ||
| 471 | /* UART driver related settings. */ | ||
| 472 | /*===========================================================================*/ | ||
| 473 | |||
| 474 | /** | ||
| 475 | * @brief Enables synchronous APIs. | ||
| 476 | * @note Disabling this option saves both code and data space. | ||
| 477 | */ | ||
| 478 | # if !defined(UART_USE_WAIT) || defined(__DOXYGEN__) | ||
| 479 | # define UART_USE_WAIT FALSE | ||
| 480 | # endif | ||
| 481 | |||
| 482 | /** | ||
| 483 | * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs. | ||
| 484 | * @note Disabling this option saves both code and data space. | ||
| 485 | */ | ||
| 486 | # if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 487 | # define UART_USE_MUTUAL_EXCLUSION FALSE | ||
| 488 | # endif | ||
| 489 | |||
| 490 | /*===========================================================================*/ | ||
| 491 | /* USB driver related settings. */ | ||
| 492 | /*===========================================================================*/ | ||
| 493 | |||
| 494 | /** | ||
| 495 | * @brief Enables synchronous APIs. | ||
| 496 | * @note Disabling this option saves both code and data space. | ||
| 497 | */ | ||
| 498 | # if !defined(USB_USE_WAIT) || defined(__DOXYGEN__) | ||
| 499 | # define USB_USE_WAIT TRUE | ||
| 500 | # endif | ||
| 501 | |||
| 502 | /*===========================================================================*/ | ||
| 503 | /* WSPI driver related settings. */ | ||
| 504 | /*===========================================================================*/ | ||
| 505 | |||
| 506 | /** | ||
| 507 | * @brief Enables synchronous APIs. | ||
| 508 | * @note Disabling this option saves both code and data space. | ||
| 509 | */ | ||
| 510 | # if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__) | ||
| 511 | # define WSPI_USE_WAIT TRUE | ||
| 512 | # endif | ||
| 513 | |||
| 514 | /** | ||
| 515 | * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs. | ||
| 516 | * @note Disabling this option saves both code and data space. | ||
| 517 | */ | ||
| 518 | # if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 519 | # define WSPI_USE_MUTUAL_EXCLUSION TRUE | ||
| 520 | # endif | ||
| 521 | |||
| 522 | #endif /* HALCONF_H */ | ||
| 523 | |||
| 524 | /** @} */ | ||
diff --git a/keyboards/geminate60/info.json b/keyboards/geminate60/info.json new file mode 100644 index 000000000..bbf63d73d --- /dev/null +++ b/keyboards/geminate60/info.json | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "geminate60", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K00", "x":0, "y":0}, | ||
| 11 | {"label":"K01", "x":1, "y":0}, | ||
| 12 | {"label":"K02", "x":2, "y":0}, | ||
| 13 | {"label":"K0", "x":3, "y":0}, | ||
| 14 | {"label":"K04", "x":4, "y":0}, | ||
| 15 | {"label":"K05", "x":5, "y":0}, | ||
| 16 | {"label":"K06", "x":6, "y":0}, | ||
| 17 | {"label":"K07", "x":7, "y":0}, | ||
| 18 | {"label":"K08", "x":8, "y":0}, | ||
| 19 | {"label":"K09", "x":9, "y":0}, | ||
| 20 | {"label":"K010", "x":10, "y":0}, | ||
| 21 | {"label":"K011", "x":11, "y":0}, | ||
| 22 | {"label":"K012", "x":12, "y":0}, | ||
| 23 | {"label":"K013", "x":13, "y":0}, | ||
| 24 | {"label":"K014", "x":14, "y":0}, | ||
| 25 | {"label":"K10", "x":0, "y":1, "w":1.5}, | ||
| 26 | {"label":"K11", "x":1.5, "y":1}, | ||
| 27 | {"label":"K12", "x":2.5, "y":1}, | ||
| 28 | {"label":"K13", "x":3.5, "y":1}, | ||
| 29 | {"label":"K14", "x":4.5, "y":1}, | ||
| 30 | {"label":"K15", "x":5.5, "y":1}, | ||
| 31 | {"label":"K16", "x":6.5, "y":1}, | ||
| 32 | {"label":"K17", "x":7.5, "y":1}, | ||
| 33 | {"label":"K18", "x":8.5, "y":1}, | ||
| 34 | {"label":"K19", "x":9.5, "y":1}, | ||
| 35 | {"label":"K110", "x":10.5, "y":1}, | ||
| 36 | {"label":"K111", "x":11.5, "y":1}, | ||
| 37 | {"label":"K112", "x":12.5, "y":1}, | ||
| 38 | {"label":"K113", "x":13.5, "y":1, "w":1.5}, | ||
| 39 | {"label":"K20", "x":0, "y":2, "w":1.75}, | ||
| 40 | {"label":"K21", "x":1.75, "y":2}, | ||
| 41 | {"label":"K22", "x":2.75, "y":2}, | ||
| 42 | {"label":"K23", "x":3.75, "y":2}, | ||
| 43 | {"label":"K24", "x":4.75, "y":2}, | ||
| 44 | {"label":"K25", "x":5.75, "y":2}, | ||
| 45 | {"label":"K26", "x":6.75, "y":2}, | ||
| 46 | {"label":"K27", "x":7.75, "y":2}, | ||
| 47 | {"label":"K28", "x":8.75, "y":2}, | ||
| 48 | {"label":"K29", "x":9.75, "y":2}, | ||
| 49 | {"label":"K210", "x":10.75, "y":2}, | ||
| 50 | {"label":"K211", "x":11.75, "y":2}, | ||
| 51 | {"label":"K212", "x":12.75, "y":2}, | ||
| 52 | {"label":"K213", "x":13.75, "y":2, "w":1.25}, | ||
| 53 | {"label":"K30", "x":0, "y":3, "w":1.25}, | ||
| 54 | {"label":"K31", "x":1.25, "y":3}, | ||
| 55 | {"label":"K32", "x":2.25, "y":3}, | ||
| 56 | {"label":"K33", "x":3.25, "y":3}, | ||
| 57 | {"label":"K34", "x":4.25, "y":3}, | ||
| 58 | {"label":"K35", "x":5.25, "y":3}, | ||
| 59 | {"label":"K36", "x":6.25, "y":3}, | ||
| 60 | {"label":"K37", "x":7.25, "y":3}, | ||
| 61 | {"label":"K38", "x":8.25, "y":3}, | ||
| 62 | {"label":"K39", "x":9.25, "y":3}, | ||
| 63 | {"label":"K310", "x":10.25, "y":3}, | ||
| 64 | {"label":"K311", "x":11.25, "y":3}, | ||
| 65 | {"label":"K312", "x":12.25, "y":3, "w":1.75}, | ||
| 66 | {"label":"K313", "x":14, "y":3}, | ||
| 67 | {"label":"K40", "x":0, "y":4, "w":1.25}, | ||
| 68 | {"label":"K41", "x":1.25, "y":4, "w":1.25}, | ||
| 69 | {"label":"K42", "x":2.5, "y":4, "w":1.25}, | ||
| 70 | {"label":"K46", "x":3.75, "y":4, "w":6.25}, | ||
| 71 | {"label":"K410", "x":10, "y":4, "w":1.25}, | ||
| 72 | {"label":"K411", "x":11.25, "y":4, "w":1.25}, | ||
| 73 | {"label":"K412", "x":12.5, "y":4, "w":1.25}, | ||
| 74 | {"label":"K413", "x":13.75, "y":4, "w":1.25} | ||
| 75 | ] | ||
| 76 | } | ||
| 77 | } | ||
| 78 | ,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/" | ||
| 79 | } | ||
diff --git a/keyboards/geminate60/keymaps/default/keymap.c b/keyboards/geminate60/keymaps/default/keymap.c new file mode 100644 index 000000000..e7edabfd5 --- /dev/null +++ b/keyboards/geminate60/keymaps/default/keymap.c | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* Copyright 2020 Weirdo | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | |||
| 19 | // [Keymaps] -----------------------------------------------------------------// | ||
| 20 | enum layer_names { | ||
| 21 | _BASE, | ||
| 22 | _FN | ||
| 23 | }; | ||
| 24 | |||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | [_BASE] = LAYOUT(KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, | ||
| 27 | 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, KC_BSLS, | ||
| 28 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_ENT, | ||
| 29 | KC_LSFT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 30 | KC_LCTL, KC_LWIN, KC_LALT,KC_SPACE, KC_RALT, KC_RALT, KC_RWIN, KC_RCTL), | ||
| 31 | |||
| 32 | |||
| 33 | [_FN] = LAYOUT(KC_GRV, 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_DEL, KC_DEL, | ||
| 34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT), // | ||
| 38 | |||
| 39 | }; | ||
| 40 | |||
| 41 | bool led_update_user(led_t led_state) { | ||
| 42 | |||
| 43 | if(led_state.caps_lock){ | ||
| 44 | rgblight_setrgb_at(192, 192, 192, 0); | ||
| 45 | }else{ | ||
| 46 | rgblight_setrgb_at(0, 0, 0, 0); | ||
| 47 | } | ||
| 48 | |||
| 49 | return true; | ||
| 50 | } | ||
diff --git a/keyboards/geminate60/keymaps/via/keymap.c b/keyboards/geminate60/keymaps/via/keymap.c new file mode 100644 index 000000000..31af37d0c --- /dev/null +++ b/keyboards/geminate60/keymaps/via/keymap.c | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* Copyright 2020 Weirdo | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | |||
| 19 | // [Keymaps] -----------------------------------------------------------------// | ||
| 20 | enum layer_names { _BASE, _FN ,_FN1 ,_FN2 }; | ||
| 21 | |||
| 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 23 | [_BASE] = LAYOUT(KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, | ||
| 24 | 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, KC_BSLS, | ||
| 25 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_ENT, | ||
| 26 | KC_LSFT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 27 | KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_RALT, KC_RALT, KC_RWIN, KC_RCTL), | ||
| 28 | |||
| 29 | |||
| 30 | [_FN] = LAYOUT(KC_GRV, 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_DEL, KC_DEL, | ||
| 31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, | ||
| 34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT), // | ||
| 35 | |||
| 36 | [_FN1] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,), | ||
| 41 | |||
| 42 | [_FN2] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 47 | }; | ||
| 48 | |||
| 49 | bool led_update_user(led_t led_state) { | ||
| 50 | |||
| 51 | if(led_state.caps_lock){ | ||
| 52 | rgblight_setrgb_at(192, 192, 192, 0); | ||
| 53 | }else{ | ||
| 54 | rgblight_setrgb_at(0, 0, 0, 0); | ||
| 55 | } | ||
| 56 | |||
| 57 | return true; | ||
| 58 | } | ||
diff --git a/keyboards/geminate60/keymaps/via/rules.mk b/keyboards/geminate60/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/geminate60/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/geminate60/readme.md b/keyboards/geminate60/readme.md new file mode 100644 index 000000000..f08e87739 --- /dev/null +++ b/keyboards/geminate60/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Geminate60 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 60% keyboard based on STM32f303 | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Weirdo](https://weirdo-f.github.io)(https://github.com/1248314361) | ||
| 8 | * Hardware Supported: Geminate60 | ||
| 9 | * Hardware Availability: Not yet | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make geminate60:default | ||
| 14 | |||
| 15 | 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/geminate60/rules.mk b/keyboards/geminate60/rules.mk new file mode 100644 index 000000000..676781921 --- /dev/null +++ b/keyboards/geminate60/rules.mk | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F303 | ||
| 3 | |||
| 4 | # Build Options | ||
| 5 | # change yes to no to disable | ||
| 6 | # | ||
| 7 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 8 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 9 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 10 | CONSOLE_ENABLE = no # Console for debug | ||
| 11 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 12 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 13 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 14 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 15 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 18 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 19 | AUDIO_ENABLE = no # Audio output | ||
| 20 | |||
| 21 | #LAYOUTS = ortho_5x15 | ||
