@ -17,20 +17,21 @@
*/
*/
# include <Kaleidoscope.h>
# include <Kaleidoscope.h>
# include <Kaleidoscope-Macros.h>
# include <Kaleidoscope-MagicCombo.h>
# include <Kaleidoscope-MagicCombo.h>
void magicComboActions ( uint8_t combo_index , uint32_t left_hand , uint32_t right_hand ) {
void magicComboActions ( uint8_t combo_index , uint32_t left_hand , uint32_t right_hand ) {
switch ( combo_index ) {
switch ( combo_index ) {
case 0 :
case 0 :
Serial . println ( " It's a kind of magic! " ) ;
Macros . type ( PSTR ( " It's a kind of magic! " ) ) ;
break ;
break ;
}
}
}
}
static const kaleidoscope : : MagicCombo : : combo_t magic_combos [ ] PROGMEM = {
static const kaleidoscope : : MagicCombo : : combo_t magic_combos [ ] PROGMEM = {
{
{
R 1C3 | R2C1 | R2C4 | R2C7 , // left hand,
R 3C6, // left palm key
R 0C11 | R1C12 | R2C14 // right hand
R 3C9 // right palm key
} ,
} ,
{ 0 , 0 }
{ 0 , 0 }
} ;
} ;
@ -57,10 +58,9 @@ const Key keymaps[][ROWS][COLS] PROGMEM = {
} ;
} ;
// *INDENT-ON*
// *INDENT-ON*
KALEIDOSCOPE_INIT_PLUGINS ( MagicCombo );
KALEIDOSCOPE_INIT_PLUGINS ( MagicCombo , Macros );
void setup ( ) {
void setup ( ) {
Serial . begin ( 9600 ) ;
Kaleidoscope . setup ( ) ;
Kaleidoscope . setup ( ) ;
MagicCombo . magic_combos = magic_combos ;
MagicCombo . magic_combos = magic_combos ;