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.
maClasseToggle.h
00001 #include "mbed.h" 00002 class maClasseToggle: public DigitalOut 00003 { 00004 public: 00005 maClasseToggle(void):DigitalOut(LED1){ 00006 statut = 0; 00007 } 00008 maClasseToggle(unsigned char s, PinName pin):DigitalOut(pin), statut(s) 00009 { 00010 00011 } 00012 void toggle(void){ 00013 if (statut == 0){ 00014 statut = 1; 00015 maClasseToggle::write(1); 00016 } 00017 else { 00018 statut = 0; 00019 maClasseToggle::write(0); 00020 } 00021 } 00022 unsigned char retourneStatut(void){ 00023 return statut; 00024 } 00025 private: 00026 unsigned char statut; 00027 };
Generated on Sat Jul 16 2022 21:11:33 by
1.7.2