/* Read the color of a specified pixel This function is added by onelife.  */
EMSTATUS DMD_readPixel(uint16_t x, uint16_t y, uint16_t *color)
/* Read the color of a specified pixel This function is added by onelife.  */
EMSTATUS DMD_readPixel(uint16_t x, uint16_t y, uint16_t *color)
{
   uint32_t statusCode;
   if (!initialized){
      return DMD_ERROR_DRIVER_NOT_INITIALIZED;
   }
   statusCode = setPixelAddress(x, y);
   if (statusCode != DMD_OK){
      return statusCode;
   }
   DMDIF_prepareDataAccess( );
   *color = DMDIF_readData() & 0x0000FFFF;
   return DMD_OK;
}