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 #include "mbed.h" 00002 //on vous demande de créer: 00003 //1) la classe maClasseLED 00004 //2) le constructeur de la classe 00005 //3) la méthode publique "toggle" pour 00006 // faire changer l'état de la DEL 00007 //4) une methode de type "getter" pour 00008 // récupérer l'état de la DEL 00009 DigitalOut myled(LED1); 00010 int main() { 00011 uint16_t statut; 00012 00013 printf("initialisation\n"); 00014 00015 while(1) { 00016 myled = !myled; 00017 00018 statut = myled; 00019 printf("statut: %d\n", statut); 00020 wait(1); 00021 } 00022 }
Generated on Thu Jul 14 2022 02:46:16 by
1.7.2