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@26:5076b996d5a9, 2020-04-12 (annotated)
- Committer:
- cielo
- Date:
- Sun Apr 12 04:38:16 2020 +0000
- Revision:
- 26:5076b996d5a9
- Parent:
- 25:7dad1f41744f
while
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cielo | 26:5076b996d5a9 | 1 | #include "mbed.h" |
cielo | 26:5076b996d5a9 | 2 | DigitalOut led(LED2); |
cielo | 26:5076b996d5a9 | 3 | DigitalIn push1(SW2); |
cielo | 26:5076b996d5a9 | 4 | DigitalIn push2(SW3); |
cielo | 25:7dad1f41744f | 5 | Serial com1(USBTX,USBRX); // PARA USAR LOS PINES UART |
cielo | 26:5076b996d5a9 | 6 | int main() |
cielo | 26:5076b996d5a9 | 7 | { |
cielo | 26:5076b996d5a9 | 8 | |
cielo | 26:5076b996d5a9 | 9 | while(push1==1 || push2==1){ |
cielo | 26:5076b996d5a9 | 10 | led=1; |
cielo | 26:5076b996d5a9 | 11 | com1.printf("El led esta encendido \n"); |
cielo | 26:5076b996d5a9 | 12 | } |
cielo | 26:5076b996d5a9 | 13 | |
cielo | 26:5076b996d5a9 | 14 | |
cielo | 25:7dad1f41744f | 15 | } |
cielo | 26:5076b996d5a9 | 16 | |
cielo | 25:7dad1f41744f | 17 |