X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/43b7092bd42d639a527b32dae4af87e37528ef57..46a985dc4e6c6a0cc1a943e58a06d160609f9f13:/project/commands/drawing/cmd_text.c?ds=sidebyside diff --git a/project/commands/drawing/cmd_text.c b/project/commands/drawing/cmd_text.c index 871d5e0..d25830f 100644 --- a/project/commands/drawing/cmd_text.c +++ b/project/commands/drawing/cmd_text.c @@ -44,15 +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" - - // Only include this w/UART since there isn't enough space otherwise! - #ifdef CFG_PRINTF_UART - #include "drivers/lcd/tft/fonts/dejavusansmono8.h" - #include "drivers/lcd/tft/fonts/dejavusansbold9.h" - #endif + #include "drivers/displays/tft/lcd.h" + #include "drivers/displays/tft/drawing.h" /**************************************************************************/ /*! @@ -61,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]; @@ -69,37 +62,39 @@ 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