]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/jarred/jarred.c
33162b6891a4913197d13d1f47dc5b25be73761d
[qmk_firmware.git] / users / jarred / jarred.c
1 /* Copyright 2018 Jarred Steenvoorden
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16
17 #include "jarred.h"
18 #include "version.h"
19
20 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
21
22   switch (keycode) {
23     case VRSN: // Prints firmware version
24       if (record->event.pressed) {
25         send_string_with_delay_P(PSTR(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION ", Built on: " QMK_BUILDDATE), MACRO_TIMER);
26       }
27       return false;
28       break;
29   }
30
31   return true;
32 }