This commit is contained in:
2023-06-28 23:47:52 +02:00
parent cb3b817295
commit 0f47f29c74
4 changed files with 123 additions and 193 deletions

View File

@@ -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