Dautbegović Emrah Tucak Selma

Dependencies:   mbed

Fork of LV5-PAI-Grupa6-Tim003-Zad1 by tim003 tim003

Committer:
tim003
Date:
Thu Apr 03 18:14:37 2014 +0000
Revision:
1:69ce7d4dcba2
Parent:
0:8781a6c94e3b
LV5-PAI-Grupa7-Tim003-Zad1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tim003 0:8781a6c94e3b 1 #include "mbed.h"
tim003 0:8781a6c94e3b 2 #include "math.h"
tim003 0:8781a6c94e3b 3 AnalogOut aout(PTE30);
tim003 1:69ce7d4dcba2 4
tim003 0:8781a6c94e3b 5 int main() {
tim003 0:8781a6c94e3b 6 while(1) {
tim003 1:69ce7d4dcba2 7 for(int i=0;i<100;i++){
tim003 1:69ce7d4dcba2 8 aout = (1/3.3)/2+(1/3.3)/2*sin(2*3.14*1000*i*0.00005);
tim003 1:69ce7d4dcba2 9 wait_us(50);
tim003 1:69ce7d4dcba2 10 if(i==99) i=0;
tim003 1:69ce7d4dcba2 11 }
tim003 0:8781a6c94e3b 12 }
tim003 0:8781a6c94e3b 13 }