Bayley Wang / Mbed 2 deprecated dc_motor_control

Dependencies:   mbed FastPWM3

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cmd_sys.cpp Source File

cmd_sys.cpp

00001 #include "mbed.h"
00002 #include "CommandProcessor.h"
00003 
00004 void cmd_clear(Serial *pc) {
00005     pc->printf("\e[1;1H\e[2J");
00006 }
00007 
00008 void cmd_help(Serial *pc) {
00009     pc->printf("%s\n", "setp <float>: set a duty cycle between 0.0 and 1.0");
00010     pc->printf("%s\n", "freq <float>: set a frequency between 500.0Hz and 10000.0Hz");
00011 }