src_legacy/2018/src/selftest/SelftestHelper.cpp
// generate an image with max size
generate an image with max size
generate an image with max size
void SelftestHelper::sendImage() {
  	_sendToDispatch({HEAD_SCENE,  N_SCENES-1,  0,  0,  0,  0});
	for (uint8_t i=0; i<N_FRAMES; i++) {
		rgbVal c = _getTestPixelColor(i);
		uint8_t idx = _getTestPixelIndex(i);
		_sendToDispatch({idx,  i,  0,  c.r,  c.g,  c.b});
	}
	_sendToDispatch({TAIL_SCENE,  0,  0,  0,  0,  0});
	_sendToDispatch({SAVE_SCENE,  0,  0,  0,  0,  0});
}
void SelftestHelper :: sendImage ( ) { _sendToDispatch ( { HEAD_SCENE , N_SCENES - 1 , 0 , 0 , 0 , 0 } ) ; for ( uint8_t i = 0 ; i < N_FRAMES ; i ++ ) { rgbVal c = _getTestPixelColor ( i ) ; uint8_t idx = _getTestPixelIndex ( i ) ; _sendToDispatch ( { idx , i , 0 , c . r , c . g , c . b } ) ; } _sendToDispatch ( { TAIL_SCENE , 0 , 0 , 0 , 0 , 0 } ) ; _sendToDispatch ( { SAVE_SCENE , 0 , 0 , 0 , 0 , 0 } ) ; }
generate an image with max size
generate an image with max size