Irma Karasoftić Dino Šatrović

Dependencies:   mbed

main.cpp

Committer:
pai2015irmakarasofti
Date:
2015-04-02
Revision:
0:39e7ee37c1d6

File content as of revision 0:39e7ee37c1d6:

#include "mbed.h"
#define dp23 P0_0
//u jednom periodu ima 25 stepenica, amplituda je 1 volt, nema pomaka
AnalogOut izlaz(PTE30);
float w=2*3.14159265358979323846*200*0.00005;
float pi=3.14159265358979323846;
int brojac=0;

int main() {

        int t=0;
        while(1)
        {
            t = t %100;      
            izlaz=abs((sin(w*t))/3.3);
            t++;
            wait(0.00005);        
        }
    
}