Shao Rui
/
AGV
1
Diff: brake/brake.cpp
- Revision:
- 0:571a1835428e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/brake/brake.cpp Mon Jan 25 08:36:48 2021 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" +#include "struct.h" +#include "brake.h" + + +void Init_Brake(GPIOStruct *gpio) +{ + gpio->brake=new DigitalOut(BRAKE); + gpio->indicate=new DigitalIn(INDICATE); + } + \ No newline at end of file