forked from mirrors/qmk_userspace
Update Drashna keymaps (#2145)
* Change overwatch to Gamepad * Remove secrets file * Add sample sensitive.h file * Borrow @colinta's secrets.h include method * Remove unnessary placeholder for macros * Set secrets to use PROGMEM for char string * Add readme files to my keymaps and userspace
This commit is contained in:
parent
557745ba9f
commit
2ec1ab2b35
9 changed files with 204 additions and 42 deletions
|
@ -19,7 +19,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "quantum.h"
|
||||
#include "action.h"
|
||||
#include "version.h"
|
||||
#include "sensitive.h"
|
||||
|
||||
#if (__has_include("secrets.h"))
|
||||
#include "secrets.h"
|
||||
#else
|
||||
PROGMEM const char secret[][64] = {
|
||||
"test1",
|
||||
"test2",
|
||||
"test3",
|
||||
"test4",
|
||||
"test5"
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef TAP_DANCE_ENABLE
|
||||
//define diablo macro timer variables
|
||||
|
@ -486,7 +497,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
break;
|
||||
case KC_SECRET_1 ... KC_SECRET_5:
|
||||
if (!record->event.pressed) {
|
||||
send_string(secret[keycode - KC_SECRET_1]);
|
||||
send_string_P(secret[keycode - KC_SECRET_1]);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
|
@ -538,7 +549,7 @@ uint32_t layer_state_set_user(uint32_t state) {
|
|||
rgblight_set_green;
|
||||
rgblight_mode(22);
|
||||
break;
|
||||
case _OVERWATCH:
|
||||
case _GAMEPAD:
|
||||
rgblight_set_orange;
|
||||
rgblight_mode(17);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue