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:7b7200e7abb6, 2015-11-14 (annotated)
- Committer:
- finetomo
- Date:
- Sat Nov 14 05:14:36 2015 +0000
- Revision:
- 0:7b7200e7abb6
Test LED Flash short blinks
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
finetomo | 0:7b7200e7abb6 | 1 | #include "mbed.h" |
finetomo | 0:7b7200e7abb6 | 2 | |
finetomo | 0:7b7200e7abb6 | 3 | DigitalOut myled(dp18); |
finetomo | 0:7b7200e7abb6 | 4 | |
finetomo | 0:7b7200e7abb6 | 5 | int main() { |
finetomo | 0:7b7200e7abb6 | 6 | while(1) { |
finetomo | 0:7b7200e7abb6 | 7 | myled = 1; |
finetomo | 0:7b7200e7abb6 | 8 | wait(0.1); |
finetomo | 0:7b7200e7abb6 | 9 | myled = 0; |
finetomo | 0:7b7200e7abb6 | 10 | wait(0.1); |
finetomo | 0:7b7200e7abb6 | 11 | myled = 1; |
finetomo | 0:7b7200e7abb6 | 12 | wait(0.1); |
finetomo | 0:7b7200e7abb6 | 13 | myled = 0; |
finetomo | 0:7b7200e7abb6 | 14 | wait(0.1); |
finetomo | 0:7b7200e7abb6 | 15 | } |
finetomo | 0:7b7200e7abb6 | 16 | } |