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.
Revision 1:78fa04ead8c9, committed 2015-03-15
- Comitter:
- faif
- Date:
- Sun Mar 15 17:19:11 2015 +0000
- Parent:
- 0:d61df2a08b1d
- Commit message:
- revised
Changed in this revision
--- a/main.cpp Sat Feb 11 14:56:05 2012 +0000 +++ b/main.cpp Sun Mar 15 17:19:11 2015 +0000 @@ -1,11 +1,11 @@ #include "mbed.h" #include "main.h" -int main () { +int main (void) { while (true) { myled = LedOn; - wait (mypot); // wait on equal to the value of the potentiometer + wait(mypot); // wait on equal to the value of the potentiometer myled = LedOff; - wait (mypot); // wait off equal to the value of the potentiometer + wait(mypot); // wait off equal to the value of the potentiometer } }
--- a/main.h Sat Feb 11 14:56:05 2012 +0000 +++ b/main.h Sun Mar 15 17:19:11 2015 +0000 @@ -3,7 +3,7 @@ enum {LedOff = 0, LedOn = 1}; -AnalogIn mypot (p20); -DigitalOut myled (LED4); +AnalogIn mypot(p20); +DigitalOut myled(LED2); #endif
--- a/mbed.bld Sat Feb 11 14:56:05 2012 +0000 +++ b/mbed.bld Sun Mar 15 17:19:11 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912 +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912 \ No newline at end of file