#include "project/commands.h" // Generic helper functions
#ifdef CFG_TFTLCD
- #include "drivers/lcd/tft/lcd.h"
- #include "drivers/lcd/tft/drawing.h"
+ #include "drivers/displays/tft/lcd.h"
+ #include "drivers/displays/tft/drawing.h"
/**************************************************************************/
/*!
getNumber (argv[0], &x);
getNumber (argv[1], &y);
- uint16_t value = lcdGetPixel(x, y);
+ // Get pixel and switch R and B
+ uint16_t value = colorsBGR2RGB(lcdGetPixel(x, y));
// Output the results
- printf("%d%s", value, CFG_PRINTF_NEWLINE);
+ printf("0x%04X%s", value, CFG_PRINTF_NEWLINE);
}
#endif