static unsigned char jiffies;
-// #define CHRISTMAS_TREE 1
+#define CHRISTMAS_TREE 1
#define rgb_return(r, g, b) do { send_rgb((r), (g), (b)); return 1; } while(0)
static void background(unsigned char pos)
{
#ifdef CHRISTMAS_TREE
- switch ((pos >> 4) & 3) {
- case 0: if (pos & 1) send_rgb(7, 0, 0); else send_rgb(0, 7, 0);
+ switch ((pos >> 3) & 3) {
+ //case 0: if (pos & 1) send_rgb(7, 0, 7); else send_rgb(0, 7, 5);
+ //case 0: if (pos & 1) send_rgb(0, 0, 7); else send_rgb(7, 7, 7);
+ case 0: if (pos & 1) send_rgb(0, 0, 7); else send_rgb(0, 7, 0);
break;
- case 1: if (pos & 1) send_rgb(0, 0, 7); else send_rgb(7, 7, 7);
+ case 1: if (pos & 1) send_rgb(7, 0, 7); else send_rgb(7, 0, 0);
break;
- case 2: if (pos & 1) send_rgb(7, 0, 7); else send_rgb(0, 7, 5);
+ case 2: if (pos & 1) send_rgb(7, 5, 0); else send_rgb(7, 7, 7);
break;
- case 3: if (pos & 1) send_rgb(7, 5, 0); else send_rgb(7, 7, 7);
+ case 3: if (pos & 1) send_rgb(7, 0, 0); else send_rgb(0, 7, 0);
break;
}
#else