Stage-1 Students SoCEM / Mbed 2 deprecated Task523

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
noutram
Date:
Thu Sep 24 12:31:39 2015 +0000
Commit message:
Initial version 24-09-2015

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
diff -r 000000000000 -r 437c844cec26 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Sep 24 12:31:39 2015 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+PwmOut pwmRed(D7);
+
+int T = 10;
+int Tmark = 1;
+
+int main() {
+    
+    pwmRed.period_us(T);
+    pwmRed.pulsewidth_us(Tmark);
+    
+    while(1) {
+        sleep();
+    }
+}
diff -r 000000000000 -r 437c844cec26 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Sep 24 12:31:39 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa
\ No newline at end of file