diff options
Diffstat (limited to 'keyboards/helix/pico/pico.c')
-rw-r--r-- | keyboards/helix/pico/pico.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/keyboards/helix/pico/pico.c b/keyboards/helix/pico/pico.c index 315b35a7a..4cd195363 100644 --- a/keyboards/helix/pico/pico.c +++ b/keyboards/helix/pico/pico.c | |||
@@ -1,3 +1,18 @@ | |||
1 | /* Copyright 2018 MakotoKurauchi | ||
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 | */ | ||
1 | #include "helix.h" | 16 | #include "helix.h" |
2 | 17 | ||
3 | // Each keymap.c should use is_keyboard_master() instead of 'is_master'. | 18 | // Each keymap.c should use is_keyboard_master() instead of 'is_master'. |
@@ -5,14 +20,6 @@ | |||
5 | // for the old keymap.c. | 20 | // for the old keymap.c. |
6 | uint8_t is_master = false; | 21 | uint8_t is_master = false; |
7 | 22 | ||
8 | #ifdef SSD1306OLED | ||
9 | #include "ssd1306.h" | ||
10 | |||
11 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
12 | return process_record_gfx(keycode,record) && process_record_user(keycode, record); | ||
13 | } | ||
14 | #endif | ||
15 | |||
16 | void matrix_init_kb(void) { | 23 | void matrix_init_kb(void) { |
17 | // Each keymap.c should use is_keyboard_master() instead of is_master. | 24 | // Each keymap.c should use is_keyboard_master() instead of is_master. |
18 | // But keep is_master for a while for backwards compatibility | 25 | // But keep is_master for a while for backwards compatibility |
@@ -28,9 +35,3 @@ void keyboard_post_init_kb(void) { | |||
28 | #endif | 35 | #endif |
29 | keyboard_post_init_user(); | 36 | keyboard_post_init_user(); |
30 | } | 37 | } |
31 | |||
32 | #if defined(SPLIT_KEYBOARD) && defined(SSD1306OLED) | ||
33 | void matrix_slave_scan_user(void) { | ||
34 | matrix_scan_user(); | ||
35 | } | ||
36 | #endif | ||