Sensos Module Updated

Dependents:   SmartLabProyect

Fork of Middleware by Roberto Herrera

Revision:
3:1704050210b5
Parent:
1:fd355dc296b1
Child:
4:c59485faea9f
--- a/Sensors.h	Wed Dec 09 04:50:13 2015 +0000
+++ b/Sensors.h	Thu Dec 10 02:31:36 2015 +0000
@@ -1,4 +1,9 @@
+#ifndef SENSORS_H_
+#define SENSORS_H_
+
+
 #include "mbed.h"
+#include "ultrasonic.h"
 
 /*Macros*/
 #define BAD_PARAMETER (-1)
@@ -8,9 +13,25 @@
 #define TRUE 1
 #define CLOSED 0
 #define OPEN 1
+#define RANGE 500
 
 
-
+/*Function Initialization*/
+//START PIR SENSOR INPUT INIT
+static DigitalIn PIR1(D0);
+static DigitalIn PIR2(D1);
+//END PIR SENSOR INPUT INIT
+//START WINDOW SENSOR INPUT
+static DigitalIn W1(D2);
+static DigitalIn W2(D3);
+static DigitalIn W3(D4);
+//END WINDOW SENSOR INPUT INIT
+//START DOOR SENSOR INPUT
+static DigitalIn DOORSensor(D5);
+//END DOOR SENSOR INPUT INIT
+//START LIGHT CONTROL OUTPUT
+static DigitalOut LightControl(D6);
+//END LIGHT CONTROL OUTPUT
 
 /*Extern Functions*/
 ////////////////////////////////////////////////////
@@ -55,4 +76,6 @@
 Input parameters  -> void
 
 Output parameters -> unsigned int PersonNumber; 0 - 4294967296.
-*/
\ No newline at end of file
+*/
+
+#endif
\ No newline at end of file