Various changes for smartlcd boards
[hackover2013-badge-firmware.git] / project / commands / drawing / cmd_pixel.c
index 9aeffb8..45a7432 100644 (file)
@@ -83,7 +83,8 @@ void cmd_getpixel(uint8_t argc, char **argv)
   getNumber (argv[0], &x);
   getNumber (argv[1], &y);
 
-  uint16_t value = lcdGetPixel(x, y);
+  // Get pixel and switch R and B
+  uint16_t value = drawBGR2RGB(lcdGetPixel(x, y));
 
   // Output the results
   printf("%d%s", value, CFG_PRINTF_NEWLINE);
This page took 0.044249 seconds and 4 git commands to generate.