aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/pico/pico.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/pico/pico.h')
-rw-r--r--keyboards/helix/pico/pico.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/keyboards/helix/pico/pico.h b/keyboards/helix/pico/pico.h
index 4360be2a9..303fe315e 100644
--- a/keyboards/helix/pico/pico.h
+++ b/keyboards/helix/pico/pico.h
@@ -4,18 +4,16 @@
4 4
5#include "quantum.h" 5#include "quantum.h"
6 6
7#ifdef RGBLIGHT_ENABLE 7#ifndef SPLIT_KEYBOARD
8//rgb led driver 8 extern bool is_helix_master(void);
9#include "ws2812.h" 9 #define is_keyboard_master() is_helix_master()
10#endif 10#endif
11 11
12#ifdef USE_I2C 12// Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'.
13#include <stddef.h> 13// But keep 'is_master' for a while for backwards compatibility
14#ifdef __AVR__ 14// for the old keymap.c.
15 #include <avr/io.h> 15extern uint8_t is_master; // 'is_master' will be obsolete, it is recommended to use 'is_keyboard_master ()' instead.
16 #include <avr/interrupt.h> 16#define has_usb() is_keyboard_master()
17#endif
18#endif
19 17
20#ifndef FLIP_HALF 18#ifndef FLIP_HALF
21// Standard Keymap 19// Standard Keymap