![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Test program - based on blink program from MBED
main.cpp
- Committer:
- villemejane
- Date:
- 2021-12-05
- Revision:
- 0:10cc86071dd4
File content as of revision 0:10cc86071dd4:
/* * Programme de test * Auteur : J. VILLEMEJANE / Dec 2021 / IOGS * From : MBED Example / Blinky LED */ /* Déclaration des ressources externes */ #include "mbed.h" /* Déclaration des variables globales */ /* Déclaration des entrées/sorties */ DigitalOut myled(LED1); /* Fonction principale */ int main(){ /* Zone d'initialisation */ /* Boucle infinie */ while(1){ myled = 1; // LED is ON wait_us(200000); // 200 ms myled = 0; // LED is OFF wait_us(1000000); // 1 s } }