logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

blackbowl.h (858B)


  1. // Copyright 2023 @frobiac
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "quantum.h"
  5. #include <stdint.h>
  6. #include <stdbool.h>
  7. #include "i2c_master.h"
  8. #include "wait.h"
  9. extern uint8_t expander_status;
  10. extern uint8_t expander_input_pin_mask;
  11. extern bool i2c_initialized;
  12. void init_blackbowl(void);
  13. void init_expander(void);
  14. // clang-format off
  15. #define I2C_TIMEOUT 100
  16. #define IODIRA 0x00 // i/o direction register
  17. #define IODIRB 0x01
  18. #define GPPUA 0x0C // GPIO pull-up resistor register
  19. #define GPPUB 0x0D
  20. #define GPIOA 0x12 // general purpose i/o port register (write modifies OLAT)
  21. #define GPIOB 0x13
  22. #define OLATA 0x14 // output latch register
  23. #define OLATB 0x15
  24. #define xxx KC_NO
  25. // clang-format on