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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 2:c5359a1a8d94
- Parent:
- 0:242976b62902
- Child:
- 3:1310ff1cdc7b
--- a/main.cpp Thu Mar 12 23:40:48 2015 +0000
+++ b/main.cpp Fri Mar 13 01:41:33 2015 +0000
@@ -10,6 +10,7 @@
int main()
{
+
float meas1;
int meas2;
float meas3;
@@ -25,7 +26,7 @@
meas3 = analog_value; // Converts and read the analog input value (value from 0.0 to 1.0)
meas3 = mv3(meas3); // Change the value to be in the 0 to 3300 range
-
+
printf("measure = %.0f mV, %d mV, %.0f mV\n", meas1,meas2,meas3);
if (meas1 > 2000 && meas2 > 2000 && meas3 > 2000) { // If the value is greater than 2V then switch the LED on
led = 1;