Irma Karasoftic / Mbed 2 deprecated LV5_Grupa6_Zadatak2_Tim010

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
pai2015irmakarasofti
Date:
Thu Apr 02 15:36:22 2015 +0000
Commit message:
LV5-Grupa6-Zadatak2-Tim010

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 02 15:36:22 2015 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+
+#define dp23 P0_0
+ 
+ 
+PwmOut pwm(dp18);
+AnalogIn potmet(dp9);
+
+ 
+int main() {
+
+    wait(0.05);
+    pwm.period_us(50);
+    
+    while(1){
+        //ako ne bude radilo vidjeti sa funkcijom write
+        //provjeriti sa ass da li treba brojač
+        pwm = potmet;
+       
+    }
+ 
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 02 15:36:22 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0
\ No newline at end of file