src_legacy/2018/src/ledpoi_utils.cpp
// shifts values from a position to one higher position ending at position shiftRegisterLength
// if cyclic is true, then value at shiftRegisterLength is shifted back to position 0
shifts values from a position to one higher position ending at position shiftRegisterLength
if cyclic is true, then value at shiftRegisterLength is shifted back to position 0
shifts values from a position to one higher position ending at position shiftRegisterLength if cyclic is true then value at shiftRegisterLength is shifted back to position 0
void shiftPixelframe(PixelFrame *pFrame, uint8_t shiftRegisterLength, bool cyclic) {
  rgbVal valLast = cyclic ? pFrame->pixel[shiftRegisterLength-1] : makeRGBValue(BLACK, 0);
  for (int j=shiftRegisterLength-1; j>0; j--){
    pFrame->pixel[j] = pFrame->pixel[j-1];
  }
  pFrame->pixel[0] = valLast;
}
void shiftPixelframe ( PixelFrame * pFrame , uint8_t shiftRegisterLength , bool cyclic ) { rgbVal valLast = cyclic ? pFrame -> pixel [ shiftRegisterLength - 1 ] : makeRGBValue ( BLACK , 0 ) ; for ( int j = shiftRegisterLength - 1 ; j > 0 ; j -- ) { pFrame -> pixel [ j ] = pFrame -> pixel [ j - 1 ] ; } pFrame -> pixel [ 0 ] = valLast ; }
shifts values from a position to one higher position ending at position shiftRegisterLength
if cyclic is true, then value at shiftRegisterLength is shifted back to position 0
shifts values from a position to one higher position ending at position shiftRegisterLength if cyclic is true then value at shiftRegisterLength is shifted back to position 0