Lecture 3 example
Dependencies: mbed
Revision 1:e5e994163bee, committed 2019-02-06
- Comitter:
- kaushalpkk
- Date:
- Wed Feb 06 17:56:24 2019 +0000
- Parent:
- 0:d1fc4eddceab
- Commit message:
- SB lecture 3/ PWM analogin example
Changed in this revision
| Servo.lib | Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Servo.lib Mon Oct 15 12:43:06 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/simon/code/Servo/#36b69a7ced07
--- a/main.cpp Mon Oct 15 12:43:06 2012 +0000 +++ b/main.cpp Wed Feb 06 17:56:24 2019 +0000 @@ -1,8 +1,7 @@ #include "mbed.h" -#include "Servo.h" -Servo s1(p21); -Servo s2(p22); +PwmOut s1(LED1); +PwmOut s2(LED2); AnalogIn p1(p19); AnalogIn p2(p20);