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.
Dependencies: mbed
main.cpp
- Committer:
- Giamarchi
- Date:
- 2021-10-29
- Revision:
- 3:68cbdfc24b73
- Parent:
- 2:e5491a9a63e7
- Child:
- 4:47c8578603d3
File content as of revision 3:68cbdfc24b73:
//==============================================================================
// FabLab Nîmes
// Initiation à la Programmation
// Auteur : Frédéric Giamarchi
// Date : 28 oct 2021
// TP 01 : Controle d'une DEL
//==============================================================================
#include "mbed.h"
// Déclaration des broches
DigitalOut DEL_VE(LED1); // Ligne PB_3 sur la carte Nucléo
//==============================================================================
// Début du Programme
int main()
{
//==============================================================================
// Boucle Infinie
while(1)
{
DEL_VE = 1;
wait_ms(100);
DEL_VE = 0;
wait_ms(900);
} // Fin du while(1)
//==============================================================================
} // Fin du Programme
//==============================================================================