/* Copy pixels from SRAM to the screen. 
Used to copy a large quantitative of data to the screen in one go. Limits have to be set prior to calling this function, e.g.:  */
void hx8347a_copy_pixels_to_screen(const hx8347a_color_t *pixels, uint32_t count)
/* Copy pixels from SRAM to the screen. 
Used to copy a large quantitative of data to the screen in one go. Limits have to be set prior to calling this function, e.g.:  */
void hx8347a_copy_pixels_to_screen(const hx8347a_color_t *pixels, uint32_t count)
{
	uint32_t byte_count;
	Assert(count > 0);
	hx8347a_select_register(HX8347A_SRAMWRITE);
	hx8347a_select_chip();
	hx8347a_send_byte(HX8347A_START_WRITEREG);
	byte_count = count * sizeof(hx8347a_color_t);
	hx8347a_write_packet((uint8_t *)pixels, byte_count);
	hx8347a_deselect_chip();
}