Bayley Wang
/
dc_motor_control
bad dc motor controller with current mode
Diff: CommandProcessor/cmd_sys.cpp
- Revision:
- 0:2b1edabdd26b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CommandProcessor/cmd_sys.cpp Sun Feb 03 03:38:05 2019 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" +#include "CommandProcessor.h" + +void cmd_clear(Serial *pc) { + pc->printf("\e[1;1H\e[2J"); +} + +void cmd_help(Serial *pc) { + pc->printf("%s\n", "setp <float>: set a duty cycle between 0.0 and 1.0"); + pc->printf("%s\n", "freq <float>: set a frequency between 500.0Hz and 10000.0Hz"); +} \ No newline at end of file