#include "task.h"
#include "adc_random.h"
-#if 0
#define AUTO_OFF_COUNT 549316UL /* 5 hrs in 32.768 ms units */
#define AUTO_ON_COUNT 2087402UL /* 19 hrs in 32.768 ms units */
-#else
-#define AUTO_OFF_COUNT 1831 /* 1 minute in 32.768 ms units */
-#define AUTO_ON_COUNT 3662 /* 2 minutes in 32.768 ms units */
-#endif
#define rand_u8() (rand() & 0xff)
#define rand_u16() ((rand() << 8) + rand_u8())
#define rand_incolor_steps(s) (min_incolor_steps[s & 3] + \
} led_t;
/* The index of all step arrays is the speed variable */
-#if 1
const static unsigned min_incolor_steps[4] = { 320, 32, 32, 1 };
const static unsigned range_incolor_steps[4] = { 32768, 128, 32, 8 };
const static int min_fade_steps[4] = { 64, 32, 32, 1 };
const static int range_fade_steps[4] = { 416, 128, 32, 8 };
-#else /* for debugging */
-const static unsigned min_incolor_steps[4] = { 64, 32, 16, 8 };
-const static unsigned range_incolor_steps[4] = { 1, 1, 1, 1 };
-const static int min_fade_steps[4] = { 64, 32, 16, 8 };
-const static int range_fade_steps[4] = { 1, 1, 1, 1 };
-#endif
led_t red;
led_t grn;