Class Implementation of Some sensors

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PushButton.cpp Source File

PushButton.cpp

00001 #include "PushButton.h"
00002 
00003 PushButton::PushButton (PinName targetPushButton) : myPushButton (DigitalIn (targetPushButton)) 
00004 {
00005 }
00006 
00007 PushButton::~PushButton (){
00008 }
00009 
00010 bool PushButton::ReadPushButtonStatus (){
00011 
00012     ON_OFF = myPushButton;  
00013     return ON_OFF;
00014 }
00015