diff --git a/ledcontroller.c b/ledcontroller.c index 2081a1b..9f20a01 100644 --- a/ledcontroller.c +++ b/ledcontroller.c @@ -159,7 +159,7 @@ static void write_no_command(uint16_t data) } -void ledcontroller_turn_all_on(void) +void led_turn_all_on(void) { write_data(0xffff, 2); @@ -171,7 +171,7 @@ void ledcontroller_turn_all_on(void) } -void ledcontroller_turn_all_off(void) +void led_turn_all_off(void) { write_data(0x0000, 2); @@ -183,7 +183,7 @@ void ledcontroller_turn_all_off(void) } -void ledcontroller_init(void) +void led_init(void) { PORTC &= ~(1< 2) { color_start = 0; } @@ -95,7 +98,7 @@ void rgbyteclock_secwatch(void) uint32_t t, t_last=0; - ledcontroller_turn_all_on(); + led_turn_all_on(); while (1) { t = timer_get()/1000; @@ -105,7 +108,7 @@ void rgbyteclock_secwatch(void) hours = t/60; uint8_t l_mins = mins/5; uint8_t l_hours = hours/5; - ledcontroller_clear(); + led_clear(); if (l_mins != l_hours) { led_set(l_mins, 0, 0x7ff, 0); led_set(l_hours, 0, 0, 0x7ff); @@ -124,7 +127,7 @@ void rgbyteclock_secwatch_glide(void) uint32_t t, t_last=0; - ledcontroller_turn_all_on(); + led_turn_all_on(); while (1) { t = rtc_get(); @@ -155,7 +158,7 @@ void rgbyteclock_secwatch_glide(void) d_h1 = led_values[4-(hours%5)+2]; uint16_t d_dark = led_values[1]; - ledcontroller_clear(); + led_clear(); for (int led=0;led<12;led++) { led_set(led, d_dark, 0, 0); }