Fahad Mirza / Mbed 2 deprecated Nucleo_HXC900

Dependencies:   mbed

Revision:
14:05245fe1a7a0
Parent:
11:f4346bbaa872
Child:
15:2860c960d2ff
--- a/Driver/main.h	Tue Jul 24 02:30:55 2018 +0000
+++ b/Driver/main.h	Tue Jul 24 02:51:20 2018 +0000
@@ -33,6 +33,14 @@
 //Flag to indicate if the MCU is Initialized
 static bool McuInitialized = false;
 
+// Mbed specific declaration
+AnalogIn temperatureSensor(A0);
+DigitalOut nucleoLED(LED1);
+DigitalIn slideSwitch(D12);
+DigitalOut blueLED(D11);
+DigitalOut redLED(D10);
+DigitalOut greenLED(D9);
+
 
 
 /******************************************************************************
@@ -157,6 +165,7 @@
 
     // LED on Nucleo board
     BSP_LED_Init(LED_GREEN);
+    slideSwitch.mode(PullDown);
     McuInitialized = true;
   }
 }