/* Read a single color from the graphical memory. 
Use this function to read a color from the graphical memory of the controller. Limits have to be set prior to calling this function, e.g.:  */
hx8347a_color_t hx8347a_read_gram(void)
/* Read a single color from the graphical memory. 
Use this function to read a color from the graphical memory of the controller. Limits have to be set prior to calling this function, e.g.:  */
hx8347a_color_t hx8347a_read_gram(void)
{
	uint8_t red;
	uint8_t green;
	uint8_t blue;
	hx8347a_select_register(HX8347A_SRAMWRITE);
	hx8347a_select_chip();
	hx8347a_send_byte(HX8347A_START_READREG);
	red = hx8347a_read_byte();
	red = hx8347a_read_byte();
	green = hx8347a_read_byte();
	blue = hx8347a_read_byte();
	hx8347a_deselect_chip();
	return HX8347A_COLOR(red, green, blue);
}