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.
lib.c@0:c50dab27dd69, 2015-11-25 (annotated)
- Committer:
- cless
- Date:
- Wed Nov 25 15:28:38 2015 +0000
- Revision:
- 0:c50dab27dd69
hello!
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| cless | 0:c50dab27dd69 | 1 | #include "mbed.h" |
| cless | 0:c50dab27dd69 | 2 | |
| cless | 0:c50dab27dd69 | 3 | LEDFLASH::LEDFLASH(PinName pin) : number(pin) { |
| cless | 0:c50dab27dd69 | 4 | number = 0; |
| cless | 0:c50dab27dd69 | 5 | } |
| cless | 0:c50dab27dd69 | 6 | |
| cless | 0:c50dab27dd69 | 7 | void LEDFLASH::out(int n) { |
| cless | 0:c50dab27dd69 | 8 | for(int i=0; i<n*2; i++) { |
| cless | 0:c50dab27dd69 | 9 | number = !number; |
| cless | 0:c50dab27dd69 | 10 | wait(0.2); |
| cless | 0:c50dab27dd69 | 11 | } |
| cless | 0:c50dab27dd69 | 12 | } |