diff options
| author | Max Bridgland <34947910+M4cs@users.noreply.github.com> | 2020-11-24 08:46:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-24 13:46:23 +0000 |
| commit | 66b5c5eff26c93620e5a6c9f369a50d53722ff66 (patch) | |
| tree | bdaabccf0f46e8dc700cfddf03093807ed11bdb2 /keyboards/dekunukem | |
| parent | 6e97a4c8b915e7be4d86ea9969c0e7d7e9876b8b (diff) | |
| download | qmk_firmware-66b5c5eff26c93620e5a6c9f369a50d53722ff66.tar.gz qmk_firmware-66b5c5eff26c93620e5a6c9f369a50d53722ff66.zip | |
Add M4cs Keymap for dekunukem/duckyPad (#10900)
* Add Keymap
* Fix Media Keys
* Add Keymap ASCII and Clean Up
* Add Readme
* Add GPL Headers, Clean Up Code Based on @drashna Suggestions
* Remove unnecessary include
* Add Layout for info.json and Readme.md
* Fix Layout for info.json
* Fix #endif Error
* Remove Tapping Term
* Add Default Keymap
* Add comments, fix readmes, clean up
* Fix README formatting
* Fix Timeout
* Fix I2C Rules
* Fix Comment Formatting, Multiline Breaks
* Add Sleep/Backlight Rules
* Clean Up README
* Clean Up Rules
* Fix Comments
* Add Pragmas
Co-authored-by: M4cs <mabridgland@protonmail.com>
Co-authored-by: Max <max@Maxs-MacBook-Pro.local>
Diffstat (limited to 'keyboards/dekunukem')
| -rw-r--r-- | keyboards/dekunukem/duckypad/chconf.h | 714 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/config.h | 61 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/duckypad.c | 53 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/duckypad.h | 32 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/halconf.h | 525 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/info.json | 30 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/keymaps/default/config.h | 59 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/keymaps/default/keymap.c | 159 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/keymaps/default/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/keymaps/m4cs/config.h | 75 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/keymaps/m4cs/keymap.c | 236 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/keymaps/m4cs/readme.md | 25 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/keymaps/m4cs/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/mcuconf.h | 178 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/readme.md | 16 | ||||
| -rw-r--r-- | keyboards/dekunukem/duckypad/rules.mk | 24 |
16 files changed, 2208 insertions, 0 deletions
diff --git a/keyboards/dekunukem/duckypad/chconf.h b/keyboards/dekunukem/duckypad/chconf.h new file mode 100644 index 000000000..85c1c9b3b --- /dev/null +++ b/keyboards/dekunukem/duckypad/chconf.h | |||
| @@ -0,0 +1,714 @@ | |||
| 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 rt/templates/chconf.h | ||
| 19 | * @brief Configuration file template. | ||
| 20 | * @details A copy of this file must be placed in each project directory, it | ||
| 21 | * contains the application specific kernel settings. | ||
| 22 | * | ||
| 23 | * @addtogroup config | ||
| 24 | * @details Kernel related settings and hooks. | ||
| 25 | * @{ | ||
| 26 | */ | ||
| 27 | |||
| 28 | #ifndef CHCONF_H | ||
| 29 | #define CHCONF_H | ||
| 30 | |||
| 31 | #define _CHIBIOS_RT_CONF_ | ||
| 32 | #define _CHIBIOS_RT_CONF_VER_6_0_ | ||
| 33 | |||
| 34 | /*===========================================================================*/ | ||
| 35 | /** | ||
| 36 | * @name System timers settings | ||
| 37 | * @{ | ||
| 38 | */ | ||
| 39 | /*===========================================================================*/ | ||
| 40 | |||
| 41 | /** | ||
| 42 | * @brief System time counter resolution. | ||
| 43 | * @note Allowed values are 16 or 32 bits. | ||
| 44 | */ | ||
| 45 | #if !defined(CH_CFG_ST_RESOLUTION) | ||
| 46 | #define CH_CFG_ST_RESOLUTION 32 | ||
| 47 | #endif | ||
| 48 | |||
| 49 | /** | ||
| 50 | * @brief System tick frequency. | ||
| 51 | * @details Frequency of the system timer that drives the system ticks. This | ||
| 52 | * setting also defines the system tick time unit. | ||
| 53 | */ | ||
| 54 | #if !defined(CH_CFG_ST_FREQUENCY) | ||
| 55 | #define CH_CFG_ST_FREQUENCY 10000 | ||
| 56 | #endif | ||
| 57 | |||
| 58 | /** | ||
| 59 | * @brief Time intervals data size. | ||
| 60 | * @note Allowed values are 16, 32 or 64 bits. | ||
| 61 | */ | ||
| 62 | #if !defined(CH_CFG_INTERVALS_SIZE) | ||
| 63 | #define CH_CFG_INTERVALS_SIZE 32 | ||
| 64 | #endif | ||
| 65 | |||
| 66 | /** | ||
| 67 | * @brief Time types data size. | ||
| 68 | * @note Allowed values are 16 or 32 bits. | ||
| 69 | */ | ||
| 70 | #if !defined(CH_CFG_TIME_TYPES_SIZE) | ||
| 71 | #define CH_CFG_TIME_TYPES_SIZE 32 | ||
| 72 | #endif | ||
| 73 | |||
| 74 | /** | ||
| 75 | * @brief Time delta constant for the tick-less mode. | ||
| 76 | * @note If this value is zero then the system uses the classic | ||
| 77 | * periodic tick. This value represents the minimum number | ||
| 78 | * of ticks that is safe to specify in a timeout directive. | ||
| 79 | * The value one is not valid, timeouts are rounded up to | ||
| 80 | * this value. | ||
| 81 | */ | ||
| 82 | #if !defined(CH_CFG_ST_TIMEDELTA) | ||
| 83 | #define CH_CFG_ST_TIMEDELTA 2 | ||
| 84 | #endif | ||
| 85 | |||
| 86 | /** @} */ | ||
| 87 | |||
| 88 | /*===========================================================================*/ | ||
| 89 | /** | ||
| 90 | * @name Kernel parameters and options | ||
| 91 | * @{ | ||
| 92 | */ | ||
| 93 | /*===========================================================================*/ | ||
| 94 | |||
| 95 | /** | ||
| 96 | * @brief Round robin interval. | ||
| 97 | * @details This constant is the number of system ticks allowed for the | ||
| 98 | * threads before preemption occurs. Setting this value to zero | ||
| 99 | * disables the preemption for threads with equal priority and the | ||
| 100 | * round robin becomes cooperative. Note that higher priority | ||
| 101 | * threads can still preempt, the kernel is always preemptive. | ||
| 102 | * @note Disabling the round robin preemption makes the kernel more compact | ||
| 103 | * and generally faster. | ||
| 104 | * @note The round robin preemption is not supported in tickless mode and | ||
| 105 | * must be set to zero in that case. | ||
| 106 | */ | ||
| 107 | #if !defined(CH_CFG_TIME_QUANTUM) | ||
| 108 | #define CH_CFG_TIME_QUANTUM 0 | ||
| 109 | #endif | ||
| 110 | |||
| 111 | /** | ||
| 112 | * @brief Managed RAM size. | ||
| 113 | * @details Size of the RAM area to be managed by the OS. If set to zero | ||
| 114 | * then the whole available RAM is used. The core memory is made | ||
| 115 | * available to the heap allocator and/or can be used directly through | ||
| 116 | * the simplified core memory allocator. | ||
| 117 | * | ||
| 118 | * @note In order to let the OS manage the whole RAM the linker script must | ||
| 119 | * provide the @p __heap_base__ and @p __heap_end__ symbols. | ||
| 120 | * @note Requires @p CH_CFG_USE_MEMCORE. | ||
| 121 | */ | ||
| 122 | #if !defined(CH_CFG_MEMCORE_SIZE) | ||
| 123 | #define CH_CFG_MEMCORE_SIZE 0 | ||
| 124 | #endif | ||
| 125 | |||
| 126 | /** | ||
| 127 | * @brief Idle thread automatic spawn suppression. | ||
| 128 | * @details When this option is activated the function @p chSysInit() | ||
| 129 | * does not spawn the idle thread. The application @p main() | ||
| 130 | * function becomes the idle thread and must implement an | ||
| 131 | * infinite loop. | ||
| 132 | */ | ||
| 133 | #if !defined(CH_CFG_NO_IDLE_THREAD) | ||
| 134 | #define CH_CFG_NO_IDLE_THREAD FALSE | ||
| 135 | #endif | ||
| 136 | |||
| 137 | /** @} */ | ||
| 138 | |||
| 139 | /*===========================================================================*/ | ||
| 140 | /** | ||
| 141 | * @name Performance options | ||
| 142 | * @{ | ||
| 143 | */ | ||
| 144 | /*===========================================================================*/ | ||
| 145 | |||
| 146 | /** | ||
| 147 | * @brief OS optimization. | ||
| 148 | * @details If enabled then time efficient rather than space efficient code | ||
| 149 | * is used when two possible implementations exist. | ||
| 150 | * | ||
| 151 | * @note This is not related to the compiler optimization options. | ||
| 152 | * @note The default is @p TRUE. | ||
| 153 | */ | ||
| 154 | #if !defined(CH_CFG_OPTIMIZE_SPEED) | ||
| 155 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
| 156 | #endif | ||
| 157 | |||
| 158 | /** @} */ | ||
| 159 | |||
| 160 | /*===========================================================================*/ | ||
| 161 | /** | ||
| 162 | * @name Subsystem options | ||
| 163 | * @{ | ||
| 164 | */ | ||
| 165 | /*===========================================================================*/ | ||
| 166 | |||
| 167 | /** | ||
| 168 | * @brief Time Measurement APIs. | ||
| 169 | * @details If enabled then the time measurement APIs are included in | ||
| 170 | * the kernel. | ||
| 171 | * | ||
| 172 | * @note The default is @p TRUE. | ||
| 173 | */ | ||
| 174 | #if !defined(CH_CFG_USE_TM) | ||
| 175 | #define CH_CFG_USE_TM FALSE | ||
| 176 | #endif | ||
| 177 | |||
| 178 | /** | ||
| 179 | * @brief Threads registry APIs. | ||
| 180 | * @details If enabled then the registry APIs are included in the kernel. | ||
| 181 | * | ||
| 182 | * @note The default is @p TRUE. | ||
| 183 | */ | ||
| 184 | #if !defined(CH_CFG_USE_REGISTRY) | ||
| 185 | #define CH_CFG_USE_REGISTRY TRUE | ||
| 186 | #endif | ||
| 187 | |||
| 188 | /** | ||
| 189 | * @brief Threads synchronization APIs. | ||
| 190 | * @details If enabled then the @p chThdWait() function is included in | ||
| 191 | * the kernel. | ||
| 192 | * | ||
| 193 | * @note The default is @p TRUE. | ||
| 194 | */ | ||
| 195 | #if !defined(CH_CFG_USE_WAITEXIT) | ||
| 196 | #define CH_CFG_USE_WAITEXIT TRUE | ||
| 197 | #endif | ||
| 198 | |||
| 199 | /** | ||
| 200 | * @brief Semaphores APIs. | ||
| 201 | * @details If enabled then the Semaphores APIs are included in the kernel. | ||
| 202 | * | ||
| 203 | * @note The default is @p TRUE. | ||
| 204 | */ | ||
| 205 | #if !defined(CH_CFG_USE_SEMAPHORES) | ||
| 206 | #define CH_CFG_USE_SEMAPHORES TRUE | ||
| 207 | #endif | ||
| 208 | |||
| 209 | /** | ||
| 210 | * @brief Semaphores queuing mode. | ||
| 211 | * @details If enabled then the threads are enqueued on semaphores by | ||
| 212 | * priority rather than in FIFO order. | ||
| 213 | * | ||
| 214 | * @note The default is @p FALSE. Enable this if you have special | ||
| 215 | * requirements. | ||
| 216 | * @note Requires @p CH_CFG_USE_SEMAPHORES. | ||
| 217 | */ | ||
| 218 | #if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY) | ||
| 219 | #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE | ||
| 220 | #endif | ||
| 221 | |||
| 222 | /** | ||
| 223 | * @brief Mutexes APIs. | ||
| 224 | * @details If enabled then the mutexes APIs are included in the kernel. | ||
| 225 | * | ||
| 226 | * @note The default is @p TRUE. | ||
| 227 | */ | ||
| 228 | #if !defined(CH_CFG_USE_MUTEXES) | ||
| 229 | #define CH_CFG_USE_MUTEXES TRUE | ||
| 230 | #endif | ||
| 231 | |||
| 232 | /** | ||
| 233 | * @brief Enables recursive behavior on mutexes. | ||
| 234 | * @note Recursive mutexes are heavier and have an increased | ||
| 235 | * memory footprint. | ||
| 236 | * | ||
| 237 | * @note The default is @p FALSE. | ||
| 238 | * @note Requires @p CH_CFG_USE_MUTEXES. | ||
| 239 | */ | ||
| 240 | #if !defined(CH_CFG_USE_MUTEXES_RECURSIVE) | ||
| 241 | #define CH_CFG_USE_MUTEXES_RECURSIVE FALSE | ||
| 242 | #endif | ||
| 243 | |||
| 244 | /** | ||
| 245 | * @brief Conditional Variables APIs. | ||
| 246 | * @details If enabled then the conditional variables APIs are included | ||
| 247 | * in the kernel. | ||
| 248 | * | ||
| 249 | * @note The default is @p TRUE. | ||
| 250 | * @note Requires @p CH_CFG_USE_MUTEXES. | ||
| 251 | */ | ||
| 252 | #if !defined(CH_CFG_USE_CONDVARS) | ||
| 253 | #define CH_CFG_USE_CONDVARS TRUE | ||
| 254 | #endif | ||
| 255 | |||
| 256 | /** | ||
| 257 | * @brief Conditional Variables APIs with timeout. | ||
| 258 | * @details If enabled then the conditional variables APIs with timeout | ||
| 259 | * specification are included in the kernel. | ||
| 260 | * | ||
| 261 | * @note The default is @p TRUE. | ||
| 262 | * @note Requires @p CH_CFG_USE_CONDVARS. | ||
| 263 | */ | ||
| 264 | #if !defined(CH_CFG_USE_CONDVARS_TIMEOUT) | ||
| 265 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
| 266 | #endif | ||
| 267 | |||
| 268 | /** | ||
| 269 | * @brief Events Flags APIs. | ||
| 270 | * @details If enabled then the event flags APIs are included in the kernel. | ||
| 271 | * | ||
| 272 | * @note The default is @p TRUE. | ||
| 273 | */ | ||
| 274 | #if !defined(CH_CFG_USE_EVENTS) | ||
| 275 | #define CH_CFG_USE_EVENTS TRUE | ||
| 276 | #endif | ||
| 277 | |||
| 278 | /** | ||
| 279 | * @brief Events Flags APIs with timeout. | ||
| 280 | * @details If enabled then the events APIs with timeout specification | ||
| 281 | * are included in the kernel. | ||
| 282 | * | ||
| 283 | * @note The default is @p TRUE. | ||
| 284 | * @note Requires @p CH_CFG_USE_EVENTS. | ||
| 285 | */ | ||
| 286 | #if !defined(CH_CFG_USE_EVENTS_TIMEOUT) | ||
| 287 | #define CH_CFG_USE_EVENTS_TIMEOUT TRUE | ||
| 288 | #endif | ||
| 289 | |||
| 290 | /** | ||
| 291 | * @brief Synchronous Messages APIs. | ||
| 292 | * @details If enabled then the synchronous messages APIs are included | ||
| 293 | * in the kernel. | ||
| 294 | * | ||
| 295 | * @note The default is @p TRUE. | ||
| 296 | */ | ||
| 297 | #if !defined(CH_CFG_USE_MESSAGES) | ||
| 298 | #define CH_CFG_USE_MESSAGES TRUE | ||
| 299 | #endif | ||
| 300 | |||
| 301 | /** | ||
| 302 | * @brief Synchronous Messages queuing mode. | ||
| 303 | * @details If enabled then messages are served by priority rather than in | ||
| 304 | * FIFO order. | ||
| 305 | * | ||
| 306 | * @note The default is @p FALSE. Enable this if you have special | ||
| 307 | * requirements. | ||
| 308 | * @note Requires @p CH_CFG_USE_MESSAGES. | ||
| 309 | */ | ||
| 310 | #if !defined(CH_CFG_USE_MESSAGES_PRIORITY) | ||
| 311 | #define CH_CFG_USE_MESSAGES_PRIORITY FALSE | ||
| 312 | #endif | ||
| 313 | |||
| 314 | /** | ||
| 315 | * @brief Mailboxes APIs. | ||
| 316 | * @details If enabled then the asynchronous messages (mailboxes) APIs are | ||
| 317 | * included in the kernel. | ||
| 318 | * | ||
| 319 | * @note The default is @p TRUE. | ||
| 320 | * @note Requires @p CH_CFG_USE_SEMAPHORES. | ||
| 321 | */ | ||
| 322 | #if !defined(CH_CFG_USE_MAILBOXES) | ||
| 323 | #define CH_CFG_USE_MAILBOXES TRUE | ||
| 324 | #endif | ||
| 325 | |||
| 326 | /** | ||
| 327 | * @brief Core Memory Manager APIs. | ||
| 328 | * @details If enabled then the core memory manager APIs are included | ||
| 329 | * in the kernel. | ||
| 330 | * | ||
| 331 | * @note The default is @p TRUE. | ||
| 332 | */ | ||
| 333 | #if !defined(CH_CFG_USE_MEMCORE) | ||
| 334 | #define CH_CFG_USE_MEMCORE TRUE | ||
| 335 | #endif | ||
| 336 | |||
| 337 | /** | ||
| 338 | * @brief Heap Allocator APIs. | ||
| 339 | * @details If enabled then the memory heap allocator APIs are included | ||
| 340 | * in the kernel. | ||
| 341 | * | ||
| 342 | * @note The default is @p TRUE. | ||
| 343 | * @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or | ||
| 344 | * @p CH_CFG_USE_SEMAPHORES. | ||
| 345 | * @note Mutexes are recommended. | ||
| 346 | */ | ||
| 347 | #if !defined(CH_CFG_USE_HEAP) | ||
| 348 | #define CH_CFG_USE_HEAP FALSE | ||
| 349 | #endif | ||
| 350 | |||
| 351 | /** | ||
| 352 | * @brief Memory Pools Allocator APIs. | ||
| 353 | * @details If enabled then the memory pools allocator APIs are included | ||
| 354 | * in the kernel. | ||
| 355 | * | ||
| 356 | * @note The default is @p TRUE. | ||
| 357 | */ | ||
| 358 | #if !defined(CH_CFG_USE_MEMPOOLS) | ||
| 359 | #define CH_CFG_USE_MEMPOOLS FALSE | ||
| 360 | #endif | ||
| 361 | |||
| 362 | /** | ||
| 363 | * @brief Objects FIFOs APIs. | ||
| 364 | * @details If enabled then the objects FIFOs APIs are included | ||
| 365 | * in the kernel. | ||
| 366 | * | ||
| 367 | * @note The default is @p TRUE. | ||
| 368 | */ | ||
| 369 | #if !defined(CH_CFG_USE_OBJ_FIFOS) | ||
| 370 | #define CH_CFG_USE_OBJ_FIFOS FALSE | ||
| 371 | #endif | ||
| 372 | |||
| 373 | /** | ||
| 374 | * @brief Pipes APIs. | ||
| 375 | * @details If enabled then the pipes APIs are included | ||
| 376 | * in the kernel. | ||
| 377 | * | ||
| 378 | * @note The default is @p TRUE. | ||
| 379 | */ | ||
| 380 | #if !defined(CH_CFG_USE_PIPES) | ||
| 381 | #define CH_CFG_USE_PIPES TRUE | ||
| 382 | #endif | ||
| 383 | |||
| 384 | /** | ||
| 385 | * @brief Dynamic Threads APIs. | ||
| 386 | * @details If enabled then the dynamic threads creation APIs are included | ||
| 387 | * in the kernel. | ||
| 388 | * | ||
| 389 | * @note The default is @p TRUE. | ||
| 390 | * @note Requires @p CH_CFG_USE_WAITEXIT. | ||
| 391 | * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS. | ||
| 392 | */ | ||
| 393 | #if !defined(CH_CFG_USE_DYNAMIC) | ||
| 394 | #define CH_CFG_USE_DYNAMIC FALSE | ||
| 395 | #endif | ||
| 396 | |||
| 397 | /** @} */ | ||
| 398 | |||
| 399 | /*===========================================================================*/ | ||
| 400 | /** | ||
| 401 | * @name Objects factory options | ||
| 402 | * @{ | ||
| 403 | */ | ||
| 404 | /*===========================================================================*/ | ||
| 405 | |||
| 406 | /** | ||
| 407 | * @brief Objects Factory APIs. | ||
| 408 | * @details If enabled then the objects factory APIs are included in the | ||
| 409 | * kernel. | ||
| 410 | * | ||
| 411 | * @note The default is @p FALSE. | ||
| 412 | */ | ||
| 413 | #if !defined(CH_CFG_USE_FACTORY) | ||
| 414 | #define CH_CFG_USE_FACTORY FALSE | ||
| 415 | #endif | ||
| 416 | |||
| 417 | /** | ||
| 418 | * @brief Maximum length for object names. | ||
| 419 | * @details If the specified length is zero then the name is stored by | ||
| 420 | * pointer but this could have unintended side effects. | ||
| 421 | */ | ||
| 422 | #if !defined(CH_CFG_FACTORY_MAX_NAMES_LENGTH) | ||
| 423 | #define CH_CFG_FACTORY_MAX_NAMES_LENGTH 8 | ||
| 424 | #endif | ||
| 425 | |||
| 426 | /** | ||
| 427 | * @brief Enables the registry of generic objects. | ||
| 428 | */ | ||
| 429 | #if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY) | ||
| 430 | #define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE | ||
| 431 | #endif | ||
| 432 | |||
| 433 | /** | ||
| 434 | * @brief Enables factory for generic buffers. | ||
| 435 | */ | ||
| 436 | #if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS) | ||
| 437 | #define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE | ||
| 438 | #endif | ||
| 439 | |||
| 440 | /** | ||
| 441 | * @brief Enables factory for semaphores. | ||
| 442 | */ | ||
| 443 | #if !defined(CH_CFG_FACTORY_SEMAPHORES) | ||
| 444 | #define CH_CFG_FACTORY_SEMAPHORES TRUE | ||
| 445 | #endif | ||
| 446 | |||
| 447 | /** | ||
| 448 | * @brief Enables factory for mailboxes. | ||
| 449 | */ | ||
| 450 | #if !defined(CH_CFG_FACTORY_MAILBOXES) | ||
| 451 | #define CH_CFG_FACTORY_MAILBOXES TRUE | ||
| 452 | #endif | ||
| 453 | |||
| 454 | /** | ||
| 455 | * @brief Enables factory for objects FIFOs. | ||
| 456 | */ | ||
| 457 | #if !defined(CH_CFG_FACTORY_OBJ_FIFOS) | ||
| 458 | #define CH_CFG_FACTORY_OBJ_FIFOS TRUE | ||
| 459 | #endif | ||
| 460 | |||
| 461 | /** | ||
| 462 | * @brief Enables factory for Pipes. | ||
| 463 | */ | ||
| 464 | #if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__) | ||
| 465 | #define CH_CFG_FACTORY_PIPES TRUE | ||
| 466 | #endif | ||
| 467 | |||
| 468 | /** @} */ | ||
| 469 | |||
| 470 | /*===========================================================================*/ | ||
| 471 | /** | ||
| 472 | * @name Debug options | ||
| 473 | * @{ | ||
| 474 | */ | ||
| 475 | /*===========================================================================*/ | ||
| 476 | |||
| 477 | /** | ||
| 478 | * @brief Debug option, kernel statistics. | ||
| 479 | * | ||
| 480 | * @note The default is @p FALSE. | ||
| 481 | */ | ||
| 482 | #if !defined(CH_DBG_STATISTICS) | ||
| 483 | #define CH_DBG_STATISTICS FALSE | ||
| 484 | #endif | ||
| 485 | |||
| 486 | /** | ||
| 487 | * @brief Debug option, system state check. | ||
| 488 | * @details If enabled the correct call protocol for system APIs is checked | ||
| 489 | * at runtime. | ||
| 490 | * | ||
| 491 | * @note The default is @p FALSE. | ||
| 492 | */ | ||
| 493 | #if !defined(CH_DBG_SYSTEM_STATE_CHECK) | ||
| 494 | #define CH_DBG_SYSTEM_STATE_CHECK FALSE | ||
| 495 | #endif | ||
| 496 | |||
| 497 | /** | ||
| 498 | * @brief Debug option, parameters checks. | ||
| 499 | * @details If enabled then the checks on the API functions input | ||
| 500 | * parameters are activated. | ||
| 501 | * | ||
| 502 | * @note The default is @p FALSE. | ||
| 503 | */ | ||
| 504 | #if !defined(CH_DBG_ENABLE_CHECKS) | ||
| 505 | #define CH_DBG_ENABLE_CHECKS FALSE | ||
| 506 | #endif | ||
| 507 | |||
| 508 | /** | ||
| 509 | * @brief Debug option, consistency checks. | ||
| 510 | * @details If enabled then all the assertions in the kernel code are | ||
| 511 | * activated. This includes consistency checks inside the kernel, | ||
| 512 | * runtime anomalies and port-defined checks. | ||
| 513 | * | ||
| 514 | * @note The default is @p FALSE. | ||
| 515 | */ | ||
| 516 | #if !defined(CH_DBG_ENABLE_ASSERTS) | ||
| 517 | #define CH_DBG_ENABLE_ASSERTS FALSE | ||
| 518 | #endif | ||
| 519 | |||
| 520 | /** | ||
| 521 | * @brief Debug option, trace buffer. | ||
| 522 | * @details If enabled then the trace buffer is activated. | ||
| 523 | * | ||
| 524 | * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. | ||
| 525 | */ | ||
| 526 | #if !defined(CH_DBG_TRACE_MASK) | ||
| 527 | #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED | ||
| 528 | #endif | ||
| 529 | |||
| 530 | /** | ||
| 531 | * @brief Trace buffer entries. | ||
| 532 | * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is | ||
| 533 | * different from @p CH_DBG_TRACE_MASK_DISABLED. | ||
| 534 | */ | ||
| 535 | #if !defined(CH_DBG_TRACE_BUFFER_SIZE) | ||
| 536 | #define CH_DBG_TRACE_BUFFER_SIZE 128 | ||
| 537 | #endif | ||
| 538 | |||
| 539 | /** | ||
| 540 | * @brief Debug option, stack checks. | ||
| 541 | * @details If enabled then a runtime stack check is performed. | ||
| 542 | * | ||
| 543 | * @note The default is @p FALSE. | ||
| 544 | * @note The stack check is performed in a architecture/port dependent way. | ||
| 545 | * It may not be implemented or some ports. | ||
| 546 | * @note The default failure mode is to halt the system with the global | ||
| 547 | * @p panic_msg variable set to @p NULL. | ||
| 548 | */ | ||
| 549 | #if !defined(CH_DBG_ENABLE_STACK_CHECK) | ||
| 550 | #define CH_DBG_ENABLE_STACK_CHECK FALSE | ||
| 551 | #endif | ||
| 552 | |||
| 553 | /** | ||
| 554 | * @brief Debug option, stacks initialization. | ||
| 555 | * @details If enabled then the threads working area is filled with a byte | ||
| 556 | * value when a thread is created. This can be useful for the | ||
| 557 | * runtime measurement of the used stack. | ||
| 558 | * | ||
| 559 | * @note The default is @p FALSE. | ||
| 560 | */ | ||
| 561 | #if !defined(CH_DBG_FILL_THREADS) | ||
| 562 | #define CH_DBG_FILL_THREADS FALSE | ||
| 563 | #endif | ||
| 564 | |||
| 565 | /** | ||
| 566 | * @brief Debug option, threads profiling. | ||
| 567 | * @details If enabled then a field is added to the @p thread_t structure that | ||
| 568 | * counts the system ticks occurred while executing the thread. | ||
| 569 | * | ||
| 570 | * @note The default is @p FALSE. | ||
| 571 | * @note This debug option is not currently compatible with the | ||
| 572 | * tickless mode. | ||
| 573 | */ | ||
| 574 | #if !defined(CH_DBG_THREADS_PROFILING) | ||
| 575 | #define CH_DBG_THREADS_PROFILING FALSE | ||
| 576 | #endif | ||
| 577 | |||
| 578 | /** @} */ | ||
| 579 | |||
| 580 | /*===========================================================================*/ | ||
| 581 | /** | ||
| 582 | * @name Kernel hooks | ||
| 583 | * @{ | ||
| 584 | */ | ||
| 585 | /*===========================================================================*/ | ||
| 586 | |||
| 587 | /** | ||
| 588 | * @brief System structure extension. | ||
| 589 | * @details User fields added to the end of the @p ch_system_t structure. | ||
| 590 | */ | ||
| 591 | #define CH_CFG_SYSTEM_EXTRA_FIELDS \ | ||
| 592 | /* Add threads custom fields here.*/ | ||
| 593 | |||
| 594 | /** | ||
| 595 | * @brief System initialization hook. | ||
| 596 | * @details User initialization code added to the @p chSysInit() function | ||
| 597 | * just before interrupts are enabled globally. | ||
| 598 | */ | ||
| 599 | #define CH_CFG_SYSTEM_INIT_HOOK() { \ | ||
| 600 | /* Add threads initialization code here.*/ \ | ||
| 601 | } | ||
| 602 | |||
| 603 | /** | ||
| 604 | * @brief Threads descriptor structure extension. | ||
| 605 | * @details User fields added to the end of the @p thread_t structure. | ||
| 606 | */ | ||
| 607 | #define CH_CFG_THREAD_EXTRA_FIELDS \ | ||
| 608 | /* Add threads custom fields here.*/ | ||
| 609 | |||
| 610 | /** | ||
| 611 | * @brief Threads initialization hook. | ||
| 612 | * @details User initialization code added to the @p _thread_init() function. | ||
| 613 | * | ||
| 614 | * @note It is invoked from within @p _thread_init() and implicitly from all | ||
| 615 | * the threads creation APIs. | ||
| 616 | */ | ||
| 617 | #define CH_CFG_THREAD_INIT_HOOK(tp) { \ | ||
| 618 | /* Add threads initialization code here.*/ \ | ||
| 619 | } | ||
| 620 | |||
| 621 | /** | ||
| 622 | * @brief Threads finalization hook. | ||
| 623 | * @details User finalization code added to the @p chThdExit() API. | ||
| 624 | */ | ||
| 625 | #define CH_CFG_THREAD_EXIT_HOOK(tp) { \ | ||
| 626 | /* Add threads finalization code here.*/ \ | ||
| 627 | } | ||
| 628 | |||
| 629 | /** | ||
| 630 | * @brief Context switch hook. | ||
| 631 | * @details This hook is invoked just before switching between threads. | ||
| 632 | */ | ||
| 633 | #define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \ | ||
| 634 | /* Context switch code here.*/ \ | ||
| 635 | } | ||
| 636 | |||
| 637 | /** | ||
| 638 | * @brief ISR enter hook. | ||
| 639 | */ | ||
| 640 | #define CH_CFG_IRQ_PROLOGUE_HOOK() { \ | ||
| 641 | /* IRQ prologue code here.*/ \ | ||
| 642 | } | ||
| 643 | |||
| 644 | /** | ||
| 645 | * @brief ISR exit hook. | ||
| 646 | */ | ||
| 647 | #define CH_CFG_IRQ_EPILOGUE_HOOK() { \ | ||
| 648 | /* IRQ epilogue code here.*/ \ | ||
| 649 | } | ||
| 650 | |||
| 651 | /** | ||
| 652 | * @brief Idle thread enter hook. | ||
| 653 | * @note This hook is invoked within a critical zone, no OS functions | ||
| 654 | * should be invoked from here. | ||
| 655 | * @note This macro can be used to activate a power saving mode. | ||
| 656 | */ | ||
| 657 | #define CH_CFG_IDLE_ENTER_HOOK() { \ | ||
| 658 | /* Idle-enter code here.*/ \ | ||
| 659 | } | ||
| 660 | |||
| 661 | /** | ||
| 662 | * @brief Idle thread leave hook. | ||
| 663 | * @note This hook is invoked within a critical zone, no OS functions | ||
| 664 | * should be invoked from here. | ||
| 665 | * @note This macro can be used to deactivate a power saving mode. | ||
| 666 | */ | ||
| 667 | #define CH_CFG_IDLE_LEAVE_HOOK() { \ | ||
| 668 | /* Idle-leave code here.*/ \ | ||
| 669 | } | ||
| 670 | |||
| 671 | /** | ||
| 672 | * @brief Idle Loop hook. | ||
| 673 | * @details This hook is continuously invoked by the idle thread loop. | ||
| 674 | */ | ||
| 675 | #define CH_CFG_IDLE_LOOP_HOOK() { \ | ||
| 676 | /* Idle loop code here.*/ \ | ||
| 677 | } | ||
| 678 | |||
| 679 | /** | ||
| 680 | * @brief System tick event hook. | ||
| 681 | * @details This hook is invoked in the system tick handler immediately | ||
| 682 | * after processing the virtual timers queue. | ||
| 683 | */ | ||
| 684 | #define CH_CFG_SYSTEM_TICK_HOOK() { \ | ||
| 685 | /* System tick event code here.*/ \ | ||
| 686 | } | ||
| 687 | |||
| 688 | /** | ||
| 689 | * @brief System halt hook. | ||
| 690 | * @details This hook is invoked in case to a system halting error before | ||
| 691 | * the system is halted. | ||
| 692 | */ | ||
| 693 | #define CH_CFG_SYSTEM_HALT_HOOK(reason) { \ | ||
| 694 | /* System halt code here.*/ \ | ||
| 695 | } | ||
| 696 | |||
| 697 | /** | ||
| 698 | * @brief Trace hook. | ||
| 699 | * @details This hook is invoked each time a new record is written in the | ||
| 700 | * trace buffer. | ||
| 701 | */ | ||
| 702 | #define CH_CFG_TRACE_HOOK(tep) { \ | ||
| 703 | /* Trace code here.*/ \ | ||
| 704 | } | ||
| 705 | |||
| 706 | /** @} */ | ||
| 707 | |||
| 708 | /*===========================================================================*/ | ||
| 709 | /* Port-specific settings (override port settings defaulted in chcore.h). */ | ||
| 710 | /*===========================================================================*/ | ||
| 711 | |||
| 712 | #endif /* CHCONF_H */ | ||
| 713 | |||
| 714 | /** @} */ | ||
diff --git a/keyboards/dekunukem/duckypad/config.h b/keyboards/dekunukem/duckypad/config.h new file mode 100644 index 000000000..27806ab83 --- /dev/null +++ b/keyboards/dekunukem/duckypad/config.h | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | /* | ||
| 2 | |||
| 3 | QMK Firmware for dekuNukem/duckyPad | ||
| 4 | |||
| 5 | Copyright (C) 2020 Max Bridgland <@M4cs> | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #pragma once | ||
| 22 | |||
| 23 | #include "config_common.h" | ||
| 24 | |||
| 25 | #define VENDOR_ID 0xFEED | ||
| 26 | #define PRODUCT_ID 0x0B91 | ||
| 27 | #define DEVICE_VER 0x0001 | ||
| 28 | #define MANUFACTURER dekuNukem | ||
| 29 | #define PRODUCT duckyPad | ||
| 30 | |||
| 31 | #define MATRIX_ROWS 1 | ||
| 32 | #define MATRIX_COLS 17 | ||
| 33 | |||
| 34 | #define DIRECT_PINS {{ B13, B14, B15, A8, A15, B3, B4, B5, B6, B7, C13, C14, C15, F0, F1, A1, A2 }} | ||
| 35 | |||
| 36 | #define RGB_DI_PIN A10 | ||
| 37 | #define RGBLED_NUM 15 | ||
| 38 | #define DRIVER_LED_TOTAL 15 | ||
| 39 | |||
| 40 | #define RGB_MATRIX_KEYPRESSES | ||
| 41 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
| 42 | #define RGB_MATRIX_STARTUP_HUE 221 | ||
| 43 | |||
| 44 | #define I2C1_SCL_BANK GPIOB | ||
| 45 | #define I2C1_SCL 8 | ||
| 46 | #define I2C1_SDA_BANK GPIOB | ||
| 47 | #define I2C1_SDA 9 | ||
| 48 | |||
| 49 | #define I2C1_SCL_PAL_MODE 1 | ||
| 50 | #define I2C1_SDA_PAL_MODE 1 | ||
| 51 | |||
| 52 | #define I2C1_OPMODE OPMODE_I2C | ||
| 53 | #define I2C1_CLOCK_SPEED 100000 | ||
| 54 | #define I2C1_DUTY_CYCLE STD_DUTY_CYCLE | ||
| 55 | |||
| 56 | #define OLED_DISPLAY_ADDRESS 0x3C | ||
| 57 | #define OLED_DISPLAY_128X64 | ||
| 58 | #define OLED_COM_PINS 0x12 | ||
| 59 | |||
| 60 | #define OLED_IC OLED_IC_SH1106 | ||
| 61 | #define OLED_COLUMN_OFFSET 2 | ||
diff --git a/keyboards/dekunukem/duckypad/duckypad.c b/keyboards/dekunukem/duckypad/duckypad.c new file mode 100644 index 000000000..831a42a04 --- /dev/null +++ b/keyboards/dekunukem/duckypad/duckypad.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /* | ||
| 2 | |||
| 3 | QMK Firmware for dekuNukem/duckyPad | ||
| 4 | |||
| 5 | Copyright (C) 2020 Anthony Som | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #include "duckypad.h" | ||
| 22 | |||
| 23 | led_config_t g_led_config = { { | ||
| 24 | { 2, 1, 0, 3, 4, 5, 8, 7, 6, 9, 10, 11, 14, 13, 12, NO_LED, NO_LED } | ||
| 25 | }, { | ||
| 26 | {224, 0}, | ||
| 27 | {112, 0}, | ||
| 28 | {0, 0}, | ||
| 29 | {0, 16}, | ||
| 30 | {112, 16}, | ||
| 31 | {224, 16}, | ||
| 32 | {224, 32}, | ||
| 33 | {112, 32}, | ||
| 34 | {0, 32}, | ||
| 35 | {0, 48}, | ||
| 36 | {112, 48}, | ||
| 37 | {224, 48}, | ||
| 38 | {224, 64}, | ||
| 39 | {112, 64}, | ||
| 40 | {0, 64}, | ||
| 41 | }, { | ||
| 42 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
| 43 | } }; | ||
| 44 | |||
| 45 | void keyboard_pre_init_kb(void) { | ||
| 46 | setPinOutput(A0); | ||
| 47 | writePinHigh(A0); | ||
| 48 | writePinLow(A0); | ||
| 49 | wait_ms(10); | ||
| 50 | writePinHigh(A0); | ||
| 51 | |||
| 52 | keyboard_pre_init_user(); | ||
| 53 | } | ||
diff --git a/keyboards/dekunukem/duckypad/duckypad.h b/keyboards/dekunukem/duckypad/duckypad.h new file mode 100644 index 000000000..abde7aac6 --- /dev/null +++ b/keyboards/dekunukem/duckypad/duckypad.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* | ||
| 2 | |||
| 3 | QMK Firmware for dekuNukem/duckyPad | ||
| 4 | |||
| 5 | Copyright (C) 2020 Anthony Som | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #pragma once | ||
| 22 | |||
| 23 | #include "quantum.h" | ||
| 24 | |||
| 25 | #define LAYOUT( \ | ||
| 26 | k00, k01, k02, \ | ||
| 27 | k10, k11, k12, \ | ||
| 28 | k20, k21, k22, \ | ||
| 29 | k30, k31, k32, \ | ||
| 30 | k40, k41, k42, \ | ||
| 31 | kDown, kUp \ | ||
| 32 | ) {{k00, k01, k02, k10, k11, k12, k20, k21, k22, k30, k31, k32, k40, k41, k42, kDown, kUp}} | ||
diff --git a/keyboards/dekunukem/duckypad/halconf.h b/keyboards/dekunukem/duckypad/halconf.h new file mode 100644 index 000000000..d08e88460 --- /dev/null +++ b/keyboards/dekunukem/duckypad/halconf.h | |||
| @@ -0,0 +1,525 @@ | |||
| 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 FALSE | ||
| 69 | #endif | ||
| 70 | |||
| 71 | /** | ||
| 72 | * @brief Enables the GPT subsystem. | ||
| 73 | */ | ||
| 74 | #if !defined(HAL_USE_GPT) || defined(__DOXYGEN__) | ||
| 75 | #define HAL_USE_GPT FALSE | ||
| 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 TRUE | ||
| 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 FALSE | ||
| 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 FALSE | ||
| 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 FALSE | ||
| 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 | /** | ||
| 456 | * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs. | ||
| 457 | * @note Disabling this option saves both code and data space. | ||
| 458 | */ | ||
| 459 | #if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 460 | #define SPI_USE_MUTUAL_EXCLUSION TRUE | ||
| 461 | #endif | ||
| 462 | |||
| 463 | /** | ||
| 464 | * @brief Handling method for SPI CS line. | ||
| 465 | * @note Disabling this option saves both code and data space. | ||
| 466 | */ | ||
| 467 | #if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__) | ||
| 468 | #define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
| 469 | #endif | ||
| 470 | |||
| 471 | /*===========================================================================*/ | ||
| 472 | /* UART driver related settings. */ | ||
| 473 | /*===========================================================================*/ | ||
| 474 | |||
| 475 | /** | ||
| 476 | * @brief Enables synchronous APIs. | ||
| 477 | * @note Disabling this option saves both code and data space. | ||
| 478 | */ | ||
| 479 | #if !defined(UART_USE_WAIT) || defined(__DOXYGEN__) | ||
| 480 | #define UART_USE_WAIT FALSE | ||
| 481 | #endif | ||
| 482 | |||
| 483 | /** | ||
| 484 | * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs. | ||
| 485 | * @note Disabling this option saves both code and data space. | ||
| 486 | */ | ||
| 487 | #if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 488 | #define UART_USE_MUTUAL_EXCLUSION FALSE | ||
| 489 | #endif | ||
| 490 | |||
| 491 | /*===========================================================================*/ | ||
| 492 | /* USB driver related settings. */ | ||
| 493 | /*===========================================================================*/ | ||
| 494 | |||
| 495 | /** | ||
| 496 | * @brief Enables synchronous APIs. | ||
| 497 | * @note Disabling this option saves both code and data space. | ||
| 498 | */ | ||
| 499 | #if !defined(USB_USE_WAIT) || defined(__DOXYGEN__) | ||
| 500 | #define USB_USE_WAIT TRUE | ||
| 501 | #endif | ||
| 502 | |||
| 503 | /*===========================================================================*/ | ||
| 504 | /* WSPI driver related settings. */ | ||
| 505 | /*===========================================================================*/ | ||
| 506 | |||
| 507 | /** | ||
| 508 | * @brief Enables synchronous APIs. | ||
| 509 | * @note Disabling this option saves both code and data space. | ||
| 510 | */ | ||
| 511 | #if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__) | ||
| 512 | #define WSPI_USE_WAIT TRUE | ||
| 513 | #endif | ||
| 514 | |||
| 515 | /** | ||
| 516 | * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs. | ||
| 517 | * @note Disabling this option saves both code and data space. | ||
| 518 | */ | ||
| 519 | #if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__) | ||
| 520 | #define WSPI_USE_MUTUAL_EXCLUSION TRUE | ||
| 521 | #endif | ||
| 522 | |||
| 523 | #endif /* HALCONF_H */ | ||
| 524 | |||
| 525 | /** @} */ | ||
diff --git a/keyboards/dekunukem/duckypad/info.json b/keyboards/dekunukem/duckypad/info.json new file mode 100644 index 000000000..664e9314c --- /dev/null +++ b/keyboards/dekunukem/duckypad/info.json | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "duckyPad", | ||
| 3 | "url": "https://github.com/dekuNukem/", | ||
| 4 | "maintainer": "M4cs", | ||
| 5 | "width": 3, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"x": 0, "y": 0}, | ||
| 11 | {"x": 1, "y": 0}, | ||
| 12 | {"x": 2, "y": 0}, | ||
| 13 | {"x": 0, "y": 1}, | ||
| 14 | {"x": 1, "y": 1}, | ||
| 15 | {"x": 2, "y": 1}, | ||
| 16 | {"x": 0, "y": 2}, | ||
| 17 | {"x": 1, "y": 2}, | ||
| 18 | {"x": 2, "y": 2}, | ||
| 19 | {"x": 0, "y": 3}, | ||
| 20 | {"x": 1, "y": 3}, | ||
| 21 | {"x": 2, "y": 3}, | ||
| 22 | {"x": 0, "y": 4}, | ||
| 23 | {"x": 1, "y": 4}, | ||
| 24 | {"x": 2, "y": 4}, | ||
| 25 | {"x": 3, "y": 4}, | ||
| 26 | {"x": 4, "y": 4} | ||
| 27 | ] | ||
| 28 | } | ||
| 29 | } | ||
| 30 | } | ||
diff --git a/keyboards/dekunukem/duckypad/keymaps/default/config.h b/keyboards/dekunukem/duckypad/keymaps/default/config.h new file mode 100644 index 000000000..9d26b7116 --- /dev/null +++ b/keyboards/dekunukem/duckypad/keymaps/default/config.h | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* | ||
| 2 | |||
| 3 | Default Keymap Config for dekuNukem/duckyPad QMK firmware | ||
| 4 | |||
| 5 | Copyright (C) 2020 Max Bridgland | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #pragma once | ||
| 22 | |||
| 23 | #define NO_ACTION_FUNCTION | ||
| 24 | #define NO_ACTION_ONESHOT | ||
| 25 | |||
| 26 | #define OLED_TIMEOUT 90000 | ||
| 27 | #define RGB_DISABLE_TIMEOUT 90000 | ||
| 28 | |||
| 29 | #define MT_0_0 " 1 " | ||
| 30 | #define MT_0_1 " 2 " | ||
| 31 | #define MT_0_2 " 3 " | ||
| 32 | #define MT_0_3 " 4 " | ||
| 33 | #define MT_0_4 " 5 " | ||
| 34 | #define MT_0_5 " 6 " | ||
| 35 | #define MT_0_6 " 7 " | ||
| 36 | #define MT_0_7 " 8 " | ||
| 37 | #define MT_0_8 " 9 " | ||
| 38 | #define MT_0_9 " . " | ||
| 39 | #define MT_0_10 " 0 " | ||
| 40 | #define MT_0_11 " = " | ||
| 41 | #define MT_0_12 " - " | ||
| 42 | #define MT_0_13 " + " | ||
| 43 | #define MT_0_14 " enter" | ||
| 44 | |||
| 45 | #define MT_1_0 " stat " | ||
| 46 | #define MT_1_1 " brth " | ||
| 47 | #define MT_1_2 " rbow " | ||
| 48 | #define MT_1_3 " swrl " | ||
| 49 | #define MT_1_4 " spd- " | ||
| 50 | #define MT_1_5 " spd+ " | ||
| 51 | #define MT_1_6 " eff- " | ||
| 52 | #define MT_1_7 " sat- " | ||
| 53 | #define MT_1_8 " sat+ " | ||
| 54 | #define MT_1_9 " eff+ " | ||
| 55 | #define MT_1_10 " hue- " | ||
| 56 | #define MT_1_11 " hue+ " | ||
| 57 | #define MT_1_12 " powr " | ||
| 58 | #define MT_1_13 " bri- " | ||
| 59 | #define MT_1_14 " bri+ " | ||
diff --git a/keyboards/dekunukem/duckypad/keymaps/default/keymap.c b/keyboards/dekunukem/duckypad/keymaps/default/keymap.c new file mode 100644 index 000000000..3b30c42ff --- /dev/null +++ b/keyboards/dekunukem/duckypad/keymaps/default/keymap.c | |||
| @@ -0,0 +1,159 @@ | |||
| 1 | /* | ||
| 2 | |||
| 3 | Default Keymap for dekuNukem/duckyPad QMK firmware | ||
| 4 | |||
| 5 | Copyright (C) 2020 Max Bridgland | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #include QMK_KEYBOARD_H | ||
| 22 | |||
| 23 | #include "stdio.h" | ||
| 24 | #include <unistd.h> | ||
| 25 | #include <string.h> | ||
| 26 | |||
| 27 | #define LOGO_SIZE 384 | ||
| 28 | |||
| 29 | bool rgbToggled = false; | ||
| 30 | |||
| 31 | enum layer_codes { | ||
| 32 | RGB_LAYER = SAFE_RANGE | ||
| 33 | }; | ||
| 34 | |||
| 35 | enum my_keycodes { | ||
| 36 | Z0 = SAFE_RANGE, Z1, Z2, | ||
| 37 | Z3, Z4, Z5, | ||
| 38 | Z6, Z7, Z8, | ||
| 39 | Z9, Z10, Z11, | ||
| 40 | Z12, Z13, Z14 | ||
| 41 | }; | ||
| 42 | |||
| 43 | #define _DEFAULT 0 | ||
| 44 | #define _RGB 1 | ||
| 45 | |||
| 46 | |||
| 47 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 48 | /* | ||
| 49 | ,=========================================. | ||
| 50 | | Numpad 1 | Numpad 2 | Numpad 3 | | ||
| 51 | |=========================================| | ||
| 52 | | Numpad 4 | Numpad 5 | Numpad 6 | | ||
| 53 | |=========================================| | ||
| 54 | | Numpad 7 | Numpad 8 | Numpad 9 | | ||
| 55 | |=========================================| | ||
| 56 | | Numpad . | Numpad 0 | Numpad = | | ||
| 57 | |=========================================| ,---------------------. | ||
| 58 | | Numpad - | Numpad + | Numpad * | | RGB Menu | Blank | | ||
| 59 | `=========================================' `--------------------' | ||
| 60 | */ | ||
| 61 | [_DEFAULT] = LAYOUT( | ||
| 62 | KC_P1, KC_P2, KC_P3, | ||
| 63 | KC_P4, KC_P5, KC_P6, | ||
| 64 | KC_P7, KC_P8, KC_P9, | ||
| 65 | KC_PDOT, KC_P0, KC_PENT, | ||
| 66 | KC_PMNS, KC_PPLS, KC_EQL, | ||
| 67 | RGB_LAYER, KC_NO | ||
| 68 | ), | ||
| 69 | /* | ||
| 70 | ,=========================================. | ||
| 71 | | Plain RGB | Breathe RGB | Rainbow RGB | | ||
| 72 | |=========================================| | ||
| 73 | | Swirl RGB | Speed Down | Speed Up | | ||
| 74 | |=========================================| | ||
| 75 | | Effect Up | Sat. Down | Sat. Up | | ||
| 76 | |=========================================| | ||
| 77 | | Effect Down | Hue Down | Hue Up | | ||
| 78 | |=========================================| ,----------------------. | ||
| 79 | | Toggle RGB | Brt. Down | Brt. Up | | Norm Menu | Blank | | ||
| 80 | `=========================================' `---------------------' | ||
| 81 | */ | ||
| 82 | [_RGB] = LAYOUT( | ||
| 83 | RGB_MODE_PLAIN, RGB_MODE_BREATHE, RGB_MODE_RAINBOW, | ||
| 84 | RGB_MODE_SWIRL, RGB_SPD, RGB_SPI, | ||
| 85 | RGB_MOD, RGB_SAD, RGB_SAI, | ||
| 86 | RGB_RMOD, RGB_HUD, RGB_HUI, | ||
| 87 | RGB_TOG, RGB_VAD, RGB_VAI, | ||
| 88 | RGB_LAYER, KC_NO | ||
| 89 | ) | ||
| 90 | }; | ||
| 91 | |||
| 92 | static void render_logo(void) { | ||
| 93 | static const char PROGMEM ducky_logo[LOGO_SIZE] = { | ||
| 94 | 0, 0, 0, 0,128,128,128,128,128, 0, 0,252,252,252, 0, 0, 0,128,128,128, 0, 0, 0, 0, 0,128,128,128, 0, 0, 0, 0, 0,128,128,128,128,128, 0, 0, 0, 0, 0,252,252,252, 0, 0, 0, 0, 0,128,128,128,128,128,128, 0, 0, 0, 0, 0, 0,128,128,128,128, 0,248,248,248, 56, 56, 56, 56, 56, 56,120,240,224,192, 0, 0,128,128,128,128,128,128, 0, 0, 0, 0, 0, 0, 0, 0,128,128,128,128,128, 0, 0,252,252,252, 0, 0, 0, 0, 0,232, 24, 24,232, 0, 24, 48, 48, 24, 0,232, 24, 24,232, 0, 0, | ||
| 95 | 0,248,254,255,143, 7, 3, 3, 3, 7,142,255,255,255, 0, 0, 0,255,255,255, 0, 0, 0, 0, 0,255,255,255, 0,248,254,255,143, 7, 3, 3, 3, 3,143, 7, 2, 0, 0,255,255,255,240,120,252,254,231,131, 1, 0, 1, 7, 63,254,240,192, 0,224,252,127, 31, 3, 0, 0,255,255,255,112,112,112,112,112,112, 56, 63, 31, 15,193,231,243,115, 51, 51, 51, 55,255,255,252, 0, 0,248,254,255,143, 7, 3, 3, 3, 7,142,255,255,255, 0, 0, 0, 0, 0, 21,127,127,252,252,252,253,253,252,252,252,255,255,255, 0, 0, | ||
| 96 | 0, 0, 3, 7, 15, 15, 14, 14, 14, 7, 3, 15, 15, 15, 0, 0, 0, 3, 7, 15, 15, 14, 14, 6, 3, 15, 15, 15, 0, 0, 3, 7, 7, 15, 14, 14, 14, 14, 7, 7, 2, 0, 0, 15, 15, 15, 0, 0, 0, 1, 3, 15, 15, 12,136,224,224,224,247,127,127, 31, 3, 0, 0, 0, 0, 0, 15, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 7, 15, 14, 14, 14, 6, 3, 15, 15, 15, 0, 0, 0, 3, 7, 15, 15, 14, 14, 14, 7, 3, 15, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 7, 11, 3, 11, 7, 11, 7, 7, 31, 0, 0 | ||
| 97 | }; | ||
| 98 | oled_write_raw_P(ducky_logo, LOGO_SIZE); | ||
| 99 | } | ||
| 100 | |||
| 101 | char* make_menu_text(void){ | ||
| 102 | char *s = malloc((30 * 6) * sizeof(*s)); | ||
| 103 | int width = 3; | ||
| 104 | sprintf(s, "%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s", | ||
| 105 | width, MT_0_0, width, MT_0_1, width, MT_0_2, | ||
| 106 | width, MT_0_3, width, MT_0_4, width, MT_0_5, | ||
| 107 | width, MT_0_6, width, MT_0_7, width, MT_0_8, | ||
| 108 | width, MT_0_9, width, MT_0_10, width,MT_0_11, | ||
| 109 | width, MT_0_12, width, MT_0_13, width, MT_0_14 | ||
| 110 | ); | ||
| 111 | return s; | ||
| 112 | }; | ||
| 113 | |||
| 114 | char* make_rgb_text(void){ | ||
| 115 | char *s = malloc((30 * 6) * sizeof(*s)); | ||
| 116 | int width = 3; | ||
| 117 | sprintf( | ||
| 118 | s, "%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s", | ||
| 119 | width, MT_1_0, width, MT_1_1, width, MT_1_2, | ||
| 120 | width, MT_1_3, width, MT_1_4, width, MT_1_5, | ||
| 121 | width, MT_1_6, width, MT_1_7, width, MT_1_8, | ||
| 122 | width, MT_1_9, width, MT_1_10, width,MT_1_11, | ||
| 123 | width, MT_1_12, width, MT_1_13, width, MT_1_14 | ||
| 124 | ); | ||
| 125 | return s; | ||
| 126 | }; | ||
| 127 | |||
| 128 | void oled_task_user(void) { | ||
| 129 | render_logo(); | ||
| 130 | oled_set_cursor(0,3); | ||
| 131 | if (rgbToggled) { | ||
| 132 | char *s = make_rgb_text(); | ||
| 133 | oled_write_ln_P(s, false); | ||
| 134 | free(s); | ||
| 135 | } else { | ||
| 136 | char *s = make_menu_text(); | ||
| 137 | oled_write_ln_P(s, false); | ||
| 138 | free(s); | ||
| 139 | } | ||
| 140 | } | ||
| 141 | |||
| 142 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 143 | switch (keycode) { | ||
| 144 | case RGB_LAYER: | ||
| 145 | if (record->event.pressed) { | ||
| 146 | if (rgbToggled) { | ||
| 147 | rgbToggled = false; | ||
| 148 | layer_clear(); | ||
| 149 | } else { | ||
| 150 | rgbToggled = true; | ||
| 151 | layer_on(_RGB); | ||
| 152 | } | ||
| 153 | } | ||
| 154 | return false; | ||
| 155 | default: | ||
| 156 | return true; | ||
| 157 | } | ||
| 158 | return false; | ||
| 159 | } | ||
diff --git a/keyboards/dekunukem/duckypad/keymaps/default/readme.md b/keyboards/dekunukem/duckypad/keymaps/default/readme.md new file mode 100644 index 000000000..0240cd573 --- /dev/null +++ b/keyboards/dekunukem/duckypad/keymaps/default/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Default duckyPad Layout | ||
| 2 | |||
| 3 | ### Layers: | ||
| 4 | |||
| 5 | 0: Default Layer w/ Numpad Functionality | ||
| 6 | |||
| 7 | 1: RGB Menu that allows RGB customization | ||
| 8 | |||
| 9 | ### Configuration: | ||
| 10 | |||
| 11 | To change the menu, edit the `MT_X_XX` values in `config.h`. The sytax is as follows: `MT_A_B`, where A equals the layer, and B equals the key from 0-14. | ||
| 12 | |||
| 13 | ### Need Help? | ||
| 14 | |||
| 15 | Contact me on discord: macs#0420 | ||
| 16 | |||
| 17 | or join the duckyPad Discord and find me in there :) | ||
| 18 | |||
| 19 | https://discord.gg/ADtrCjf | ||
diff --git a/keyboards/dekunukem/duckypad/keymaps/m4cs/config.h b/keyboards/dekunukem/duckypad/keymaps/m4cs/config.h new file mode 100644 index 000000000..7d0bbb134 --- /dev/null +++ b/keyboards/dekunukem/duckypad/keymaps/m4cs/config.h | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | /* | ||
| 2 | |||
| 3 | M4cs Keymap for dekuNukem/duckyPad QMK firmware | ||
| 4 | |||
| 5 | Copyright (C) 2020 Max Bridgland | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #pragma once | ||
| 22 | |||
| 23 | #define NO_ACTION_FUNCTION | ||
| 24 | #define NO_ACTION_ONESHOT | ||
| 25 | |||
| 26 | #define OLED_TIMEOUT 90000 | ||
| 27 | #define RGB_DISABLE_TIMEOUT 90000 | ||
| 28 | |||
| 29 | #define MT_0_0 " prev " | ||
| 30 | #define MT_0_1 " pl/pa" | ||
| 31 | #define MT_0_2 " next " | ||
| 32 | #define MT_0_3 " volx " | ||
| 33 | #define MT_0_4 " vol- " | ||
| 34 | #define MT_0_5 " vol+ " | ||
| 35 | #define MT_0_6 " spot " | ||
| 36 | #define MT_0_7 " ffox " | ||
| 37 | #define MT_0_8 " code " | ||
| 38 | #define MT_0_9 " term " | ||
| 39 | #define MT_0_10 " steam" | ||
| 40 | #define MT_0_11 " dscd " | ||
| 41 | #define MT_0_12 " " | ||
| 42 | #define MT_0_13 " micx " | ||
| 43 | #define MT_0_14 " " | ||
| 44 | |||
| 45 | #define MT_1_0 " stat " | ||
| 46 | #define MT_1_1 " brth " | ||
| 47 | #define MT_1_2 " rbow " | ||
| 48 | #define MT_1_3 " swrl " | ||
| 49 | #define MT_1_4 " spd- " | ||
| 50 | #define MT_1_5 " spd+ " | ||
| 51 | #define MT_1_6 " eff- " | ||
| 52 | #define MT_1_7 " sat- " | ||
| 53 | #define MT_1_8 " sat+ " | ||
| 54 | #define MT_1_9 " eff+ " | ||
| 55 | #define MT_1_10 " hue- " | ||
| 56 | #define MT_1_11 " hue+ " | ||
| 57 | #define MT_1_12 " powr " | ||
| 58 | #define MT_1_13 " bri- " | ||
| 59 | #define MT_1_14 " bri+ " | ||
| 60 | |||
| 61 | #define MT_2_0 " " | ||
| 62 | #define MT_2_1 " " | ||
| 63 | #define MT_2_2 " " | ||
| 64 | #define MT_2_3 " undo " | ||
| 65 | #define MT_2_4 " cut " | ||
| 66 | #define MT_2_5 " copy " | ||
| 67 | #define MT_2_6 " paste" | ||
| 68 | #define MT_2_7 " find " | ||
| 69 | #define MT_2_8 " pscr " | ||
| 70 | #define MT_2_9 " " | ||
| 71 | #define MT_2_10 " " | ||
| 72 | #define MT_2_11 " " | ||
| 73 | #define MT_2_12 " " | ||
| 74 | #define MT_2_13 " " | ||
| 75 | #define MT_2_14 " " | ||
diff --git a/keyboards/dekunukem/duckypad/keymaps/m4cs/keymap.c b/keyboards/dekunukem/duckypad/keymaps/m4cs/keymap.c new file mode 100644 index 000000000..2ce15d7e7 --- /dev/null +++ b/keyboards/dekunukem/duckypad/keymaps/m4cs/keymap.c | |||
| @@ -0,0 +1,236 @@ | |||
| 1 | /* | ||
| 2 | |||
| 3 | M4cs Keymap for dekuNukem/duckyPad QMK firmware | ||
| 4 | |||
| 5 | Copyright (C) 2020 Max Bridgland | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #include QMK_KEYBOARD_H | ||
| 22 | |||
| 23 | #include "stdio.h" | ||
| 24 | #include <unistd.h> | ||
| 25 | #include <string.h> | ||
| 26 | |||
| 27 | #define LOGO_SIZE 384 | ||
| 28 | |||
| 29 | bool rgbToggled = false; | ||
| 30 | bool altToggled = false; | ||
| 31 | |||
| 32 | enum layer_codes { | ||
| 33 | RGB_LAYER = SAFE_RANGE, | ||
| 34 | ALT_LAYER | ||
| 35 | }; | ||
| 36 | |||
| 37 | enum my_keycodes { | ||
| 38 | Z0 = SAFE_RANGE, Z1, Z2, | ||
| 39 | Z3, Z4, Z5, | ||
| 40 | Z6, Z7, Z8, | ||
| 41 | Z9, Z10, Z11, | ||
| 42 | Z12, Z13, Z14 | ||
| 43 | }; | ||
| 44 | |||
| 45 | #define MAC_1 LCTL(LALT(KC_MINS)) | ||
| 46 | #define MAC_2 LCTL(LALT(KC_EQL)) | ||
| 47 | #define MAC_3 LCTL(LALT(KC_LBRC)) | ||
| 48 | #define MAC_4 LCTL(LALT(KC_RBRC)) | ||
| 49 | #define MAC_5 LCTL(LALT(KC_BSLS)) | ||
| 50 | #define MAC_6 LCTL(LALT(KC_SCLN)) | ||
| 51 | #define MAC_7 LCTL(LALT(KC_QUOT)) | ||
| 52 | #define MAC_8 LCTL(LALT(KC_COMM)) | ||
| 53 | #define MAC_9 LCTL(LALT(KC_SLSH)) | ||
| 54 | |||
| 55 | #define MAC_10 LCTL(LSFT(KC_MINS)) | ||
| 56 | #define MAC_11 LCTL(LSFT(KC_EQL)) | ||
| 57 | #define MAC_12 LCTL(LSFT(KC_SLSH)) | ||
| 58 | #define MAC_13 LCTL(LSFT(KC_LBRC)) | ||
| 59 | #define MAC_14 LCTL(LSFT(KC_RBRC)) | ||
| 60 | #define MAC_15 LCTL(LSFT(KC_BSLS)) | ||
| 61 | #define MAC_16 LCTL(LSFT(KC_SCLN)) | ||
| 62 | #define MAC_17 LCTL(LSFT(KC_QUOT)) | ||
| 63 | #define MAC_18 LCTL(LSFT(KC_COMM)) | ||
| 64 | |||
| 65 | #define _DEFAULT 0 | ||
| 66 | #define _RGB 1 | ||
| 67 | #define _ALT 2 | ||
| 68 | |||
| 69 | |||
| 70 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 71 | /* | ||
| 72 | ,=========================================. | ||
| 73 | | Media Prev. | Media Play | Media Next | | ||
| 74 | |=========================================| | ||
| 75 | | Mute Sound | Volume Do. | Volume Up | | ||
| 76 | |=========================================| | ||
| 77 | | Macro 1 | Macro 2 | Macro 3 | | ||
| 78 | |=========================================| | ||
| 79 | | Macro 4 | Macro 5 | Macro 6 | | ||
| 80 | |=========================================| ,---------------------. | ||
| 81 | | Macro 7 | Macro 8 | Macro 9 | | RGB Menu | Alt Menu | | ||
| 82 | `=========================================' `--------------------' | ||
| 83 | */ | ||
| 84 | [_DEFAULT] = LAYOUT( | ||
| 85 | KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, | ||
| 86 | KC_AUDIO_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, | ||
| 87 | MAC_1, MAC_2, MAC_3, | ||
| 88 | MAC_4, MAC_5, MAC_6, | ||
| 89 | MAC_7, MAC_8, MAC_9, | ||
| 90 | RGB_LAYER, ALT_LAYER | ||
| 91 | ), | ||
| 92 | /* | ||
| 93 | ,=========================================. | ||
| 94 | | Plain RGB | Breathe RGB | Rainbow RGB | | ||
| 95 | |=========================================| | ||
| 96 | | Swirl RGB | Speed Down | Speed Up | | ||
| 97 | |=========================================| | ||
| 98 | | Effect Up | Sat. Down | Sat. Up | | ||
| 99 | |=========================================| | ||
| 100 | | Effect Down | Hue Down | Hue Up | | ||
| 101 | |=========================================| ,----------------------. | ||
| 102 | | Toggle RGB | Brt. Down | Brt. Up | | Norm Menu | Alt Menu | | ||
| 103 | `=========================================' `---------------------' | ||
| 104 | */ | ||
| 105 | [_RGB] = LAYOUT( | ||
| 106 | RGB_MODE_PLAIN, RGB_MODE_BREATHE, RGB_MODE_RAINBOW, | ||
| 107 | RGB_MODE_SWIRL, RGB_SPD, RGB_SPI, | ||
| 108 | RGB_MOD, RGB_SAD, RGB_SAI, | ||
| 109 | RGB_RMOD, RGB_HUD, RGB_HUI, | ||
| 110 | RGB_TOG, RGB_VAD, RGB_VAI, | ||
| 111 | RGB_LAYER, ALT_LAYER | ||
| 112 | ), | ||
| 113 | /* | ||
| 114 | ,=========================================. | ||
| 115 | | Macro 10 | Macro 11 | Macro 12 | | ||
| 116 | |=========================================| | ||
| 117 | | Undo | Cut | Copy | | ||
| 118 | |=========================================| | ||
| 119 | | Paste | Find | Prnt Scrn. | | ||
| 120 | |=========================================| | ||
| 121 | | Macro 13 | Macro 14 | Macro 15 | | ||
| 122 | |=========================================| ,----------------------. | ||
| 123 | | Macro 16 | Macro 17 | Macro 18 | | Norm Menu | Alt Menu | | ||
| 124 | `=========================================' `---------------------' | ||
| 125 | */ | ||
| 126 | [_ALT] = LAYOUT( | ||
| 127 | MAC_10, MAC_11, MAC_12, | ||
| 128 | KC_UNDO, KC_CUT, KC_COPY, | ||
| 129 | KC_PASTE, KC_FIND, KC_PSCR, | ||
| 130 | MAC_13, MAC_14, MAC_15, | ||
| 131 | MAC_16, MAC_17, MAC_18, | ||
| 132 | RGB_LAYER, ALT_LAYER | ||
| 133 | ) | ||
| 134 | }; | ||
| 135 | |||
| 136 | static void render_logo(void) { | ||
| 137 | static const char PROGMEM ducky_logo[LOGO_SIZE] = { | ||
| 138 | 0, 0, 0, 0,128,128,128,128,128, 0, 0,252,252,252, 0, 0, 0,128,128,128, 0, 0, 0, 0, 0,128,128,128, 0, 0, 0, 0, 0,128,128,128,128,128, 0, 0, 0, 0, 0,252,252,252, 0, 0, 0, 0, 0,128,128,128,128,128,128, 0, 0, 0, 0, 0, 0,128,128,128,128, 0,248,248,248, 56, 56, 56, 56, 56, 56,120,240,224,192, 0, 0,128,128,128,128,128,128, 0, 0, 0, 0, 0, 0, 0, 0,128,128,128,128,128, 0, 0,252,252,252, 0, 0, 0, 0, 0,232, 24, 24,232, 0, 24, 48, 48, 24, 0,232, 24, 24,232, 0, 0, | ||
| 139 | 0,248,254,255,143, 7, 3, 3, 3, 7,142,255,255,255, 0, 0, 0,255,255,255, 0, 0, 0, 0, 0,255,255,255, 0,248,254,255,143, 7, 3, 3, 3, 3,143, 7, 2, 0, 0,255,255,255,240,120,252,254,231,131, 1, 0, 1, 7, 63,254,240,192, 0,224,252,127, 31, 3, 0, 0,255,255,255,112,112,112,112,112,112, 56, 63, 31, 15,193,231,243,115, 51, 51, 51, 55,255,255,252, 0, 0,248,254,255,143, 7, 3, 3, 3, 7,142,255,255,255, 0, 0, 0, 0, 0, 21,127,127,252,252,252,253,253,252,252,252,255,255,255, 0, 0, | ||
| 140 | 0, 0, 3, 7, 15, 15, 14, 14, 14, 7, 3, 15, 15, 15, 0, 0, 0, 3, 7, 15, 15, 14, 14, 6, 3, 15, 15, 15, 0, 0, 3, 7, 7, 15, 14, 14, 14, 14, 7, 7, 2, 0, 0, 15, 15, 15, 0, 0, 0, 1, 3, 15, 15, 12,136,224,224,224,247,127,127, 31, 3, 0, 0, 0, 0, 0, 15, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 7, 15, 14, 14, 14, 6, 3, 15, 15, 15, 0, 0, 0, 3, 7, 15, 15, 14, 14, 14, 7, 3, 15, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 7, 11, 3, 11, 7, 11, 7, 7, 31, 0, 0 | ||
| 141 | }; | ||
| 142 | oled_write_raw_P(ducky_logo, LOGO_SIZE); | ||
| 143 | } | ||
| 144 | |||
| 145 | char* make_menu_text(void){ | ||
| 146 | char *s = malloc((30 * 3) * sizeof(*s)); | ||
| 147 | int width = 3; | ||
| 148 | sprintf(s, "%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s", | ||
| 149 | width, MT_0_0, width, MT_0_1, width, MT_0_2, | ||
| 150 | width, MT_0_3, width, MT_0_4, width, MT_0_5, | ||
| 151 | width, MT_0_6, width, MT_0_7, width, MT_0_8, | ||
| 152 | width, MT_0_9, width, MT_0_10, width,MT_0_11, | ||
| 153 | width, MT_0_12, width, MT_0_13, width, MT_0_14 | ||
| 154 | ); | ||
| 155 | return s; | ||
| 156 | }; | ||
| 157 | |||
| 158 | char* make_rgb_text(void){ | ||
| 159 | char *s = malloc((30 * 3) * sizeof(*s)); | ||
| 160 | int width = 3; | ||
| 161 | sprintf( | ||
| 162 | s, "%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s", | ||
| 163 | width, MT_1_0, width, MT_1_1, width, MT_1_2, | ||
| 164 | width, MT_1_3, width, MT_1_4, width, MT_1_5, | ||
| 165 | width, MT_1_6, width, MT_1_7, width, MT_1_8, | ||
| 166 | width, MT_1_9, width, MT_1_10, width,MT_1_11, | ||
| 167 | width, MT_1_12, width, MT_1_13, width, MT_1_14 | ||
| 168 | ); | ||
| 169 | return s; | ||
| 170 | }; | ||
| 171 | |||
| 172 | char* make_alt_text(void){ | ||
| 173 | char *s = malloc((30 * 3) * sizeof(*s)); | ||
| 174 | int width = 3; | ||
| 175 | sprintf( | ||
| 176 | s, "%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s\n%-*s %-*s %-*s", | ||
| 177 | width, MT_2_0, width, MT_2_1, width, MT_2_2, | ||
| 178 | width, MT_2_3, width, MT_2_4, width, MT_2_5, | ||
| 179 | width, MT_2_6, width, MT_2_7, width, MT_2_8, | ||
| 180 | width, MT_2_9, width, MT_2_10, width,MT_2_11, | ||
| 181 | width, MT_2_12, width, MT_2_13, width, MT_2_14 | ||
| 182 | ); | ||
| 183 | return s; | ||
| 184 | }; | ||
| 185 | |||
| 186 | void oled_task_user(void) { | ||
| 187 | render_logo(); | ||
| 188 | oled_set_cursor(0,3); | ||
| 189 | if (rgbToggled) { | ||
| 190 | char *s = make_rgb_text(); | ||
| 191 | oled_write_ln_P(s, false); | ||
| 192 | free(s); | ||
| 193 | } else if (altToggled) { | ||
| 194 | char *s = make_alt_text(); | ||
| 195 | oled_write_ln_P(s, false); | ||
| 196 | free(s); | ||
| 197 | } else { | ||
| 198 | char *s = make_menu_text(); | ||
| 199 | oled_write_ln_P(s, false); | ||
| 200 | free(s); | ||
| 201 | } | ||
| 202 | } | ||
| 203 | |||
| 204 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 205 | switch (keycode) { | ||
| 206 | case RGB_LAYER: | ||
| 207 | if (record->event.pressed) { | ||
| 208 | if (rgbToggled) { | ||
| 209 | rgbToggled = false; | ||
| 210 | altToggled = false; | ||
| 211 | layer_clear(); | ||
| 212 | } else { | ||
| 213 | rgbToggled = true; | ||
| 214 | altToggled = false; | ||
| 215 | layer_on(_RGB); | ||
| 216 | } | ||
| 217 | } | ||
| 218 | return false; | ||
| 219 | case ALT_LAYER: | ||
| 220 | if (record->event.pressed) { | ||
| 221 | if (altToggled) { | ||
| 222 | rgbToggled = false; | ||
| 223 | altToggled = false; | ||
| 224 | layer_clear(); | ||
| 225 | } else { | ||
| 226 | rgbToggled = false; | ||
| 227 | altToggled = true; | ||
| 228 | layer_on(_ALT); | ||
| 229 | } | ||
| 230 | } | ||
| 231 | return false; | ||
| 232 | default: | ||
| 233 | return true; | ||
| 234 | } | ||
| 235 | return false; | ||
| 236 | } | ||
diff --git a/keyboards/dekunukem/duckypad/keymaps/m4cs/readme.md b/keyboards/dekunukem/duckypad/keymaps/m4cs/readme.md new file mode 100644 index 000000000..42fae0044 --- /dev/null +++ b/keyboards/dekunukem/duckypad/keymaps/m4cs/readme.md | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | [M4cs'](https://github.com/M4cs) duckyPad Layout | ||
| 2 | |||
| 3 | ### Layers: | ||
| 4 | |||
| 5 | 0: Default Layer w/ Media Functionality and Macros | ||
| 6 | |||
| 7 | 1: RGB Menu that allows RGB customization | ||
| 8 | |||
| 9 | 2: Alternate Macro Menu | ||
| 10 | |||
| 11 | ### Configuration: | ||
| 12 | |||
| 13 | To change the menu, edit the `MT_X_XX` values in `config.h`. The sytax is as follows: `MT_A_B`, where A equals the layer, and B equals the key from 0-14. | ||
| 14 | |||
| 15 | ### Misc. Info: | ||
| 16 | |||
| 17 | The macros currently just map to Ctrl + Alt + (Different Keys) right now. I have them launching certain shortcuts. I recommend you change these and add your shortcuts to match your shortcut manager. | ||
| 18 | |||
| 19 | ### Need Help? | ||
| 20 | |||
| 21 | Contact me on discord: macs#0420 | ||
| 22 | |||
| 23 | or join the duckyPad Discord and find me in there :) | ||
| 24 | |||
| 25 | https://discord.gg/ADtrCjf \ No newline at end of file | ||
diff --git a/keyboards/dekunukem/duckypad/keymaps/m4cs/rules.mk b/keyboards/dekunukem/duckypad/keymaps/m4cs/rules.mk new file mode 100644 index 000000000..870654666 --- /dev/null +++ b/keyboards/dekunukem/duckypad/keymaps/m4cs/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | LTO_ENABLE = yes # Enable Link Time Optimization | ||
| 2 | NO_USB_STARTUP_CHECK = yes # Disables usb suspend check after keyboard startup | ||
diff --git a/keyboards/dekunukem/duckypad/mcuconf.h b/keyboards/dekunukem/duckypad/mcuconf.h new file mode 100644 index 000000000..201db101d --- /dev/null +++ b/keyboards/dekunukem/duckypad/mcuconf.h | |||
| @@ -0,0 +1,178 @@ | |||
| 1 | /* | ||
| 2 | ChibiOS - Copyright (C) 2006..2015 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 | #ifndef _MCUCONF_H_ | ||
| 18 | #define _MCUCONF_H_ | ||
| 19 | |||
| 20 | /* | ||
| 21 | * STM32F0xx drivers configuration. | ||
| 22 | * The following settings override the default settings present in | ||
| 23 | * the various device driver implementation headers. | ||
| 24 | * Note that the settings for each driver only have effect if the whole | ||
| 25 | * driver is enabled in halconf.h. | ||
| 26 | * | ||
| 27 | * IRQ priorities: | ||
| 28 | * 3...0 Lowest...Highest. | ||
| 29 | * | ||
| 30 | * DMA priorities: | ||
| 31 | * 0...3 Lowest...Highest. | ||
| 32 | */ | ||
| 33 | |||
| 34 | #define STM32F0xx_MCUCONF | ||
| 35 | // #define STM32F070xB | ||
| 36 | |||
| 37 | /* | ||
| 38 | * HAL driver system settings. | ||
| 39 | */ | ||
| 40 | #define STM32_NO_INIT FALSE | ||
| 41 | #define STM32_PVD_ENABLE FALSE | ||
| 42 | #define STM32_PLS STM32_PLS_LEV0 | ||
| 43 | #define STM32_HSI_ENABLED TRUE | ||
| 44 | #define STM32_HSI14_ENABLED TRUE | ||
| 45 | #define STM32_HSI48_ENABLED FALSE | ||
| 46 | #define STM32_LSI_ENABLED TRUE | ||
| 47 | #define STM32_HSE_ENABLED FALSE | ||
| 48 | #define STM32_LSE_ENABLED FALSE | ||
| 49 | #define STM32_SW STM32_SW_PLL | ||
| 50 | #define STM32_PLLSRC STM32_PLLSRC_HSI_DIV2 | ||
| 51 | #define STM32_PREDIV_VALUE 1 | ||
| 52 | #define STM32_PLLMUL_VALUE 12 | ||
| 53 | #define STM32_HPRE STM32_HPRE_DIV1 | ||
| 54 | #define STM32_PPRE STM32_PPRE_DIV1 | ||
| 55 | #define STM32_ADCSW STM32_ADCSW_HSI14 | ||
| 56 | #define STM32_ADCPRE STM32_ADCPRE_DIV4 | ||
| 57 | #define STM32_MCOSEL STM32_MCOSEL_NOCLOCK | ||
| 58 | #define STM32_ADCPRE STM32_ADCPRE_DIV4 | ||
| 59 | #define STM32_ADCSW STM32_ADCSW_HSI14 | ||
| 60 | #define STM32_USBSW STM32_USBSW_HSI48 | ||
| 61 | #define STM32_CECSW STM32_CECSW_HSI | ||
| 62 | #define STM32_I2C1SW STM32_I2C1SW_HSI | ||
| 63 | #define STM32_USART1SW STM32_USART1SW_PCLK | ||
| 64 | #define STM32_RTCSEL STM32_RTCSEL_LSI | ||
| 65 | |||
| 66 | /* | ||
| 67 | * ADC driver system settings. | ||
| 68 | */ | ||
| 69 | #define STM32_ADC_USE_ADC1 FALSE | ||
| 70 | #define STM32_ADC_ADC1_DMA_PRIORITY 2 | ||
| 71 | #define STM32_ADC_IRQ_PRIORITY 2 | ||
| 72 | #define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2 | ||
| 73 | |||
| 74 | /* | ||
| 75 | * EXT driver system settings. | ||
| 76 | */ | ||
| 77 | #define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3 | ||
| 78 | #define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3 | ||
| 79 | #define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3 | ||
| 80 | #define STM32_EXT_EXTI16_IRQ_PRIORITY 3 | ||
| 81 | #define STM32_EXT_EXTI17_IRQ_PRIORITY 3 | ||
| 82 | |||
| 83 | /* | ||
| 84 | * GPT driver system settings. | ||
| 85 | */ | ||
| 86 | #define STM32_GPT_USE_TIM1 FALSE | ||
| 87 | #define STM32_GPT_USE_TIM2 FALSE | ||
| 88 | #define STM32_GPT_USE_TIM3 FALSE | ||
| 89 | #define STM32_GPT_USE_TIM14 FALSE | ||
| 90 | #define STM32_GPT_TIM1_IRQ_PRIORITY 2 | ||
| 91 | #define STM32_GPT_TIM2_IRQ_PRIORITY 2 | ||
| 92 | #define STM32_GPT_TIM3_IRQ_PRIORITY 2 | ||
| 93 | #define STM32_GPT_TIM14_IRQ_PRIORITY 2 | ||
| 94 | |||
| 95 | /* | ||
| 96 | * I2C driver system settings. | ||
| 97 | */ | ||
| 98 | #define STM32_I2C_USE_I2C1 TRUE | ||
| 99 | #define STM32_I2C_USE_I2C2 FALSE | ||
| 100 | #define STM32_I2C_BUSY_TIMEOUT 50 | ||
| 101 | #define STM32_I2C_I2C1_IRQ_PRIORITY 3 | ||
| 102 | #define STM32_I2C_I2C2_IRQ_PRIORITY 3 | ||
| 103 | #define STM32_I2C_USE_DMA TRUE | ||
| 104 | #define STM32_I2C_I2C1_DMA_PRIORITY 1 | ||
| 105 | #define STM32_I2C_I2C2_DMA_PRIORITY 1 | ||
| 106 | #define STM32_I2C_I2C1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3) | ||
| 107 | #define STM32_I2C_I2C1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 2) | ||
| 108 | #define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure") | ||
| 109 | |||
| 110 | /* | ||
| 111 | * ICU driver system settings. | ||
| 112 | */ | ||
| 113 | #define STM32_ICU_USE_TIM1 FALSE | ||
| 114 | #define STM32_ICU_USE_TIM2 FALSE | ||
| 115 | #define STM32_ICU_USE_TIM3 FALSE | ||
| 116 | #define STM32_ICU_TIM1_IRQ_PRIORITY 3 | ||
| 117 | #define STM32_ICU_TIM2_IRQ_PRIORITY 3 | ||
| 118 | #define STM32_ICU_TIM3_IRQ_PRIORITY 3 | ||
| 119 | |||
| 120 | /* | ||
| 121 | * PWM driver system settings. | ||
| 122 | */ | ||
| 123 | #define STM32_PWM_USE_ADVANCED FALSE | ||
| 124 | #define STM32_PWM_USE_TIM1 FALSE | ||
| 125 | #define STM32_PWM_USE_TIM2 FALSE | ||
| 126 | #define STM32_PWM_USE_TIM3 TRUE | ||
| 127 | #define STM32_PWM_TIM1_IRQ_PRIORITY 3 | ||
| 128 | #define STM32_PWM_TIM2_IRQ_PRIORITY 3 | ||
| 129 | #define STM32_PWM_TIM3_IRQ_PRIORITY 3 | ||
| 130 | |||
| 131 | /* | ||
| 132 | * SERIAL driver system settings. | ||
| 133 | */ | ||
| 134 | #define STM32_SERIAL_USE_USART1 FALSE | ||
| 135 | #define STM32_SERIAL_USE_USART2 FALSE | ||
| 136 | #define STM32_SERIAL_USART1_PRIORITY 3 | ||
| 137 | #define STM32_SERIAL_USART2_PRIORITY 3 | ||
| 138 | |||
| 139 | /* | ||
| 140 | * SPI driver system settings. | ||
| 141 | */ | ||
| 142 | #define STM32_SPI_USE_SPI1 TRUE | ||
| 143 | #define STM32_SPI_USE_SPI2 FALSE | ||
| 144 | #define STM32_SPI_SPI1_DMA_PRIORITY 1 | ||
| 145 | #define STM32_SPI_SPI2_DMA_PRIORITY 1 | ||
| 146 | #define STM32_SPI_SPI1_IRQ_PRIORITY 2 | ||
| 147 | #define STM32_SPI_SPI2_IRQ_PRIORITY 2 | ||
| 148 | #define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 2) | ||
| 149 | #define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3) | ||
| 150 | #define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 4) | ||
| 151 | #define STM32_SPI_SPI2_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 5) | ||
| 152 | #define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure") | ||
| 153 | |||
| 154 | /* | ||
| 155 | * ST driver system settings. | ||
| 156 | */ | ||
| 157 | #define STM32_ST_IRQ_PRIORITY 2 | ||
| 158 | #define STM32_ST_USE_TIMER 2 | ||
| 159 | |||
| 160 | /* | ||
| 161 | * UART driver system settings. | ||
| 162 | */ | ||
| 163 | #define STM32_UART_USE_USART1 FALSE | ||
| 164 | #define STM32_UART_USE_USART2 FALSE | ||
| 165 | #define STM32_UART_USART1_IRQ_PRIORITY 3 | ||
| 166 | #define STM32_UART_USART2_IRQ_PRIORITY 3 | ||
| 167 | #define STM32_UART_USART1_DMA_PRIORITY 0 | ||
| 168 | #define STM32_UART_USART2_DMA_PRIORITY 0 | ||
| 169 | #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") | ||
| 170 | |||
| 171 | /* | ||
| 172 | * USB driver system settings. | ||
| 173 | */ | ||
| 174 | #define STM32_USB_USE_USB1 TRUE | ||
| 175 | #define STM32_USB_LOW_POWER_ON_SUSPEND FALSE | ||
| 176 | #define STM32_USB_USB1_LP_IRQ_PRIORITY 3 | ||
| 177 | |||
| 178 | #endif /* _MCUCONF_H_ */ | ||
diff --git a/keyboards/dekunukem/duckypad/readme.md b/keyboards/dekunukem/duckypad/readme.md new file mode 100644 index 000000000..581f52c89 --- /dev/null +++ b/keyboards/dekunukem/duckypad/readme.md | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #  | ||
| 2 | |||
| 3 | A 15 Key Macropad w/ RGB and OLED | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [M4cs](https://github.com/M4cs) and [half-cambodian-hacker-man](https://github.com/half-cambodian-hacker-man) | ||
| 6 | * Hardware Supported: All duckyPad Revisions | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make dekunukem/duckypad:default | ||
| 11 | |||
| 12 | Flashing example for this keyboard: | ||
| 13 | |||
| 14 | make dekunukem/duckypad:default:flash | ||
| 15 | |||
| 16 | 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/dekunukem/duckypad/rules.mk b/keyboards/dekunukem/duckypad/rules.mk new file mode 100644 index 000000000..8251ab364 --- /dev/null +++ b/keyboards/dekunukem/duckypad/rules.mk | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # MCU Name | ||
| 2 | MCU = STM32F072 | ||
| 3 | |||
| 4 | # Build Options | ||
| 5 | # change yes to no to disable | ||
| 6 | # | ||
| 7 | BOOTMAGIC_ENABLE = no # 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 = no # USB Nkey Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 19 | AUDIO_ENABLE = no # Audio output | ||
| 20 | |||
| 21 | WS2812_DRIVER = bitbang | ||
| 22 | RGB_MATRIX_ENABLE = WS2812 | ||
| 23 | |||
| 24 | OLED_DRIVER_ENABLE = yes | ||
