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.
Fork of MIP8f_FRDM_sample by
TglSW.h
00001 /* mbed TglSW Library without using PWM pins 00002 00003 00004 */ 00005 #include "mbed.h" 00006 00007 class TglSW { 00008 00009 public: 00010 TglSW (PinName SWPin); 00011 00012 void Enable(int NoiseCancel); 00013 bool State(void); 00014 void Clear(void); 00015 00016 protected: 00017 bool _IfPless; 00018 void _SeekPress(void); 00019 00020 DigitalIn _SW; 00021 int _REPEAT; 00022 bool _preSW; 00023 int _PressCount; 00024 Ticker _PlessCounter; 00025 00026 }; 00027 00028
Generated on Wed Jul 13 2022 02:52:47 by
1.7.2
