added HSV fading pattern

This commit is contained in:
Stefan Rupp 2014-08-07 17:45:41 +02:00
parent 174b16b78f
commit 6a211a74f4
2 changed files with 19 additions and 0 deletions

View File

@ -165,6 +165,24 @@ void rgbyteclock_rounds_colored(void)
} }
} }
void rgbyteclock_hsv_fading(void)
{
led_turn_all_on();
while (1) {
for ( uint16_t color = 0; color < 360; color+= 1 ) {
for ( uint8_t lednum = 0; lednum < 12; lednum++ ) {
led_set_hsv( lednum, (color + lednum * 20) % 360, 100, 100);
}
led_flush();
timer_wait(5);
}
}
}
void rgbyteclock_secwatch(void) void rgbyteclock_secwatch(void)
{ {
uint8_t hours, mins; uint8_t hours, mins;

View File

@ -22,6 +22,7 @@
void rgbyteclock_rounds(void); void rgbyteclock_rounds(void);
void rgbyteclock_rounds_colored(void); void rgbyteclock_rounds_colored(void);
void rgbyteclock_rounds_white(void); void rgbyteclock_rounds_white(void);
void rgbyteclock_hsv_fading(void);
void rgbyteclock_secwatch(void); void rgbyteclock_secwatch(void);
void rgbyteclock_secwatch_glide(void); void rgbyteclock_secwatch_glide(void);