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:a614bd85c560, 2014-04-03 (annotated)
- Committer:
- tim010
- Date:
- Thu Apr 03 14:55:08 2014 +0000
- Revision:
- 0:a614bd85c560
LV5 - PAI - Grupa 6 - Tim010
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tim010 | 0:a614bd85c560 | 1 | #include "mbed.h" |
tim010 | 0:a614bd85c560 | 2 | AnalogIn x(dp9); |
tim010 | 0:a614bd85c560 | 3 | PwmOut y(dp18); |
tim010 | 0:a614bd85c560 | 4 | |
tim010 | 0:a614bd85c560 | 5 | int main() |
tim010 | 0:a614bd85c560 | 6 | { |
tim010 | 0:a614bd85c560 | 7 | wait_ms(50); |
tim010 | 0:a614bd85c560 | 8 | y.period_us(50); |
tim010 | 0:a614bd85c560 | 9 | while(1) |
tim010 | 0:a614bd85c560 | 10 | { |
tim010 | 0:a614bd85c560 | 11 | y = x; |
tim010 | 0:a614bd85c560 | 12 | } |
tim010 | 0:a614bd85c560 | 13 | |
tim010 | 0:a614bd85c560 | 14 | } |