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:e7e627e1507b, 2021-09-01 (annotated)
- Committer:
- erick_naranjo
- Date:
- Wed Sep 01 18:40:58 2021 +0000
- Revision:
- 1:e7e627e1507b
- Parent:
- 0:6c7726a080ec
Tarea2 DMIC
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
erick_naranjo | 1:e7e627e1507b | 1 | #include <mbed.h> |
erick_naranjo | 1:e7e627e1507b | 2 | //-------------------------------- |
erick_naranjo | 1:e7e627e1507b | 3 | //Erick Santiago Naranjo Rojas |
erick_naranjo | 1:e7e627e1507b | 4 | //Tarea 2 DMIC |
erick_naranjo | 1:e7e627e1507b | 5 | //-------------------------------- |
erick_naranjo | 1:e7e627e1507b | 6 | DigitalOut led1(LED1); |
erick_naranjo | 0:6c7726a080ec | 7 | |
erick_naranjo | 0:6c7726a080ec | 8 | int main(void){ |
erick_naranjo | 1:e7e627e1507b | 9 | while(1){ |
erick_naranjo | 1:e7e627e1507b | 10 | led1 = 1; //Habilita pin del led(enciende led) |
erick_naranjo | 1:e7e627e1507b | 11 | wait_us(500); //espera 500 milisegundos |
erick_naranjo | 1:e7e627e1507b | 12 | led1 = 0; //Dehabilita el pin del led(apaga led) |
erick_naranjo | 1:e7e627e1507b | 13 | wait_us(500); //espera 500 milisegundos |
erick_naranjo | 1:e7e627e1507b | 14 | } |
erick_naranjo | 1:e7e627e1507b | 15 | } |
erick_naranjo | 0:6c7726a080ec | 16 | |
erick_naranjo | 1:e7e627e1507b | 17 | //En |