diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-10-28 13:54:41 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-10-28 13:54:41 -0400 |
commit | 8643e01286816baecfc8784529f35155f55aaa63 (patch) | |
tree | e2277066867573e00758317aa5b5adb7bf87f282 /keyboard/ergodox_ez/ergodox_ez.h | |
parent | 1fb8b4ce3a14c98b54962a9829471e3e0c68bca6 (diff) | |
parent | d3db8d62f6fc6a7dee43978ddc8356579b502b37 (diff) | |
download | qmk_firmware-8643e01286816baecfc8784529f35155f55aaa63.tar.gz qmk_firmware-8643e01286816baecfc8784529f35155f55aaa63.zip |
merging
Diffstat (limited to 'keyboard/ergodox_ez/ergodox_ez.h')
-rw-r--r-- | keyboard/ergodox_ez/ergodox_ez.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/keyboard/ergodox_ez/ergodox_ez.h b/keyboard/ergodox_ez/ergodox_ez.h index 219b4bd0b6..3989a2f3ac 100644 --- a/keyboard/ergodox_ez/ergodox_ez.h +++ b/keyboard/ergodox_ez/ergodox_ez.h @@ -37,29 +37,16 @@ uint8_t ergodox_left_leds_update(void); #define LED_BRIGHTNESS_LO 31 #define LED_BRIGHTNESS_HI 255 -#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 - -extern bool ergodox_left_led_1; // left top -extern bool ergodox_left_led_2; // left middle -extern bool ergodox_left_led_3; // left bottom inline void ergodox_board_led_on(void) { DDRD |= (1<<6); PORTD |= (1<<6); } inline void ergodox_right_led_1_on(void) { DDRB |= (1<<5); PORTB |= (1<<5); } inline void ergodox_right_led_2_on(void) { DDRB |= (1<<6); PORTB |= (1<<6); } inline void ergodox_right_led_3_on(void) { DDRB |= (1<<7); PORTB |= (1<<7); } -inline void ergodox_left_led_1_on(void) { ergodox_left_led_1 = 1; } -inline void ergodox_left_led_2_on(void) { ergodox_left_led_2 = 1; } -inline void ergodox_left_led_3_on(void) { ergodox_left_led_3 = 1; } inline void ergodox_board_led_off(void) { DDRD &= ~(1<<6); PORTD &= ~(1<<6); } inline void ergodox_right_led_1_off(void) { DDRB &= ~(1<<5); PORTB &= ~(1<<5); } inline void ergodox_right_led_2_off(void) { DDRB &= ~(1<<6); PORTB &= ~(1<<6); } inline void ergodox_right_led_3_off(void) { DDRB &= ~(1<<7); PORTB &= ~(1<<7); } -inline void ergodox_left_led_1_off(void) { ergodox_left_led_1 = 0; } -inline void ergodox_left_led_2_off(void) { ergodox_left_led_2 = 0; } -inline void ergodox_left_led_3_off(void) { ergodox_left_led_3 = 0; } inline void ergodox_led_all_on(void) { @@ -67,10 +54,6 @@ inline void ergodox_led_all_on(void) ergodox_right_led_1_on(); ergodox_right_led_2_on(); ergodox_right_led_3_on(); - ergodox_left_led_1_on(); - ergodox_left_led_2_on(); - ergodox_left_led_3_on(); - ergodox_left_leds_update(); } inline void ergodox_led_all_off(void) @@ -79,10 +62,6 @@ inline void ergodox_led_all_off(void) ergodox_right_led_1_off(); ergodox_right_led_2_off(); ergodox_right_led_3_off(); - ergodox_left_led_1_off(); - ergodox_left_led_2_off(); - ergodox_left_led_3_off(); - ergodox_left_leds_update(); } inline void ergodox_right_led_1_set(uint8_t n) { OCR1A = n; } |