summaryrefslogtreecommitdiffstats
path: root/keyboards/clueboard/17/17.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/clueboard/17/17.c')
-rw-r--r--keyboards/clueboard/17/17.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/keyboards/clueboard/17/17.c b/keyboards/clueboard/17/17.c
deleted file mode 100644
index 44b55a323b..0000000000
--- a/keyboards/clueboard/17/17.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include "17.h"
-
-int pwm_level;
-
-void backlight_init_ports(void) {
- // Set C7 to output
- DDRC |= (1<<7);
-
- // Initialize the timer
- TC4H = 0x03;
- OCR4C = 0xFF;
- TCCR4A = 0b10000010;
- TCCR4B = 0b00000001;
-}
-
-void backlight_set(uint8_t level) {
- // Determine the PWM level
- switch (level)
- {
- case 0:
- // 33%
- pwm_level = 0x54;
- break;
- case 1:
- // 66%
- pwm_level = 0xA8;
- break;
- case 2:
- // 100%
- pwm_level = 0xFF;
- break;
- case 3:
- // 0%
- pwm_level = 0x00;
- break;
- default:
- xprintf("Unknown level: %d\n", level);
- }
-
- // Write the PWM level to the timer
- TC4H = pwm_level >> 8;
- OCR4A = 0xFF & pwm_level;
-}