Test fork nhi
Dependencies: SDFileSystem mbed-rtos mbed emic2
Fork of BAT_senior_design by
Diff: button.cpp
- Revision:
- 27:b2e53ce54b3e
- Parent:
- 23:23970cf718ee
- Child:
- 32:e87bb6e83072
--- a/button.cpp Fri Nov 10 15:59:21 2017 +0000
+++ b/button.cpp Fri Nov 10 16:22:04 2017 +0000
@@ -122,3 +122,9 @@
return state;
}
+void button::setup() {
+ for(int i=0; i<=3; i++) {
+ servo = i/100.0;
+ wait(0.01);
+ }
+}
