Test fork nhi

Dependencies:   SDFileSystem mbed-rtos mbed emic2

Fork of BAT_senior_design by BAT

Committer:
aismail1997
Date:
Mon Oct 16 15:45:17 2017 +0000
Revision:
10:21268d8bf979
Child:
13:b80dde24e9bc
moved button code to a separate class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
aismail1997 10:21268d8bf979 1 #include "mbed.h"
aismail1997 10:21268d8bf979 2
aismail1997 10:21268d8bf979 3 class button {
aismail1997 10:21268d8bf979 4
aismail1997 10:21268d8bf979 5 private:
aismail1997 10:21268d8bf979 6 PwmOut servo;
aismail1997 10:21268d8bf979 7 DigitalIn pb;
aismail1997 10:21268d8bf979 8 int state;
aismail1997 10:21268d8bf979 9
aismail1997 10:21268d8bf979 10 public:
aismail1997 10:21268d8bf979 11 // constructors
aismail1997 10:21268d8bf979 12 button();
aismail1997 10:21268d8bf979 13 button(PwmOut servo, DigitalIn pb);
aismail1997 10:21268d8bf979 14 // functions
aismail1997 10:21268d8bf979 15 PwmOut getServoPin();
aismail1997 10:21268d8bf979 16 int getState();
aismail1997 10:21268d8bf979 17 void moveServoIn();
aismail1997 10:21268d8bf979 18 void moveServoOut();
aismail1997 10:21268d8bf979 19 };