Line buffer mode. sammple code with MIP8F_SPI_Ver40

Dependencies:   MIP8F_SPI_Ver40 mbed

Dependents:   MIP8f_FRDM_TransferMode_sample MIP8f_FRDM_Animation_sample

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TglSW.h Source File

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