X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/9d18e10afb2439a6a9ba6978a799259746a837b7..4292be14c78b8f30075c9e4837dd026f6fec532e:/project/cmd_tbl.h?ds=sidebyside diff --git a/project/cmd_tbl.h b/project/cmd_tbl.h index e516834..83d3880 100644 --- a/project/cmd_tbl.h +++ b/project/cmd_tbl.h @@ -48,21 +48,25 @@ // Function prototypes for the command table void cmd_help(uint8_t argc, char **argv); // handled by core/cmd/cmd.c void cmd_sysinfo(uint8_t argc, char **argv); +void cmd_reset(uint8_t argc, char **argv); #ifdef CFG_TFTLCD +void cmd_backlight(uint8_t argc, char **argv); void cmd_button(uint8_t argc, char **argv); void cmd_circle(uint8_t argc, char **argv); void cmd_clear(uint8_t argc, char **argv); void cmd_line(uint8_t argc, char **argv); void cmd_rectangle(uint8_t argc, char **argv); +void cmd_rectangleround(uint8_t argc, char **argv); void cmd_pixel(uint8_t argc, char **argv); void cmd_progress(uint8_t argc, char **argv); void cmd_getpixel(uint8_t argc, char **argv); -void cmd_gettext(uint8_t argc, char **argv); void cmd_calibrate(uint8_t argc, char **argv); void cmd_orientation(uint8_t argc, char **argv); +void cmd_roundedcorner(uint8_t argc, char **argv); void cmd_text(uint8_t argc, char **argv); void cmd_textw(uint8_t argc, char **argv); +void cmd_triangle(uint8_t argc, char **argv); void cmd_tsthreshhold(uint8_t argc, char **argv); void cmd_tswait(uint8_t argc, char **argv); #ifdef CFG_SDCARD @@ -89,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" /**************************************************************************/ @@ -105,6 +113,7 @@ cmd_t cmd_tbl[] = // command name, min args, max args, hidden, function name, command description, syntax { "?", 0, 0, 0, cmd_help , "Help" , CMD_NOPARAMS }, { "V", 0, 0, 0, cmd_sysinfo , "System Info" , CMD_NOPARAMS }, + { "Z", 0, 0, 0, cmd_reset , "Reset" , CMD_NOPARAMS }, #ifdef CFG_I2CEEPROM { "e", 1, 1, 0, cmd_i2ceeprom_read , "EEPROM Read" , "'e '" }, @@ -113,22 +122,25 @@ cmd_t cmd_tbl[] = #endif #ifdef CFG_TFTLCD - { "b", 7, 99, 0, cmd_button , "Button" , "'b []'" }, + { "b", 5, 99, 0, cmd_button , "Button" , "'b []'" }, #ifdef CFG_SDCARD { "B", 3, 3, 0, cmd_bmp , "Bitmap (SD Card)" , "'B '" }, #endif { "c", 4, 6, 0, cmd_circle , "Circle" , "'c [ ]'" }, { "C", 0, 0, 0, cmd_calibrate , "Calibrate Touch Screen" , CMD_NOPARAMS }, { "F", 0, 1, 0, cmd_clear , "Fill" , "'F []'" }, + { "g", 2, 2, 0, cmd_getpixel , "Get Pixel" , "'g '" }, { "l", 5, 7, 0, cmd_line , "Line" , "'l [ ]'" }, + { "L", 1, 1, 0, cmd_backlight , "Backlight" , "'L <0|1>'" }, + { "n", 5, 5, 0, cmd_roundedcorner , "Rounded Corner" , "'n '" }, { "o", 0, 1, 0, cmd_orientation , "LCD Orientation" , "'o [<0|1>]'" }, { "p", 3, 3, 0, cmd_pixel , "Draw Pixel" , "'p '" }, - { "P", 9, 9, 0, cmd_progress , "Progress Bar" , "'P <%> '" }, + { "P", 6, 6, 0, cmd_progress , "Progress Bar" , "'P <%> '" }, { "r", 5, 7, 0, cmd_rectangle , "Rectangle" , "'r [ ]'" }, - { "R", 2, 2, 0, cmd_getpixel , "Read Pixel" , "'R '" }, + { "R", 7, 9, 0, cmd_rectangleround , "Rounded Rectangle" , "'R [ ]'" }, { "s", 2, 99, 0, cmd_textw , "Text Width" , "'s '" }, - { "t", 5, 99, 0, cmd_text , "Text" , "'t '" }, - { "T", 0, 0, 0, cmd_gettext , "Text Dialogue" , CMD_NOPARAMS }, + { "t", 6, 99, 0, cmd_text , "Text" , "'t '" }, + { "v", 7, 8, 0, cmd_triangle , "Triangle" , "'v []'" }, { "W", 0, 1, 0, cmd_tswait , "Wait for Touch" , "'W []'" }, { "x", 0, 1, 0, cmd_tsthreshhold , "Touch Threshold" , "'x [<0..254>]'" }, #endif @@ -145,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