logo

qmk_firmware

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

georgi.h (786B)


  1. #pragma once
  2. #include <util/delay.h>
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #include "quantum.h"
  6. #include "i2c_master.h"
  7. #include "matrix.h"
  8. extern i2c_status_t mcp23018_status;
  9. #define ERGODOX_EZ_I2C_TIMEOUT 1000
  10. // I2C aliases and register addresses (see "mcp23018.md")
  11. #define I2C_ADDR (0x20<<1)
  12. #define IODIRA 0x00 // i/o direction register
  13. #define IODIRB 0x01
  14. #define GPPUA 0x0C // GPIO pull-up resistor register
  15. #define GPPUB 0x0D
  16. #define GPIOA 0x12 // general purpose i/o port register (write modifies OLAT)
  17. #define GPIOB 0x13
  18. #define OLATA 0x14 // output latch register
  19. #define OLATB 0x15
  20. void init_ergodox(void);
  21. uint8_t init_mcp23018(void);