count cycles nb
This commit is contained in:
parent
7cb87c895b
commit
b8ca5971c4
1 changed files with 4 additions and 2 deletions
|
|
@ -26,11 +26,11 @@
|
|||
#define RGB_BRIGHTNESS 4 // Change neopixel brightness (max 255)
|
||||
|
||||
MFRC522DriverPinSimple ss_1_pin(SS_PIN); // Configurable, take an unused pin, only HIGH/LOW required, must be different to SS 2.
|
||||
|
||||
MFRC522DriverSPI driver_1{ss_1_pin};
|
||||
|
||||
MFRC522 reader{driver_1}; // Create MFRC522 instance.
|
||||
|
||||
RTC_DATA_ATTR int nbCycles = 0;
|
||||
|
||||
const char *rootCACertificate = R"string_literal(
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw
|
||||
|
|
@ -71,6 +71,8 @@ void send_uid(char reader_uid[]);
|
|||
void setup() {
|
||||
Serial.begin(115200);
|
||||
while (!Serial) delay(10);
|
||||
Serial.print("Nb cycles: ");
|
||||
Serial.println(nbCycles++);
|
||||
|
||||
pinMode(RC522_POWER_PIN, OUTPUT);
|
||||
digitalWrite(RC522_POWER_PIN, HIGH);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue