Working read code with mode button

Dependencies:   SDFileSystem emic2 mbed-rtos mbed

Fork of BAT_senior_design_Testnew by BAT

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

Who changed what in which revision?

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