Implement backlight scheme of TentaPad
This commit is contained in:
parent
ee163c66ab
commit
fcbddae2cc
@ -253,15 +253,13 @@ ISR(TIMER1_COMPA_vect)
|
|||||||
{
|
{
|
||||||
static uint8_t pwm = 0;
|
static uint8_t pwm = 0;
|
||||||
pwm++;
|
pwm++;
|
||||||
// LED on
|
for (uint8_t i = 0; i < LED_COUNT; i++) {
|
||||||
if (pwm == 0) {
|
// LED on
|
||||||
for (uint8_t i = 0; i < LED_COUNT; i++) {
|
if (pwm == 0) {
|
||||||
softpwm_led_on(i);
|
softpwm_led_on(i);
|
||||||
softpwm_led_ocr[i] = softpwm_led_ocr_buff[i];
|
softpwm_led_ocr[i] = softpwm_led_ocr_buff[i];
|
||||||
}
|
}
|
||||||
}
|
// LED off
|
||||||
// LED off
|
|
||||||
for (uint8_t i = 0; i < LED_COUNT; i++) {
|
|
||||||
if (pwm == softpwm_led_ocr[i]) {
|
if (pwm == softpwm_led_ocr[i]) {
|
||||||
softpwm_led_off(i);
|
softpwm_led_off(i);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user