diff options
Diffstat (limited to 'keyboards/handwired/dactyl/dactyl.h')
| -rw-r--r-- | keyboards/handwired/dactyl/dactyl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/keyboards/handwired/dactyl/dactyl.h b/keyboards/handwired/dactyl/dactyl.h index 3589e1d3c..f7be886ac 100644 --- a/keyboards/handwired/dactyl/dactyl.h +++ b/keyboards/handwired/dactyl/dactyl.h | |||
| @@ -4,12 +4,11 @@ | |||
| 4 | #include "quantum.h" | 4 | #include "quantum.h" |
| 5 | #include <stdint.h> | 5 | #include <stdint.h> |
| 6 | #include <stdbool.h> | 6 | #include <stdbool.h> |
| 7 | #include "i2cmaster.h" | 7 | #include "i2c_master.h" |
| 8 | #include <util/delay.h> | 8 | #include <util/delay.h> |
| 9 | 9 | ||
| 10 | #define I2C_ADDR 0b0100000 | 10 | #define I2C_ADDR 0b0100000 |
| 11 | #define I2C_ADDR_WRITE ( (I2C_ADDR<<1) | I2C_WRITE ) | 11 | #define I2C_TIMEOUT 100 |
| 12 | #define I2C_ADDR_READ ( (I2C_ADDR<<1) | I2C_READ ) | ||
| 13 | #define IODIRA 0x00 // i/o direction register | 12 | #define IODIRA 0x00 // i/o direction register |
| 14 | #define IODIRB 0x01 | 13 | #define IODIRB 0x01 |
| 15 | #define GPPUA 0x0C // GPIO pull-up resistor register | 14 | #define GPPUA 0x0C // GPIO pull-up resistor register |
