aboutsummaryrefslogtreecommitdiff
path: root/keyboard/satan/backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/satan/backlight.c')
-rw-r--r--keyboard/satan/backlight.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/keyboard/satan/backlight.c b/keyboard/satan/backlight.c
deleted file mode 100644
index 4240b0916..000000000
--- a/keyboard/satan/backlight.c
+++ /dev/null
@@ -1,24 +0,0 @@
1
2#include <avr/io.h>
3#include "backlight.h"
4#include "print.h"
5
6void init_backlight_pin(void) {
7 print("init_backlight_pin()\n");
8 // Set our LED pins as output
9 DDRB |= (1<<6);
10
11 // Set our LED pins low
12 PORTB &= ~(1<<6);
13}
14
15void backlight_set(uint8_t level) {
16 if ( level == 0 ) {
17 // Turn off light
18 PORTB |= (1<<6);
19 } else {
20 // Turn on light
21 PORTB &= ~(1<<6);
22 }
23}
24