![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Fixed wait time
Dependencies: SDFileSystem emic2 mbed-rtos mbed
Fork of BAT_senior_design_Nhi 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); + } +}