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