From 46b2e980c9cfb85995e1515604353b7c3d36ceed Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 25 Dec 2019 13:16:14 -0800 Subject: [PATCH] left leds are now in the mainstream, and don't need to be in my keyb --- layouts/community/ergodox/don/keymap.c | 40 -------------------------- 1 file changed, 40 deletions(-) diff --git a/layouts/community/ergodox/don/keymap.c b/layouts/community/ergodox/don/keymap.c index d7afc437e..0ed3ba6c4 100644 --- a/layouts/community/ergodox/don/keymap.c +++ b/layouts/community/ergodox/don/keymap.c @@ -230,43 +230,3 @@ void matrix_scan_user(void) { #endif }; - -// if this is my ergodox ez, I have left LEDs. -#ifdef LEFT_LEDS - -extern bool ergodox_left_led_1; -extern bool ergodox_left_led_2; -extern bool ergodox_left_led_3; - - -uint8_t ergodox_left_leds_update(void) { - if (mcp23018_status) { // if there was an error - return mcp23018_status; - } -#define LEFT_LED_1_SHIFT 7 // in MCP23018 port B -#define LEFT_LED_2_SHIFT 6 // in MCP23018 port B -#define LEFT_LED_3_SHIFT 7 // in MCP23018 port A - - // set logical value (doesn't matter on inputs) - // - unused : hi-Z : 1 - // - input : hi-Z : 1 - // - driving : hi-Z : 1 - mcp23018_status = i2c_start(I2C_ADDR_WRITE); - if (mcp23018_status) goto out; - mcp23018_status = i2c_write(OLATA); - if (mcp23018_status) goto out; - mcp23018_status = i2c_write(0b11111111 - & ~(ergodox_left_led_3<