X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/9d18e10afb2439a6a9ba6978a799259746a837b7..b5e1d01dc3ef67418901a4d43b5f78c879663a9d:/project/commands/drawing/cmd_text.c diff --git a/project/commands/drawing/cmd_text.c b/project/commands/drawing/cmd_text.c index ac3bc7c..d25830f 100644 --- a/project/commands/drawing/cmd_text.c +++ b/project/commands/drawing/cmd_text.c @@ -44,9 +44,8 @@ #include "project/commands.h" // Generic helper functions #ifdef CFG_TFTLCD - #include "drivers/lcd/tft/lcd.h" - #include "drivers/lcd/tft/drawing.h" - #include "drivers/lcd/tft/fonts/dejavusans9.h" + #include "drivers/displays/tft/lcd.h" + #include "drivers/displays/tft/drawing.h" /**************************************************************************/ /*! @@ -55,7 +54,7 @@ /**************************************************************************/ void cmd_text(uint8_t argc, char **argv) { - int32_t x, y, color; + int32_t x, y, bgcolor, fontcolor; int32_t font; uint8_t i, len; char *data_ptr, data[80]; @@ -63,22 +62,40 @@ void cmd_text(uint8_t argc, char **argv) // Convert supplied parameters getNumber (argv[0], &x); getNumber (argv[1], &y); - getNumber (argv[2], &color); - getNumber (argv[3], &font); + getNumber (argv[2], &bgcolor); + getNumber (argv[3], &fontcolor); + getNumber (argv[4], &font); // Get message contents data_ptr = data; - for (i=0; i