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
Revision 0:61a0fcaed1a8, committed 2014-11-11
- Comitter:
- markusnr
- Date:
- Tue Nov 11 15:04:15 2014 +0000
- Commit message:
- .
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 |
diff -r 000000000000 -r 61a0fcaed1a8 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Nov 11 15:04:15 2014 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+DigitalOut led(p18);
+AnalogIn ain(p16);
+
+int main() {
+ float analogverdi;
+ while (1){
+ analogverdi=ain*3.3;
+ if(analogverdi > 2) {
+ led = 1;
+ } else {
+ led = 0;
+ }
+ }
+}
\ No newline at end of file
diff -r 000000000000 -r 61a0fcaed1a8 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Nov 11 15:04:15 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89 \ No newline at end of file