libs/epaper/src/epaper.c
/**
 *  @brief: private function to specify the start point for data R/W
 */
@brief: private function to specify the start point for data R/W
@brief : private function to specify the start point for data R / W
void mgos_epd_set_memory_pointer(const int x, const int y)
{
	mgos_epd_send_command(SET_RAM_X_ADDRESS_COUNTER);
	mgos_epd_send_data((x >> 3) & 0xFF);
	mgos_epd_send_command(SET_RAM_Y_ADDRESS_COUNTER);
	mgos_epd_send_data(y & 0xFF);
	mgos_epd_send_data((y >> 8) & 0xFF);
	mgos_epd_wait_idle();
}
void mgos_epd_set_memory_pointer ( const int x , const int y ) { mgos_epd_send_command ( SET_RAM_X_ADDRESS_COUNTER ) ; mgos_epd_send_data ( ( x >> 3 ) & 0xFF ) ; mgos_epd_send_command ( SET_RAM_Y_ADDRESS_COUNTER ) ; mgos_epd_send_data ( y & 0xFF ) ; mgos_epd_send_data ( ( y >> 8 ) & 0xFF ) ; mgos_epd_wait_idle ( ) ; }
@brief: private function to specify the start point for data R/W
@brief : private function to specify the start point for data R / W
/* x point must be the multiple of 8 or the last 3 bits will be ignored */