Skip to content

Commit

Permalink
[Keymap] New planck keymap (qmk#6093)
Browse files Browse the repository at this point in the history
* New keymap

* Add readme; fix lack of asterisk on raise

* Update default planck map to tap_code vs reg/unreg

* Press F to pay respects
  • Loading branch information
mgalisa authored and swamp09 committed Mar 11, 2020
1 parent 10abf69 commit e51d715
Show file tree
Hide file tree
Showing 5 changed files with 467 additions and 8 deletions.
12 changes: 4 additions & 8 deletions keyboards/planck/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,19 +274,15 @@ void encoder_update(bool clockwise) {
} else {
if (clockwise) {
#ifdef MOUSEKEY_ENABLE
register_code(KC_MS_WH_DOWN);
unregister_code(KC_MS_WH_DOWN);
tap_code(KC_MS_WH_DOWN);
#else
register_code(KC_PGDN);
unregister_code(KC_PGDN);
tap_code(KC_PGDN);
#endif
} else {
#ifdef MOUSEKEY_ENABLE
register_code(KC_MS_WH_UP);
unregister_code(KC_MS_WH_UP);
tap_code(KC_MS_WH_UP);
#else
register_code(KC_PGUP);
unregister_code(KC_PGUP);
tap_code(KC_PGUP);
#endif
}
}
Expand Down
39 changes: 39 additions & 0 deletions keyboards/planck/keymaps/mgalisa/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#pragma once

#ifdef AUDIO_ENABLE
#define STARTUP_SONG SONG(PLANCK_SOUND)
// #define STARTUP_SONG SONG(NO_SOUND)

#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
SONG(COLEMAK_SOUND), \
SONG(DVORAK_SOUND) \
}
#endif

/*
* MIDI options
*/

/* Prevent use of disabled MIDI features in the keymap */
//#define MIDI_ENABLE_STRICT 1

/* enable basic MIDI features:
- MIDI notes can be sent when in Music mode is on
*/

#define MIDI_BASIC

/* enable advanced MIDI features:
- MIDI notes can be added to the keymap
- Octave shift and transpose
- Virtual sustain, portamento, and modulation wheel
- etc.
*/
//#define MIDI_ADVANCED

/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
//#define MIDI_TONE_KEYCODE_OCTAVES 2

// Most tactile encoders have detents every 4 stages
#define ENCODER_RESOLUTION 4

Loading

0 comments on commit e51d715

Please sign in to comment.