libs/epaper/src/epaper.c
/**
 *  @brief: set the look-up table register
 */
@brief: set the look-up table register
@brief : set the look - up table register
void mgos_epd_set_lut(enum epaper_update_type_t lut_type)
{
	uint8_t *p;
	_lut = lut_type;
	if (lut_type > PARTIAL_UPDATE) {
		LOG(LL_ERROR, ("Invalid LUT type %d", lut_type));
		return;
	}
	p=(uint8_t *)&lut[lut_type];
	mgos_epd_send_command(WRITE_LUT_REGISTER);
	mgos_epd_send_data_n(p, sizeof(lut_data_t));
}
void mgos_epd_set_lut ( enum epaper_update_type_t lut_type ) { uint8_t * p ; _lut = lut_type ; if ( lut_type > PARTIAL_UPDATE ) { LOG ( LL_ERROR , ( " " , lut_type ) ) ; return ; } p = ( uint8_t * ) & lut [ lut_type ] ; mgos_epd_send_command ( WRITE_LUT_REGISTER ) ; mgos_epd_send_data_n ( p , sizeof ( lut_data_t ) ) ; }
@brief: set the look-up table register
@brief : set the look - up table register
/* the length of look-up table is 30 bytes */