aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/clueboard2/backlight.c
diff options
context:
space:
mode:
authorChristopher Browne <cbbrowne@ca.afilias.info>2016-06-24 12:19:34 -0400
committerChristopher Browne <cbbrowne@ca.afilias.info>2016-06-24 12:19:34 -0400
commit4d79e224384464c8b42c770b3da09b9655d359e7 (patch)
tree7d14e742352d2237ab19fe49985bbacef47d7e6d /keyboards/clueboard2/backlight.c
parenta4bdb0ac0e6d44c9c9a2d8910a5ca5b7fb49fcbf (diff)
parent40bfc7231e87c883c840967fdbe42a7c711805be (diff)
downloadfirmware-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.c41
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
- }
-}
-