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@1:d4ef93a264b7, 2015-04-12 (annotated)
- Committer:
- kizosgr
- Date:
- Sun Apr 12 23:25:38 2015 +0000
- Revision:
- 1:d4ef93a264b7
- Parent:
- 0:b08cd12df913
EzSBC2 blink at 2 LEDs P1_15 and P1_22
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kizosgr | 0:b08cd12df913 | 1 | #include "mbed.h" |
| kizosgr | 0:b08cd12df913 | 2 | |
| kizosgr | 1:d4ef93a264b7 | 3 | // EzSBC2 has 2 LEDs P1_15 and P1_16 |
| kizosgr | 1:d4ef93a264b7 | 4 | |
| kizosgr | 1:d4ef93a264b7 | 5 | DigitalOut Led1(P1_15); |
| kizosgr | 0:b08cd12df913 | 6 | |
| kizosgr | 0:b08cd12df913 | 7 | DigitalOut Led2(P1_16); |
| kizosgr | 0:b08cd12df913 | 8 | |
| kizosgr | 0:b08cd12df913 | 9 | int main() |
| kizosgr | 0:b08cd12df913 | 10 | { |
| kizosgr | 0:b08cd12df913 | 11 | while(1) |
| kizosgr | 0:b08cd12df913 | 12 | { |
| kizosgr | 0:b08cd12df913 | 13 | Led2 = !Led2; |
| kizosgr | 0:b08cd12df913 | 14 | wait_ms(250); |
| kizosgr | 1:d4ef93a264b7 | 15 | Led1 = !Led1; |
| kizosgr | 0:b08cd12df913 | 16 | wait_ms(250); |
| kizosgr | 0:b08cd12df913 | 17 | } |
| kizosgr | 0:b08cd12df913 | 18 | } |