#include "pearl.h"
#include "rgblight.h"
+#include "backlight.h"
#include <avr/pgmspace.h>
i2c_send(0xb0, (uint8_t*)led, 3 * RGBLED_NUM);
}
+void backlight_init_ports(void) {
+ DDRD |= (1<<4);
+ PORTD &= ~(1<<4);
+}
+
+void backlight_set(uint8_t level) {
+ if (level > 0) {
+ PORTD |= (1<<4);
+ } else {
+ PORTD &= ~(1<<4);
+ }
+}
+
__attribute__ ((weak))
void matrix_scan_user(void) {
rgblight_task();