tim007 tim007 / Mbed 2 deprecated Zadatak1-LV5

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tim007
Date:
Thu Apr 03 17:52:30 2014 +0000
Commit message:
Zadatak1-LV5-Grupa7-Tim7

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 03 17:52:30 2014 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+
+AnalogOut izlaz(PTE30);
+double korak=0.01;
+double napon;
+double koraci;
+Ticker otk;
+int broj=0;
+
+void funk()
+{
+    napon=(1.0/3.3);
+    koraci=(1-korak*broj);
+    izlaz=napon*koraci;
+    broj++;
+    if(broj>44)
+    {
+        broj=0;
+    }
+}
+int main() {
+    otk.attach_us(&funk,50);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 03 17:52:30 2014 +0000
@@ -0,0 +1,1 @@
+http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43
\ No newline at end of file