split_util.h 566 B

1234567891011121314151617181920212223242526
  1. #ifndef SPLIT_KEYBOARD_UTIL_H
  2. #define SPLIT_KEYBOARD_UTIL_H
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include "eeconfig.h"
  8. // backlight level store index in serial_master_buffer[] for slave to read
  9. #define SERIAL_BACKLIT_START 0x00
  10. #define SLAVE_I2C_ADDRESS 0x32
  11. extern volatile bool isLeftHand;
  12. // slave version of matix scan, defined in matrix.c
  13. void matrix_slave_scan(void);
  14. void split_keyboard_setup(void);
  15. bool has_usb(void);
  16. void keyboard_slave_loop(void);
  17. void matrix_master_OLED_init (void);
  18. #endif