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:
- cauvinf
- Date:
- 2020-09-08
- Revision:
- 31:f5fbe3be117d
- Parent:
- 30:425970eb469b
File content as of revision 31:f5fbe3be117d:
#include "mbed.h" // Ajout de la librairie "mbed.h" DigitalOut Led_verte(D2); DigitalOut Led_rouge(LED1); DigitalIn BP2(D3); DigitalIn BP3(PTA4); int main() { // fonction principale while(1) { // boucle pendant 1 if (BP2 == 1) // si le BP2 est appuyé { Led_verte = 1; // on eteint la led bleue } else // else { Led_verte = 0; // on allume la led bleue } } // fin boucle infinie } // fin programme.