summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergiusz 'q3k' Bazański <q3k@q3k.org>2015-03-04 20:06:57 +0100
committerSergiusz 'q3k' Bazański <q3k@q3k.org>2015-03-04 20:06:57 +0100
commitdb0a73ab575b7150f148c0c658b7be186371c5ce (patch)
tree0df667ec17f6c5ddf3f54d6dc21af93d66305e69
parent043b4ed4a96fcf486b04d001f9800af729d164a0 (diff)
downloaddoorman-db0a73ab575b7150f148c0c658b7be186371c5ce.tar.gz
doorman-db0a73ab575b7150f148c0c658b7be186371c5ce.tar.bz2
doorman-db0a73ab575b7150f148c0c658b7be186371c5ce.tar.xz
doorman-db0a73ab575b7150f148c0c658b7be186371c5ce.zip
Rename to .ino, NOP all RFID functions.
-rw-r--r--arduino/doorman/doorman.ino (renamed from arduino/arduino.pde)14
1 files changed, 7 insertions, 7 deletions
diff --git a/arduino/arduino.pde b/arduino/doorman/doorman.ino
index 00f5e04..09c1b95 100644
--- a/arduino/arduino.pde
+++ b/arduino/doorman/doorman.ino
@@ -92,7 +92,7 @@ static byte keypad_state=SEND;
/** Setup function. */
void setup() {
Serial.begin(19200);
- rfid.begin(19200);
+ //rfid.begin(19200);
keypad.begin(19200);
delay(10);
rf_halt();
@@ -366,7 +366,7 @@ void emem_print(){
* @return Returns true if message was received, false otherwise
*/
boolean rf_parse() {
- static int rf_idx = 0;
+ /*static int rf_idx = 0;
while(rfid.available()){
//Read the incoming byte.
byte in = rfid.read();
@@ -413,7 +413,7 @@ boolean rf_parse() {
rf_idx=0;
continue;
}
- }
+ }*/
return false;
}
@@ -645,11 +645,11 @@ boolean rf_comm(unsigned long * p_rfid) {
*/
void rf_halt() {
//Halt tag
- rfid.print(255, BYTE);
+ /*rfid.print(255, BYTE);
rfid.print(0, BYTE);
rfid.print(1, BYTE);
rfid.print(147, BYTE);
- rfid.print(148, BYTE);
+ rfid.print(148, BYTE);*/
}
/**
@@ -657,11 +657,11 @@ void rf_halt() {
*/
void rf_seek(){
//search for RFID tag
- rfid.print(255, BYTE);
+ /*rfid.print(255, BYTE);
rfid.print(0, BYTE);
rfid.print(1, BYTE);
rfid.print(130, BYTE);
- rfid.print(131, BYTE);
+ rfid.print(131, BYTE); */
}
/**