tim003 tim003
/
LV5_zadatak1_grupa3_tim003
Adnan Kičin Nurif Dedagić
Revision 0:f26ed78adf52, committed 2014-03-31
- Comitter:
- tim003
- Date:
- Mon Mar 31 15:26:23 2014 +0000
- Commit message:
- LV5-Grupa3-tim003-zadatak1
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 f26ed78adf52 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 31 15:26:23 2014 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include "math.h" +AnalogOut izlaz(PTE30); +Ticker t; +float frekvencija=1000; +float pi=3.14159265359; +float omega=2*pi*frekvencija; +int i(0); +void funkcija(){ + izlaz=(0.5/3.3) + (0.5/3.3)*sin(omega*i*0.0001); + i++; + if(i==100) i=0; + } + +int main() { + t.attach_us(&funkcija, 250); + while(1){} +}
diff -r 000000000000 -r f26ed78adf52 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 31 15:26:23 2014 +0000 @@ -0,0 +1,1 @@ +http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43 \ No newline at end of file