jim kizos
/
EzSBC2_LPC1347_blink_program
EzSBC2_blink_program
main.cpp@0:b08cd12df913, 2015-04-12 (annotated)
- Committer:
- kizosgr
- Date:
- Sun Apr 12 23:14:01 2015 +0000
- Revision:
- 0:b08cd12df913
- Child:
- 1:d4ef93a264b7
EzSBC2 blink program
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 | 0:b08cd12df913 | 3 | // WiFi DipCortex has 1 LED shared with the button on P0_1 |
kizosgr | 0:b08cd12df913 | 4 | DigitalOut Led(P1_15); |
kizosgr | 0:b08cd12df913 | 5 | |
kizosgr | 0:b08cd12df913 | 6 | // DipCortex has 2 LEDs P0_1 and P1_22 |
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 | 0:b08cd12df913 | 15 | Led = !Led; |
kizosgr | 0:b08cd12df913 | 16 | wait_ms(250); |
kizosgr | 0:b08cd12df913 | 17 | } |
kizosgr | 0:b08cd12df913 | 18 | } |