Skip to content

Commit

Permalink
Release 1.0.1
Browse files Browse the repository at this point in the history
Add defines for LED_BUILTIN, DATA0, and DATA1
Improving hardware compatibility and code readability
  • Loading branch information
exploitagency committed Oct 19, 2017
1 parent 6a5ef93 commit 7465f2f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions Code/espthief/espthief.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
#define DRD_ADDRESS 0
DoubleResetDetector drd(DRD_TIMEOUT, DRD_ADDRESS);

#define LED_BUILTIN 2
#define DATA0 14
#define DATA1 12

// Port for web server
ESP8266WebServer server(80);
ESP8266WebServer httpServer(1337);
Expand Down Expand Up @@ -614,18 +618,21 @@ void setup() {
}

//Start RFID Reader

pinMode(LED_BUILTIN, OUTPUT); // LED
if (ledenabled==1){
pinMode(2, OUTPUT); // LED
digitalWrite(LED_BUILTIN, LOW);
}
else{
digitalWrite(LED_BUILTIN, HIGH);
}
pinMode(14, INPUT); // DATA0 (INT0)
pinMode(12, INPUT); // DATA1 (INT1)
pinMode(DATA0, INPUT); // DATA0 (INT0)
pinMode(DATA1, INPUT); // DATA1 (INT1)

//Serial.println("RFID Reader Started");

// binds the ISR functions to the falling edge of INTO and INT1
attachInterrupt(14, ISR_INT0, FALLING);
attachInterrupt(12, ISR_INT1, FALLING);
attachInterrupt(DATA0, ISR_INT0, FALLING);
attachInterrupt(DATA1, ISR_INT1, FALLING);

weigand_counter = WEIGAND_WAIT_TIME;
}
Expand Down
Binary file modified Code/espthief/espthief.ino.generic.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion Code/espthief/version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
String version = "1.0.0";
String version = "1.0.1";

0 comments on commit 7465f2f

Please sign in to comment.