2018-04-01 21:12:45 +02:00
|
|
|
/*
|
|
|
|
Copyright 2017 Zach White <skullydazed@clueboard.co>
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-05-06 18:55:44 +02:00
|
|
|
#pragma once
|
2018-04-01 21:12:45 +02:00
|
|
|
|
|
|
|
#include "config_common.h"
|
|
|
|
|
|
|
|
/*
|
2020-12-30 19:27:37 +01:00
|
|
|
* Encoder Assignments
|
|
|
|
*/
|
2020-05-06 18:55:44 +02:00
|
|
|
#define ENCODERS_PAD_A { A5, A4, A2, A1 }
|
|
|
|
#define ENCODERS_PAD_B { A6, A7, A3, A0 }
|
|
|
|
#define ENCODER_RESOLUTION 4
|
2018-04-01 21:12:45 +02:00
|
|
|
|
|
|
|
/* audio support */
|
|
|
|
#define B7_AUDIO
|
|
|
|
#define C4_AUDIO
|
2019-01-23 18:25:32 +01:00
|
|
|
#define AUDIO_CLICKY
|
2018-04-01 21:12:45 +02:00
|
|
|
|
2020-05-06 18:55:44 +02:00
|
|
|
/*
|
|
|
|
* Drawing mode
|
|
|
|
*/
|
|
|
|
#define DRAWING_ENABLE
|
|
|
|
//#define UNDO_KEY LGUI(KC_Z) // What key to send for undo
|
|
|
|
//#define UNDO_KEY LCTL(KC_Z)
|
|
|
|
#define UNDO_KEY LGUI(KC_SLSH)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Shake to undo configuration
|
|
|
|
*/
|
|
|
|
#define SHAKE_ENABLE
|
|
|
|
#define SHAKE_PIN_A E4
|
|
|
|
#define SHAKE_PIN_B E5
|
|
|
|
#define SHAKE_TIMEOUT 500 // How long after shaking stops before we register it
|
|
|
|
#define SHAKE_COUNT 8 // How many shakes it takes to activate
|
|
|
|
#define SHAKE_KEY UNDO_KEY // What key to send after a shake
|