32 lines
392 B
C
32 lines
392 B
C
|
|
#include "rgbyteclock.h"
|
|
|
|
|
|
void rgbyteclock(void)
|
|
{
|
|
uint8_t gain = 0x2f;
|
|
led_set_gain(gain);
|
|
while (1) {
|
|
|
|
led_set(0, 4000, 0, 0);
|
|
led_flush();
|
|
timer_wait(500);
|
|
|
|
led_set(1, 0, 10000, 0);
|
|
led_flush();
|
|
timer_wait(500);
|
|
|
|
led_set(0, 0, 0, 0);
|
|
led_flush();
|
|
timer_wait(500);
|
|
|
|
led_set(1, 0, 0, 0);
|
|
led_flush();
|
|
timer_wait(500);
|
|
|
|
PORTC ^= (1<<PC5); // Test LED
|
|
}
|
|
|
|
}
|
|
|