keymap.c (1162B)
1 /* Copyright 2021 Colin Lam (Ploopy Corporation) 2 * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> 3 * Copyright 2019 Sunjun Kim 4 * Copyright 2019 Hiroyuki Okada 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 #include QMK_KEYBOARD_H 20 21 // Dummy 22 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {{{ KC_NO }}}; 23 24 void suspend_power_down_user(void) { 25 // Switch off sensor + LED making trackball unable to wake host 26 adns5050_power_down(); 27 } 28 29 void suspend_wakeup_init_user(void) { 30 adns5050_init(); 31 }