Granulo Eldar Mehanovic Adnan

Dependencies:   mbed

main.cpp

Committer:
tim003
Date:
2014-03-31
Revision:
0:4662d250bc92

File content as of revision 0:4662d250bc92:

#include "mbed.h"
#include <cmath>

AnalogOut oscilloscope(PTE30);
double function(double x)
{
    return sin(x) / 2 + 0.5;
}

int main()
{
    while(1) {
        for (double i = 0; i < 6.28; i += 0.0628) {
            oscilloscope = function (i) / 3.3;
            wait_us(15);
        }
    }
}