X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=keyboards%2Fergodox_ez%2Fergodox_ez.h;h=383702b9578c2eb6bfe9ef48a09cb25acab2673a;hb=4a6d668f8a157382da9519caf4bcd7ff03e2ea59;hp=dea2b24639bbcf4a82d4f4b3933e22321e22c249;hpb=698ce733b73a2a8d6d41942b514af4c9d45190df;p=qmk_firmware.git diff --git a/keyboards/ergodox_ez/ergodox_ez.h b/keyboards/ergodox_ez/ergodox_ez.h index dea2b2463..383702b95 100644 --- a/keyboards/ergodox_ez/ergodox_ez.h +++ b/keyboards/ergodox_ez/ergodox_ez.h @@ -4,7 +4,7 @@ #include "quantum.h" #include #include -#include "i2cmaster.h" +#include "i2c_master.h" #include #define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n)) @@ -23,7 +23,8 @@ #define OLATA 0x14 // output latch register #define OLATB 0x15 -extern uint8_t mcp23018_status; +extern i2c_status_t mcp23018_status; +#define ERGODOX_EZ_I2C_TIMEOUT 100 void init_ergodox(void); void ergodox_blink_all_leds(void); @@ -33,7 +34,7 @@ uint8_t ergodox_left_leds_update(void); #ifndef LED_BRIGHTNESS_LO #define LED_BRIGHTNESS_LO 15 #endif -#ifndef LED_BRIGHTNESS_LO +#ifndef LED_BRIGHTNESS_HI #define LED_BRIGHTNESS_HI 255 #endif