Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@0:344c80db9f20, 2018-08-13 (annotated)
- Committer:
- Yeshwanth16
- Date:
- Mon Aug 13 05:30:48 2018 +0000
- Revision:
- 0:344c80db9f20
im god
Who changed what in which revision?
| User | Revision | Line number | New 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 | } |