Julesnaps / Mbed 2 deprecated Linefollowproject

Dependencies:   m3pi mbed

Revision:
14:12fb3e326911
Parent:
13:ddff4bb7c24f
Child:
15:8b76add42254
Child:
16:ef72e302c653
--- a/main.cpp	Thu Oct 06 12:10:51 2022 +0000
+++ b/main.cpp	Thu Oct 06 12:12:39 2022 +0000
@@ -110,14 +110,10 @@
     const float BATVOLTTRESHOLD = 3.0; // Treshold i volt
     int result;
     
-    /*Digital outs*/
-    DigitalOut led1(LED1);
-    led1 = 0; // Turn off led 1 on the embed
-    
     /*Test if the voltage is below the threshold if so turn on go to pit mode*/
     if (m3pi.battery() <= BATVOLTTRESHOLD ()){  
         result = 1; // Set goto pit condition
-        led1 = 1; // Turn on Led 1
+        LED_Control(1, 1)
         m3pi.cls();
         m3pi.locate(0,0);
         m3pi.printf("Going to");