w3PWM2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
occle
Date:
Thu Jan 12 15:44:40 2017 +0000
Commit message:
w2PWM2

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 78a79836bc56 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jan 12 15:44:40 2017 +0000
@@ -0,0 +1,7 @@
+#include "mbed.h"
+PwmOut PWM1(PTC10); //create a PWM output called PWM1 on pin 21
+
+int main() {
+  PWM1.period_ms(10); // set PWM period to 10 ms
+  PWM1.pulsewidth_ms(5); // set pulse width to 5 ms
+}
diff -r 000000000000 -r 78a79836bc56 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jan 12 15:44:40 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9bcdf88f62b0
\ No newline at end of file