Denver / Mbed 2 deprecated denver_train_proj

Dependencies:   mbed TextLCD

Files at this revision

API Documentation at this revision

Comitter:
carlosperales95
Date:
Wed Jun 20 10:04:42 2018 +0000
Parent:
49:880c0b9c9c64
Child:
51:badef9fc202f
Commit message:
Enable added - init to 1 first line of main

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;