1
0
Fork 0

Added NerD 80% (TKL) support

This commit is contained in:
Ralf Schmitt 2014-11-23 13:29:07 +01:00
parent d9b5f5110e
commit 2d74020331
10 changed files with 149 additions and 111 deletions

View file

@ -17,12 +17,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <avr/io.h>
#include "backlight.h"
#include "led.h"
void backlight_init_ports()
{
DDRB |= 0b11100000; // PB7 (switch), PB6 (pcb), PB5 (caps)
}
void led_set(uint8_t usb_led)
{
(usb_led & (1<<USB_LED_CAPS_LOCK)) ? backlight_caps_enable() : backlight_caps_disable();
}
void backlight_set(uint8_t level)
{
(level & BACKLIGHT_SWITCH) ? backlight_switch_enable() : backlight_switch_disable();