a
Dependents: 3servotest 1stcomp 3rdcompfixstart 2ndcomp ... more
Fork of button by
Diff: button.cpp
- Revision:
- 4:4202cede988e
- Parent:
- 3:cdeb282335a6
--- a/button.cpp Fri Sep 16 08:50:15 2016 +0000 +++ b/button.cpp Sat Sep 17 23:21:13 2016 +0000 @@ -15,7 +15,6 @@ DigitalOut teamledred(PC_12); -Serial pc3(SERIAL_TX, SERIAL_RX); int phaseSW(void){ phase1.mode(PullUp); @@ -24,7 +23,7 @@ phase8.mode(PullUp); int SW=phase1+2*phase2+4*phase4+8*phase8; - pc3.printf("%d\n\r",SW); + return SW; }