JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

Committer:
GGHHHH
Date:
Thu Nov 12 12:50:04 2015 +0000
Revision:
11:e6ddabe64bee
Parent:
2:9a0770c4fdd6
Child:
12:1ea09ec4bde1
5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GGHHHH 2:9a0770c4fdd6 1 #ifndef _BUTTON_H_
GGHHHH 2:9a0770c4fdd6 2 #define _BUTTON_H_
GGHHHH 2:9a0770c4fdd6 3
GGHHHH 2:9a0770c4fdd6 4 #include "mbed.h"
GGHHHH 2:9a0770c4fdd6 5 #include <string>
GGHHHH 2:9a0770c4fdd6 6
GGHHHH 2:9a0770c4fdd6 7 class Button {
GGHHHH 2:9a0770c4fdd6 8 private:
GGHHHH 2:9a0770c4fdd6 9
GGHHHH 2:9a0770c4fdd6 10 DigitalIn* pin;
GGHHHH 2:9a0770c4fdd6 11 public:
GGHHHH 2:9a0770c4fdd6 12 Button(string name);
GGHHHH 2:9a0770c4fdd6 13 bool isPressed();
GGHHHH 11:e6ddabe64bee 14 float getPulse();
GGHHHH 2:9a0770c4fdd6 15 };
GGHHHH 2:9a0770c4fdd6 16
GGHHHH 2:9a0770c4fdd6 17 #endif