diff --git a/the-cup.ino b/the-cup.ino index eb28f04..120ba62 100644 --- a/the-cup.ino +++ b/the-cup.ino @@ -21,8 +21,8 @@ #include "Adafruit_MAX1704X.h" + #define SS_PIN SDA -#define RC522_POWER_PIN 1 #define SLEEP_DURATION 1 #define RGB_BRIGHTNESS 4 // Change neopixel brightness (max 255) @@ -82,8 +82,6 @@ void setup() { measureBattery(); - pinMode(RC522_POWER_PIN, OUTPUT); - digitalWrite(RC522_POWER_PIN, HIGH); reader.PCD_Init(); // Init each MFRC522 card. #ifdef DEBUG MFRC522Debug::PCD_DumpVersionToSerial(reader, Serial); // Show details of PCD - MFRC522 Card Reader details. @@ -98,7 +96,6 @@ void loop() { } else { delay(200); - digitalWrite(RC522_POWER_PIN, LOW); ESP.deepSleep(SLEEP_DURATION * 1000000); } }