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.
main.cpp
00001 //code dérivé du code présenté dans le document 2018-01 247-436 D-0015 M2-S4-TH (powerpoint) 00002 #include "mbed.h" 00003 #include "maClasseToggle.h" 00004 int main() { 00005 uint16_t retour; 00006 maClasseToggle monObjetToggle1; 00007 maClasseToggle monObjetToggle2(1, LED1); 00008 printf("initialisation\n"); 00009 retour = monObjetToggle1.retourneStatut(); 00010 printf("statut 1: %d\n", retour); 00011 retour = monObjetToggle2.retourneStatut(); 00012 printf("statut 2: %d\n", retour); 00013 while(1) { 00014 monObjetToggle1.toggle(); 00015 retour = monObjetToggle1.retourneStatut(); 00016 printf("statut 1: %d\n", retour); 00017 wait(1); 00018 } 00019 }
Generated on Sat Jul 16 2022 21:11:33 by
1.7.2