components/core2forAWS/sk6812/sk6812.c
void np_set_pixel_color(pixel_settings_t *px, uint16_t idx, uint32_t color) {
	uint16_t ofs = idx * (px->nbits / 8);
	px->pixels[ofs] = offset_color(px->color_order[0], color);
	px->pixels[ofs+1] = offset_color(px->color_order[1], color);
	px->pixels[ofs+2] = offset_color(px->color_order[2], color);
	if (px->nbits == 32) px->pixels[ofs+3] = offset_color(px->color_order[3], color);
}
// Set pixel color at buffer position from RGB color value
//=========================================================================
Set pixel color at buffer position from RGB color value
Set pixel color at buffer position from RGB color value
void np_set_pixel_color(pixel_settings_t *px, uint16_t idx, uint32_t color) {
	uint16_t ofs = idx * (px->nbits / 8);
	px->pixels[ofs] = offset_color(px->color_order[0], color);
	px->pixels[ofs+1] = offset_color(px->color_order[1], color);
	px->pixels[ofs+2] = offset_color(px->color_order[2], color);
	if (px->nbits == 32) px->pixels[ofs+3] = offset_color(px->color_order[3], color);
}
void np_set_pixel_color ( pixel_settings_t * px , uint16_t idx , uint32_t color ) { uint16_t ofs = idx * ( px -> nbits / 8 ) ; px -> pixels [ ofs ] = offset_color ( px -> color_order [ 0 ] , color ) ; px -> pixels [ ofs + 1 ] = offset_color ( px -> color_order [ 1 ] , color ) ; px -> pixels [ ofs + 2 ] = offset_color ( px -> color_order [ 2 ] , color ) ; if ( px -> nbits == 32 ) px -> pixels [ ofs + 3 ] = offset_color ( px -> color_order [ 3 ] , color ) ; }
Set pixel color at buffer position from RGB color value
Set pixel color at buffer position from RGB color value