
Working read code with mode button
Dependencies: SDFileSystem emic2 mbed-rtos mbed
Fork of BAT_senior_design_Testnew by
Diff: button.cpp
- Revision:
- 29:b2e53ce54b3e
- Parent:
- 25:23970cf718ee
- Child:
- 34: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); + } +}