vjezba10

Dependencies:   mbed

main.cpp

Committer:
mvucina
Date:
2015-05-08
Revision:
0:0e124b775831

File content as of revision 0:0e124b775831:

//Sawtooth waveform on DAC output to view on oscilloscope
#include "mbed.h"
AnalogOut Aout(p18);
float i;
int main() {
while(1)
{
for (i=0;i<1;i=i+0.01)
{
Aout=i;
wait(0.001);
}
}
}