RFID
This commit is contained in:
@@ -5,11 +5,31 @@ void stop();
|
||||
|
||||
void start();
|
||||
|
||||
void loop2(void* parameter);
|
||||
|
||||
boolean buttonPressed(const uint8_t pin);
|
||||
|
||||
/**
|
||||
* Helper routine to dump a byte array as hex values to Serial.
|
||||
*/
|
||||
void dump_byte_array(byte *buffer, byte bufferSize)
|
||||
{
|
||||
for (byte i = 0; i < bufferSize; i++)
|
||||
{
|
||||
Serial.print(buffer[i] < 0x10 ? " 0" : " ");
|
||||
Serial.print(buffer[i], HEX);
|
||||
}
|
||||
}
|
||||
|
||||
String getRFIDString(byte uidByte[10])
|
||||
{
|
||||
String uidString = String(uidByte[0]) + " " + String(uidByte[1]) + " " +
|
||||
String(uidByte[2]) + " " + String(uidByte[3]);
|
||||
return uidString;
|
||||
}
|
||||
|
||||
unsigned long lastStart = 0;
|
||||
|
||||
const int startDelay = 250;
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user