mbed_example / Mbed 2 deprecated AnalogIn_HelloWorld_Mbed

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Sun Nov 06 09:12:53 2016 +0000
Parent:
2:aae9d053cb5d
Commit message:
Avoid implicitly converted warning. Update libraries.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Sep 21 19:05:22 2014 +0000
+++ b/main.cpp	Sun Nov 06 09:12:53 2016 +0000
@@ -6,7 +6,7 @@
 // Turn on led if analog voltage > 30% of supply voltage
 int main() {
     while (1){
-        if(ain > 0.3) {
+        if(ain > 0.3f) {
             led = 1;
         } else {
             led = 0;
--- a/mbed.bld	Sun Sep 21 19:05:22 2014 +0000
+++ b/mbed.bld	Sun Nov 06 09:12:53 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/9bcdf88f62b0
\ No newline at end of file