PinMode(wipeB, INPUT_PULLUP) // Enable pin's pull up resistor PinMode(greenLed, OUTPUT) // buzzer Led pin as Output PinMode(Buzz, OUTPUT) // Buzzer pin as Output 23constexpr uint8_t RST_PIN = 9 24constexpr uint8_t SS_PIN = 10 25 26 MFRC522 mfrc522 ( SS_PIN, RST_PIN ) 27LiquidCrystal lcd ( 7, 6, 5, 4, 3, 2 ) // LCD Pins connection Rs,E,D4,D5,D6,D7 28X113647Stepper myStepper ( STEPS_PER_REVOLUTION, A0, A1, A2, A3 ) //stepper on pins A0 through A3 29 // Creat a set of new characters 30byte smiley = 1#include 2#include 3#include // We are going to read and write PICC's UIDs from/to EEPROM 4#include // RC522 Module uses SPI protocol 5#include // Library for Mifare RC522 Devices 6#define ON HIGH 7#define OFF LOW 8 static const int STEPS_PER_REVOLUTION = 64 * 32 // steps per revolution for stepper motor 9int i = 0 // Counter for alarm 10int val = LOW, pre_val = LOW // Alarming variables 11 const int Buzz = A5 12 const int greenLed = A4 13 const int wipeB = 8 // Button pin for WipeMode 14bool programMode = false // initialize programming mode to false 15 16uint8_t successRead // Variable integer to keep if we have Successful Read from Reader 17 18byte stobuzzerCard // Stores an ID read from EEPROM 19byte readCard // Stores scanned ID read from RFID Module 20byte masterCard // Stores master card's ID read from EEPROM 21 22 // Create MFRC522 Pins.
0 Comments
Leave a Reply. |