ioTinkers / Mbed 2 deprecated pwmm

Dependencies:   Servo mbed

Committer:
Yeshwanth16
Date:
Mon Aug 13 05:30:48 2018 +0000
Revision:
0:344c80db9f20
im  god

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Yeshwanth16 0:344c80db9f20 1 #include "mbed.h"
Yeshwanth16 0:344c80db9f20 2
Yeshwanth16 0:344c80db9f20 3 PwmOut my(p5);
Yeshwanth16 0:344c80db9f20 4
Yeshwanth16 0:344c80db9f20 5 int main() {
Yeshwanth16 0:344c80db9f20 6 while(1) {
Yeshwanth16 0:344c80db9f20 7 my.period(0.7f);
Yeshwanth16 0:344c80db9f20 8 my.write(0.5f);
Yeshwanth16 0:344c80db9f20 9 wait(1.0);
Yeshwanth16 0:344c80db9f20 10 my.period(1.1f);
Yeshwanth16 0:344c80db9f20 11 my.write(0.5f);
Yeshwanth16 0:344c80db9f20 12 wait(1.0);
Yeshwanth16 0:344c80db9f20 13 my.period(1.5f);
Yeshwanth16 0:344c80db9f20 14 my.write(0.5f);
Yeshwanth16 0:344c80db9f20 15 wait(1.0);
Yeshwanth16 0:344c80db9f20 16 my.period(1.9f);
Yeshwanth16 0:344c80db9f20 17 my.write(0.5f);
Yeshwanth16 0:344c80db9f20 18 wait(1.0);
Yeshwanth16 0:344c80db9f20 19 }
Yeshwanth16 0:344c80db9f20 20
Yeshwanth16 0:344c80db9f20 21 }