+#include "SparkButton.h"
+
 #define SET_ALARM_PORT 42620
 #define DISCOVERY_PORT 42621
 


byte alarm[6];

void setup() {
	Discovery.begin(DISCOVERY_PORT);
	SetAlarm.begin(SET_ALARM_PORT);
	for (byte b = 0; b < 6; b++) alarm[b] = EEPROM.read(b);
}


		for (byte b = 0; b < 6; b++) EEPROM.write(b, alarm[b]);
	}
	if (alarm[SET] && alarm[HOUR] == Time.hour() && alarm[MINUTE] == Time.minute()) {
		for (byte b = 0; b <= 10; b++) {
			for (byte c = 1; c < 12; c++) btn.ledOn(c, alarm[RED] * b / 10,
				alarm[GREEN] * b / 10, alarm[BLUE] * b / 10);
			delay(300);
		}
		playMelody();
	}
