replace #define by constexpr
This commit is contained in:
@@ -30,11 +30,11 @@
|
||||
#include <SPI.h>
|
||||
#include <MFRC522.h>
|
||||
|
||||
#define RST_PIN 9 // Configurable, see typical pin layout above
|
||||
#define SS_1_PIN 10 // Configurable, take a unused pin, only HIGH/LOW required, must be diffrent to SS 2
|
||||
#define SS_2_PIN 8 // Configurable, take a unused pin, only HIGH/LOW required, must be diffrent to SS 1
|
||||
constexpr uint8_t RST_PIN = 9; // Configurable, see typical pin layout above
|
||||
constexpr uint8_t SS_1_PIN = 10; // Configurable, take a unused pin, only HIGH/LOW required, must be diffrent to SS 2
|
||||
constexpr uint8_t SS_2_PIN = 8; // Configurable, take a unused pin, only HIGH/LOW required, must be diffrent to SS 1
|
||||
|
||||
#define NR_OF_READERS 2
|
||||
constexpr uint8_t NR_OF_READERS = 2;
|
||||
|
||||
byte ssPins[] = {SS_1_PIN, SS_2_PIN};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user