Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Driver/main.h
- 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;
}
}