/* Gets the value (1 or 0) of the specified pixel from the buffer.  */
uint8_t sharpmemGetPixel(uint16_t x, uint16_t y)
/* Gets the value (1 or 0) of the specified pixel from the buffer.  */
uint8_t sharpmemGetPixel(uint16_t x, uint16_t y)
{
  if ((x >=SHARPMEM_LCDWIDTH) || (y >=SHARPMEM_LCDHEIGHT)) return 0;
  return _sharpmembuffer[(y*SHARPMEM_LCDWIDTH + x) /8] & (1 << x % 8) ? 1 : 0;
}