bitmode
This commit is contained in:
parent
49a4d79c43
commit
8f3154b6d7
3 changed files with 7 additions and 2 deletions
2
README
2
README
|
@ -18,7 +18,7 @@ This project is a card reader system for Techinc that uses a WIEGAND based reade
|
|||
-DLATCH_DOOR : Release RELAY1 for a a certain amount of time in this case its 1 second
|
||||
-DTOGGLE_DOOR : Instead of Relasing relay for 1 second keep it in the opposite state to what it was at the time the card was scanned.
|
||||
-DTINANCE2_BACKEND : Enables use of Tinance2 System
|
||||
|
||||
-DBIT_MODE_WG34 : Tells reader to expect 34 BIT cards.
|
||||
|
||||
# Important Notes:
|
||||
* The webserver uses Spiffs to manage the HTML files for the web server you need to run ("Upload Filesystem Image" step via serial or use the OTA upgrade and run "Upload Filesystem Image OTA" step and uplaod it.)
|
|
@ -27,6 +27,7 @@
|
|||
#define DATA1_PIN 27
|
||||
#define RELAY1_PIN 13
|
||||
#define RELAY_DELAY 3000
|
||||
#define BIT_MODE_WG34_PIN 32
|
||||
#endif
|
||||
|
||||
void controlRelay();
|
||||
|
|
|
@ -170,6 +170,11 @@ void setup() {
|
|||
pinMode(DATA0_PIN, INPUT_PULLUP);
|
||||
pinMode(DATA1_PIN, INPUT_PULLUP);
|
||||
|
||||
#ifdef BIT_MODE_WG34
|
||||
pinMode(BIT_MODE_WG34_PIN, OUTPUT);
|
||||
digitalWrite(BIT_MODE_WG34_PIN, HIGH);
|
||||
#endif
|
||||
|
||||
#ifdef LEDCTL_PIN
|
||||
pinMode(LEDCTL_PIN, OUTPUT);
|
||||
#endif
|
||||
|
@ -561,7 +566,6 @@ void loop() {
|
|||
Serial.println(facilityID);
|
||||
Serial.print("Facility ID (Binary): ");
|
||||
Serial.println(facilityID, BIN);
|
||||
|
||||
Serial.print("Card ID (Decimal): ");
|
||||
Serial.println(cardID);
|
||||
Serial.print("Card ID (Binary): ");
|
||||
|
|
Loading…
Reference in a new issue