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 0:93100c2b1bba, committed 2014-03-31
- Comitter:
- tim004
- Date:
- Mon Mar 31 16:40:20 2014 +0000
- Commit message:
- Tim004Zad1LV5
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 93100c2b1bba main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 31 16:40:20 2014 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" + +AnalogOut aout (PTE30); +double frekvencija=1/200.0 ; +double period2=0.00005; +Ticker t1,t2; +double var=0.0; + +void f1(){ + aout=var/3.3; + var=var+0.01; + + } +void f2(){ + aout=var/3.3; + var=0.0; + } + + + +int main() { + + t1.attach(&f1, period2); + t2.attach(&f2,frekvencija); + +}
diff -r 000000000000 -r 93100c2b1bba mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 31 16:40:20 2014 +0000 @@ -0,0 +1,1 @@ +http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43 \ No newline at end of file