Firmware changes to match rewired control board.
This is a bit more difficult than just reassigning pins as the usage of the timers has changed to the point of using 16 bit timers where 32 bit timers would have been ideal. This makes the use of the prescaler necessary, and we need to cope with a different prescaler value being used on different timers.
This commit is contained in:
2
led.c
2
led.c
@@ -36,7 +36,7 @@ void led_update(void)
|
||||
|
||||
led_set(led_next_state);
|
||||
led_next_state = !led_next_state;
|
||||
led_next_time += *led_current_pointer * TIMER_MS;
|
||||
led_next_time += *led_current_pointer * TIMER0_MS;
|
||||
led_current_pointer++;
|
||||
if (*led_current_pointer == 0)
|
||||
led_current_pointer = led_current_pattern;
|
||||
|
||||
Reference in New Issue
Block a user