summaryrefslogtreecommitdiff
path: root/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
AgeCommit message (Collapse)Author
2022-08-30Use a macro to compute the size of arrays at compile time (#18044)Jeff Epler
* Add ARRAY_SIZE and CEILING utility macros * Apply a coccinelle patch to use ARRAY_SIZE * fix up some straggling items * Fix 'make test:secure' * Enhance ARRAY_SIZE macro to reject acting on pointers The previous definition would not produce a diagnostic for ``` int *p; size_t num_elem = ARRAY_SIZE(p) ``` but the new one will. * explicitly get definition of ARRAY_SIZE * Convert to ARRAY_SIZE when const is involved The following spatch finds additional instances where the array is const and the division is by the size of the type, not the size of the first element: ``` @ rule5a using "empty.iso" @ type T; const T[] E; @@ - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) @ rule6a using "empty.iso" @ type T; const T[] E; @@ - sizeof(E)/sizeof(T) + ARRAY_SIZE(E) ``` * New instances of ARRAY_SIZE added since initial spatch run * Use `ARRAY_SIZE` in docs (found by grep) * Manually use ARRAY_SIZE hs_set is expected to be the same size as uint16_t, though it's made of two 8-bit integers * Just like char, sizeof(uint8_t) is guaranteed to be 1 This is at least true on any plausible system where qmk is actually used. Per my understanding it's universally true, assuming that uint8_t exists: https://stackoverflow.com/questions/48655310/can-i-assume-that-sizeofuint8-t-1 * Run qmk-format on core C files touched in this branch Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
2022-08-21RESET -> QK_BOOT user keymaps (#17940)Joel Challis
2022-06-19Make default layer size 16-bit (#15286)Drashna Jaelre
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
2022-01-30Rename `AdafruitBLE` to `BluefruitLE` (#16127)Ryan
2019-08-17Illustrate the emoji layer (#6555)Mark Stosberg
Now the Emoji layer is easier to visualize.
2019-04-29[Keymap] Added compatibility for Planck rev6 (#5706)Priyadi Iman Nurcahyo
* Update code for compatibility with latest QMK * Added compatibility with Planck rev6 * use wait_ms instead of _delay_ms * removed unnecessary rules * disable audio on rev4 only
2019-02-17Remove redundant KC_TRNS and KC_NO fillers in remaining keymaps (#5154)fauxpark
2019-01-25Add C(), A() and G() to match already existing S() (#4673)fauxpark
2018-12-01handwired/promethium Refactor and Configurator support (#4524)noroadsleft
* handwired/promethium: refactor - config.h files - updated to use #pragma once - removed redundant config.h includes - layout macro moved from config.h to promethium.h - layout macro renamed from KEYMAP_CUSTOM to LAYOUT * handwired/promethium: Configurator support
2017-08-07update priyadi's keymap configJack Humbert
2017-05-11Fix spelling of "persistent"Nikolaus Wittenstein
Fixes #1201.
2017-04-30Simple RGB backlight themingPriyadi Iman Nurcahyo
2017-04-29Promethium update: demo LED, fix PS2 delay, fix LED ordering, change click ↵Priyadi Iman Nurcahyo
frequency
2017-04-19Fix LED sequence; bug fixesPriyadi Iman Nurcahyo
2017-04-19Fix Planck compatibilityPriyadi Iman Nurcahyo
2017-04-19Keymap updates and some adjustment for latest version of QMKPriyadi Iman Nurcahyo
2017-04-19Promethium rev2Priyadi Iman Nurcahyo
* 10 more indicator LEDs * Piezo buzzer * Uses HC138 decoder to free up 5 pins * Trackpoint buttons are now part of matrix
2017-02-21added pause, prtsc & ins to list of keys to be processed on releasePriyadi Iman Nurcahyo
2017-02-21Move caps to FUN layer; add Pause keyPriyadi Iman Nurcahyo
2017-02-21Move del back to fun+backspcePriyadi Iman Nurcahyo
2017-02-21Only process Fnumber on key release, and only when layer is still activePriyadi Iman Nurcahyo
2017-02-16Fix integer overflowPriyadi Iman Nurcahyo
2017-02-16reposition ins and del keyPriyadi Iman Nurcahyo
2017-02-15Move keyboard specific stuff to keyboard specific files, and vice versaPriyadi Iman Nurcahyo
2017-02-15Added copyright noticePriyadi Iman Nurcahyo
2017-02-15Merge my Planck-like keyboardsPriyadi Iman Nurcahyo
2017-02-15Move Alt-Tab positionPriyadi Iman Nurcahyo
2017-02-15num, func, punc 3state layer done rightPriyadi Iman Nurcahyo
2017-02-14GUI layer fixesPriyadi Iman Nurcahyo
2017-02-14Alt-tab handling in GUI layerPriyadi Iman Nurcahyo
2017-02-14remove stand alone punc layer switcher for nowPriyadi Iman Nurcahyo
2017-02-14Add explicit punctuation key for greek layersPriyadi Iman Nurcahyo
2017-02-14Func + Num = PuncPriyadi Iman Nurcahyo
2017-02-13move GRV to ESC positionPriyadi Iman Nurcahyo
2017-02-13Forgot to add ifdef to optional featurePriyadi Iman Nurcahyo
2017-02-13Remove assignment warningPriyadi Iman Nurcahyo
2017-02-13Some space optimization and housekeepingPriyadi Iman Nurcahyo
2017-02-11Add regular space to B+N on GUI layer for repeating spacePriyadi Iman Nurcahyo
2017-02-11Switch to Emoji layer using Punc + greekPriyadi Iman Nurcahyo
2017-02-11Turn off capslock when entering num layerPriyadi Iman Nurcahyo
2017-02-11Move X in number layer away from spacePriyadi Iman Nurcahyo
2017-02-11LSpace + RSpace = switch layerPriyadi Iman Nurcahyo
2017-02-11Implement Capslock LEDPriyadi Iman Nurcahyo
2017-02-11simplify battery calculation for nowPriyadi Iman Nurcahyo
2017-02-11Fix emoji layerPriyadi Iman Nurcahyo
2017-02-11RShift + LShift = CapslockPriyadi Iman Nurcahyo
2017-02-11Add reset keycodePriyadi Iman Nurcahyo
2017-02-11Generalize layer indicatorsPriyadi Iman Nurcahyo
2017-02-10Add ifdefs for keyboard layoutsPriyadi Iman Nurcahyo
2017-02-10Implement battery level indicatorPriyadi Iman Nurcahyo