From 1c5a6733ff4276b0f4144c4ff768b1ffd4b4ee27 Mon Sep 17 00:00:00 2001 From: TerryMathews Date: Mon, 13 Jun 2016 21:59:22 -0400 Subject: adds support for GH60 Satan keyboard (#407) * adds support for GH60 Satan keyboard ANSI 125 layout, capslock and backlight implemented, support for WS2812LED strip included * added Phantom and GH60 Satan to travis --- keyboard/satan/backlight.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 keyboard/satan/backlight.c (limited to 'keyboard/satan/backlight.c') diff --git a/keyboard/satan/backlight.c b/keyboard/satan/backlight.c new file mode 100644 index 0000000000..4240b09164 --- /dev/null +++ b/keyboard/satan/backlight.c @@ -0,0 +1,24 @@ + +#include +#include "backlight.h" +#include "print.h" + +void init_backlight_pin(void) { + print("init_backlight_pin()\n"); + // Set our LED pins as output + DDRB |= (1<<6); + + // Set our LED pins low + PORTB &= ~(1<<6); +} + +void backlight_set(uint8_t level) { + if ( level == 0 ) { + // Turn off light + PORTB |= (1<<6); + } else { + // Turn on light + PORTB &= ~(1<<6); + } +} + -- cgit v1.2.3