Class Implementation of Some sensors
Embed:
(wiki syntax)
Show/hide line numbers
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
Generated on Thu Jul 21 2022 03:58:53 by
1.7.2