vjezba10

Dependencies:   mbed

Revision:
0:0e124b775831
diff -r 000000000000 -r 0e124b775831 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 08 17:29:25 2015 +0000
@@ -0,0 +1,14 @@
+//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);
+}
+}
+}
\ No newline at end of file