diff options
author | Christopher Browne <cbbrowne@ca.afilias.info> | 2016-06-24 12:19:34 -0400 |
---|---|---|
committer | Christopher Browne <cbbrowne@ca.afilias.info> | 2016-06-24 12:19:34 -0400 |
commit | 4d79e224384464c8b42c770b3da09b9655d359e7 (patch) | |
tree | 7d14e742352d2237ab19fe49985bbacef47d7e6d /keyboards/clueboard2/backlight.c | |
parent | a4bdb0ac0e6d44c9c9a2d8910a5ca5b7fb49fcbf (diff) | |
parent | 40bfc7231e87c883c840967fdbe42a7c711805be (diff) | |
download | firmware-4d79e224384464c8b42c770b3da09b9655d359e7.tar.gz firmware-4d79e224384464c8b42c770b3da09b9655d359e7.tar.bz2 firmware-4d79e224384464c8b42c770b3da09b9655d359e7.zip |
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'keyboards/clueboard2/backlight.c')
-rw-r--r-- | keyboards/clueboard2/backlight.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/keyboards/clueboard2/backlight.c b/keyboards/clueboard2/backlight.c deleted file mode 100644 index 5dfa4ba0a..000000000 --- a/keyboards/clueboard2/backlight.c +++ /dev/null @@ -1,41 +0,0 @@ - -#include <avr/io.h> -#include "backlight.h" -#include "print.h" - -/* Clueboard 2.0 LED locations: - * - * Capslock: B4, pull high to turn on - * LCtrl: Shared with Capslock, DO NOT INSTALL LED'S IN BOTH - * Page Up: B7, pull high to turn on - * Escape: D6, pull high to turn on - * Arrows: D4, pull high to turn on - */ - -void init_backlight_pin(void) { - print("init_backlight_pin()\n"); - // Set our LED pins as output - DDRD |= (1<<6); // Esc - DDRB |= (1<<7); // Page Up - DDRD |= (1<<4); // Arrows - - // Set our LED pins low - PORTD &= ~(1<<6); // Esc - PORTB &= ~(1<<7); // Page Up - PORTD &= ~(1<<4); // Arrows -} - -void backlight_set(uint8_t level) { - if ( level == 0 ) { - // Turn off light - PORTD |= (1<<6); // Esc - PORTB |= (1<<7); // Page Up - PORTD |= (1<<4); // Arrows - } else { - // Turn on light - PORTD &= ~(1<<6); // Esc - PORTB &= ~(1<<7); // Page Up - PORTD &= ~(1<<4); // Arrows - } -} - |