X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/2c73edfac33b11a7bca0ff5d2118458101432bde..e0c57a168922052cca4853cf4995677e3270957a:/project/commands/drawing/cmd_text.c diff --git a/project/commands/drawing/cmd_text.c b/project/commands/drawing/cmd_text.c index ad669d0..d25830f 100644 --- a/project/commands/drawing/cmd_text.c +++ b/project/commands/drawing/cmd_text.c @@ -46,13 +46,6 @@ #ifdef CFG_TFTLCD #include "drivers/displays/tft/lcd.h" #include "drivers/displays/tft/drawing.h" - #include "drivers/displays/tft/fonts/dejavusans9.h" - - // Only include this w/UART since there isn't enough space otherwise! - #ifdef CFG_PRINTF_UART - #include "drivers/displays/tft/fonts/dejavusansmono8.h" - #include "drivers/displays/tft/fonts/dejavusansbold9.h" - #endif /**************************************************************************/ /*! @@ -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