.pio/libdeps/m5stack-core2/M5Core2/src/utility/Sprite.cpp
void* TFT_eSprite::frameBuffer(int8_t f)
{
  if (!_created) return NULL;

  if (_bpp == 16) return _img;

  if (_bpp == 8) return _img8;

  if ( f == 2 ) _img8 = _img8_2;
  else          _img8 = _img8_1;

  return _img8;
}
// Frames are numbered 1 and 2
Frames are numbered 1 and 2
Frames are numbered 1 and 2
void* TFT_eSprite::frameBuffer(int8_t f)
{
  if (!_created) return NULL;
  if (_bpp == 16) return _img;
  if (_bpp == 8) return _img8;
  if ( f == 2 ) _img8 = _img8_2;
  else          _img8 = _img8_1;
  return _img8;
}
void * TFT_eSprite :: frameBuffer ( int8_t f ) { if ( ! _created ) return NULL ; if ( _bpp == 16 ) return _img ; if ( _bpp == 8 ) return _img8 ; if ( f == 2 ) _img8 = _img8_2 ; else _img8 = _img8_1 ; return _img8 ; }
Frames are numbered 1 and 2
Frames are numbered 1 and 2