Testing 1 blue pill

Dependencies:   mbed mbed-rtos TextLCD

Revision:
24:728de4bf961e
Parent:
23:07a368f2cdb1
Child:
25:9751619fa030
--- a/main.cpp	Sat Feb 16 15:19:21 2019 +0000
+++ b/main.cpp	Mon Feb 18 12:02:34 2019 +0000
@@ -30,7 +30,7 @@
         }else if(INTERFACE.Get_Function() == 2)//Test
         {
             lcd.printf("Mode: Test\n");
-            lcd.printf("Duty: %d Time: %d\n",INTERFACE.Get_Duty_Cycle(),INTERFACE.Get_Power_Time());
+            lcd.printf("Duty: %dTime: %d\n",INTERFACE.Get_Duty_Cycle(),INTERFACE.Get_Power_Time());
         }
         Thread::wait(250);//Refresh rate for Lcd
     } 
@@ -121,9 +121,6 @@
     button_funct.fall(&function_signal_fall);//Sets up Function Button
     button_select.fall(&select_signal_fall); //Sets up Select Button
     
-    //Output data to lcd prior to main code starting
-    
-    INTERFACE.Interface_Init();
     lcd.printf("Ready   Player\n");
     lcd.printf("     One      \n");
     Thread::wait(1000);
@@ -139,7 +136,7 @@
     select_thread.start(Selection_thread_function);//Start interface thread
     
     osThreadSetPriority(osThreadGetId(), osPriorityHigh);//This is done to make sure the code for the stepper motor is the highest priority to ensure correct rotations of the stepper motor
-    
+    INTERFACE.Interface_Init();
     while(1)// Main code in a main thread
     {
         INTERFACE.Interface_main();//Run main thread code