Local library

Dependencies:   WakeUp PinDetect

Dependents:   Inductive_Sensor Inductive_Sensor_Jasper Inductive_Sensor_3

Revision:
1:2234e0b31d94
Parent:
0:17943815800f
Child:
2:681ecede6dcb
--- a/Bob.cpp	Fri Dec 18 15:49:34 2015 +0000
+++ b/Bob.cpp	Tue Jan 05 11:03:48 2016 +0000
@@ -26,7 +26,7 @@
 {
     // Check if any card is present
     if(_sdP->read() != 1) {
-        flash_green(2);
+        _green = 0;
         return 1;
     }else{
         green();
@@ -34,6 +34,10 @@
     }
 }
 
+void Bob::sleep(void)  { _sdE = 0; }
+void Bob::wakeup(void) { _sdE = 1; wait(0.1); }
+
+
 void Bob::flash( int n )
 {
     _red = 0;
@@ -59,6 +63,6 @@
     }
 }
 
-void Bob::red(void)   { _red   = 1; wait(0.2); }
-void Bob::green(void) { _green = 1; wait(0.2); }
+void Bob::red(void)   { _red   = 1; }
+void Bob::green(void) { _green = 1; }