
TD
exercice1.cpp
- Committer:
- jomfec
- Date:
- 2016-05-02
- Revision:
- 0:e54fcd358582
File content as of revision 0:e54fcd358582:
/* #include "mbed.h" Timer timer1; // définition du timer DigitalOut sortie1(p5); void tache1(void); // prototype de tache1 int main() { timer1.start(); // déclenchement du timer while(1) { if (timer1.read_ms()>=200)// { tache1(); // appel de la fonction tache1 timer1.reset(); // remise à zéro du timer } } } void tache1(){ // fonction sortie1.write(!(sortie1.read())); // inversion } */