replace #define by constexpr
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
#include <SPI.h>
|
||||
#include <MFRC522.h>
|
||||
|
||||
#define RST_PIN 9 //
|
||||
#define SS_PIN 10 //
|
||||
constexpr uint8_t RST_PIN = 9; // Configurable, see typical pin layout above
|
||||
constexpr uint8_t SS_PIN = 10; // Configurable, see typical pin layout above
|
||||
|
||||
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance
|
||||
|
||||
|
||||
Reference in New Issue
Block a user