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.
Fork of RelayMD_lib_sample by
main.cpp@1:19df9d83a651, 2018-09-07 (annotated)
- Committer:
- skouki
- Date:
- Fri Sep 07 02:52:09 2018 +0000
- Revision:
- 1:19df9d83a651
- Parent:
- 0:9db257a8b863
ver2-sample
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| skouki | 0:9db257a8b863 | 1 | #include "mbed.h" | 
| skouki | 0:9db257a8b863 | 2 | #include "RelayMD.h" | 
| skouki | 0:9db257a8b863 | 3 | |
| skouki | 0:9db257a8b863 | 4 | RelayMD motor(D11,D10,D9); | 
| skouki | 1:19df9d83a651 | 5 | DigitalOut led(LED2); | 
| skouki | 0:9db257a8b863 | 6 | int main(){ | 
| skouki | 0:9db257a8b863 | 7 | while(true){ | 
| skouki | 1:19df9d83a651 | 8 | led = !led; | 
| skouki | 1:19df9d83a651 | 9 | motor = 1; | 
| skouki | 0:9db257a8b863 | 10 | wait(1); | 
| skouki | 1:19df9d83a651 | 11 | motor = 0.5; | 
| skouki | 0:9db257a8b863 | 12 | wait(1); | 
| skouki | 0:9db257a8b863 | 13 | } | 
| skouki | 1:19df9d83a651 | 14 | } | 
