my library for elec350

Dependencies:   mbed

Committer:
spanesar
Date:
Wed Oct 19 20:33:20 2016 +0000
Revision:
3:d62097c19a4e
added microphone files;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
spanesar 3:d62097c19a4e 1 #ifndef _BUTTON_H_
spanesar 3:d62097c19a4e 2 #define _BUTTON_H_
spanesar 3:d62097c19a4e 3 #include "mbed.h"
spanesar 3:d62097c19a4e 4
spanesar 3:d62097c19a4e 5 class button {
spanesar 3:d62097c19a4e 6
spanesar 3:d62097c19a4e 7 private:
spanesar 3:d62097c19a4e 8 DigitalIn pin;
spanesar 3:d62097c19a4e 9
spanesar 3:d62097c19a4e 10 public:
spanesar 3:d62097c19a4e 11 Button(PinName pinName);
spanesar 3:d62097c19a4e 12 bool isPressed();
spanesar 3:d62097c19a4e 13 };
spanesar 3:d62097c19a4e 14 #endif