Animation demo with MIP8F_SPI_Ver60

Dependencies:   mbed MIP8F_SPI_Ver60 MIP8f_FRDM_LineBuffer_sample MIP8f_FRDM_TransferMode_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