 #include <SoftwareSerial.h>
+#include <LPD8806.h>
 #include "RFID.h"
 
 #define FRONTDESK
 
 SoftwareSerial RFID(RFID_RX, RFID_TX);
 SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
+// nLEDs, dataPin, clockPin
+LPD8806 LED = LPD8806(4, 10, 11);
 
-int scannedID, prevID = 0;
+int j, scannedID, prevID = 0;
 int coinNotes[] = { 988, 1319 };
 int coinNoteDurations[] = { 125, 400 };
 int numCoinNotes = sizeof(coinNotes) / sizeof(coinNotes[0]);
+unsigned long lastLEDchange = 0;
 unsigned char readData[bufferSize];
 volatile bool isValidResponse = false;
 volatile char characterRead[bufferSize];

void setup() {
	Serial.begin(moduleBaud);
	WIFI.begin(moduleBaud);

	pinMode(ledPin, OUTPUT);
	pinMode(wifi_rst, OUTPUT);
	pinMode(speakerPin, OUTPUT);
	connectWIFI();

	RFID.begin(moduleBaud);
}


			Serial.write(ERROR_CHAR);
			Serial.write(END_CHAR);
		}
		
		redBeat(10);
		//colorWipe(LED.Color(127, 0, 0), 0);	
	}

	colorWipe(LED.Color(0, 0, 127), 0);
	// card detected, get user data
	digitalWrite(ledPin, HIGH);
	sendCommand(CMD_READ, blockID, userData);
