/* Copy pixels from progmem to the screen. 
This function can be used to copy data from program memory (flash) to the display. Limits have to be set prior to calling this function, e.g.:  */
void hx8347a_copy_progmem_pixels_to_screen(hx8347a_color_t PROGMEM_PTR_T pixels, uint32_t count)
/* Copy pixels from progmem to the screen. 
This function can be used to copy data from program memory (flash) to the display. Limits have to be set prior to calling this function, e.g.:  */
void hx8347a_copy_progmem_pixels_to_screen(hx8347a_color_t PROGMEM_PTR_T pixels, uint32_t count)
{
	uint32_t byte_count;
	uint8_t PROGMEM_PTR_T byte_ptr = (uint8_t PROGMEM_PTR_T)pixels;
	Assert(count > 0);
	hx8347a_select_register(HX8347A_SRAMWRITE);
	hx8347a_select_chip();
	hx8347a_send_byte(HX8347A_START_WRITEREG);
	byte_count = count * sizeof(hx8347a_color_t);
	while (byte_count > 0) {
		hx8347a_send_byte(PROGMEM_READ_BYTE(byte_ptr));
		byte_count--;
		byte_ptr++;
	}
	hx8347a_deselect_chip();
}