my library for elec350
Button.h
- Committer:
- spanesar
- Date:
- 2016-10-19
- Revision:
- 3:d62097c19a4e
File content as of revision 3:d62097c19a4e:
#ifndef _BUTTON_H_
#define _BUTTON_H_
#include "mbed.h"
class button {
private:
DigitalIn pin;
public:
Button(PinName pinName);
bool isPressed();
};
#endif