diff options
author | Danny Nguyen <danny@keeb.io> | 2017-08-15 15:37:01 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-09-21 09:40:13 -0400 |
commit | 72e99391439c1d8abd0aed112b06982b94be03c6 (patch) | |
tree | 312cf0cae0e97a84cc65d64def7902f3bf880934 /keyboards/viterbi/split_util.h | |
parent | 4c75285816f4b128950d90cf0a45a4f1cb5018d8 (diff) | |
download | firmware-72e99391439c1d8abd0aed112b06982b94be03c6.tar.gz firmware-72e99391439c1d8abd0aed112b06982b94be03c6.tar.bz2 firmware-72e99391439c1d8abd0aed112b06982b94be03c6.zip |
Clone Nyquist keyboard for Viterbi
Diffstat (limited to 'keyboards/viterbi/split_util.h')
-rw-r--r-- | keyboards/viterbi/split_util.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/keyboards/viterbi/split_util.h b/keyboards/viterbi/split_util.h new file mode 100644 index 000000000..3ae76c209 --- /dev/null +++ b/keyboards/viterbi/split_util.h @@ -0,0 +1,24 @@ +#ifndef SPLIT_KEYBOARD_UTIL_H +#define SPLIT_KEYBOARD_UTIL_H + +#include <stdbool.h> + +#ifdef EE_HANDS + #define EECONFIG_BOOTMAGIC_END (uint8_t *)10 + #define EECONFIG_HANDEDNESS EECONFIG_BOOTMAGIC_END +#endif + +#define SLAVE_I2C_ADDRESS 0x32 + +extern volatile bool isLeftHand; + +// slave version of matix scan, defined in matrix.c +void matrix_slave_scan(void); + +void split_keyboard_setup(void); +bool has_usb(void); +void keyboard_slave_loop(void); + +void matrix_master_OLED_init (void); + +#endif |