config.h (1266B)
1 /* 2 Copyright 2017 Zach White <skullydazed@clueboard.co> 3 4 This program is free software: you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation, either version 2 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #pragma once 19 20 /* audio support */ 21 #define AUDIO_PIN_ALT B7 22 #define AUDIO_PIN C4 23 #define AUDIO_CLICKY 24 25 /* 26 * Drawing mode 27 */ 28 #define DRAWING_ENABLE 29 //#define UNDO_KEY LGUI(KC_Z) // What key to send for undo 30 //#define UNDO_KEY LCTL(KC_Z) 31 #define UNDO_KEY LGUI(KC_SLSH) 32 33 /* 34 * Shake to undo configuration 35 */ 36 #define SHAKE_ENABLE 37 #define SHAKE_PIN_A E4 38 #define SHAKE_PIN_B E5 39 #define SHAKE_TIMEOUT 500 // How long after shaking stops before we register it 40 #define SHAKE_COUNT 8 // How many shakes it takes to activate 41 #define SHAKE_KEY UNDO_KEY // What key to send after a shake