35 lines
693 B
C
35 lines
693 B
C
#ifndef GLOBALS_H_
|
|
#define GLOBALS_H_
|
|
|
|
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 |