Class Implementation of Some sensors

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PushButton.h Source File

PushButton.h

00001 #ifndef PushButton_H
00002 #define PushButton_H
00003 
00004 #include "mbed.h"
00005 
00006 class PushButton {
00007 
00008 public:
00009     PushButton (PinName targetPushButton); // Constructor 
00010     ~PushButton (); // Destructor
00011   
00012   private:   
00013     bool ON_OFF;
00014     DigitalIn    myPushButton; 
00015     
00016   public: 
00017     bool ReadPushButtonStatus ();
00018     
00019       
00020        
00021 };
00022   
00023 #endif