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