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.
Diff: main.cpp
- Revision:
- 1:e7e627e1507b
- Parent:
- 0:6c7726a080ec
--- a/main.cpp Wed Sep 01 18:07:06 2021 +0000 +++ b/main.cpp Wed Sep 01 18:40:58 2021 +0000 @@ -1,5 +1,17 @@ -#include <mbed> +#include <mbed.h> +//-------------------------------- +//Erick Santiago Naranjo Rojas +//Tarea 2 DMIC +//-------------------------------- +DigitalOut led1(LED1); int main(void){ + while(1){ + led1 = 1; //Habilita pin del led(enciende led) + wait_us(500); //espera 500 milisegundos + led1 = 0; //Dehabilita el pin del led(apaga led) + wait_us(500); //espera 500 milisegundos + } + } - } \ No newline at end of file +//En \ No newline at end of file