Denver / Mbed 2 deprecated denver_train_proj

Dependencies:   mbed TextLCD

Revision:
50:ee4398ee44be
Parent:
49:880c0b9c9c64
Child:
51:badef9fc202f
--- a/main.cpp	Wed Jun 20 09:44:05 2018 +0000
+++ b/main.cpp	Wed Jun 20 10:04:42 2018 +0000
@@ -35,7 +35,8 @@
 DigitalIn station(p15); //Sensor in the middle of the station
 
 //p16
-//p17
+//ENABLE - p17
+DigitalOut enable(p17);
 
 //BUZZER - p18
 DigitalOut buzz(p18); // buzz=0 doesn't beep, buzz=1 beeps
@@ -931,6 +932,7 @@
     
     //0xFFFC     //1111111111111100
     
+    enable = 1;
     
     //Led routine to start main program
     led1 = 1;