X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/3a4d8a99f885909119362e3b9b9b587315d74ad7..5337261a68ea89b88624ca6fd7319cadd662e057:/project/cmd_tbl.h?ds=inline diff --git a/project/cmd_tbl.h b/project/cmd_tbl.h index c305d07..83d3880 100644 --- a/project/cmd_tbl.h +++ b/project/cmd_tbl.h @@ -93,6 +93,10 @@ void cmd_lm75b_gettemp(uint8_t argc, char **argv); void cmd_sd_dir(uint8_t argc, char **argv); #endif +#ifdef CFG_PWM +void cmd_pwm(uint8_t argc, char **argv); +#endif + #define CMD_NOPARAMS "This command has no parameters" /**************************************************************************/ @@ -133,7 +137,7 @@ cmd_t cmd_tbl[] = { "p", 3, 3, 0, cmd_pixel , "Draw Pixel" , "'p '" }, { "P", 6, 6, 0, cmd_progress , "Progress Bar" , "'P <%> '" }, { "r", 5, 7, 0, cmd_rectangle , "Rectangle" , "'r [ ]'" }, - { "R", 7, 7, 0, cmd_rectangleround , "Rounded Rectangle" , "'R '" }, + { "R", 7, 9, 0, cmd_rectangleround , "Rounded Rectangle" , "'R [ ]'" }, { "s", 2, 99, 0, cmd_textw , "Text Width" , "'s '" }, { "t", 6, 99, 0, cmd_text , "Text" , "'t '" }, { "v", 7, 8, 0, cmd_triangle , "Triangle" , "'v []'" }, @@ -153,6 +157,10 @@ cmd_t cmd_tbl[] = #ifdef CFG_SDCARD { "d", 0, 1, 0, cmd_sd_dir , "Dir (SD Card)" , "'d []'" }, #endif + + #ifdef CFG_PWM + { "M", 2, 2, 0, cmd_pwm , "PWM Control" , "'M [] []'" }, + #endif }; #endif \ No newline at end of file