m5stack-avatar icon indicating copy to clipboard operation
m5stack-avatar copied to clipboard

Work with M5StickC

Open meganetaaan opened this issue 5 years ago • 3 comments

meganetaaan avatar Jun 11 '19 04:06 meganetaaan

Any news?

ltaoist avatar Dec 18 '22 04:12 ltaoist

M5Stack-Avatar is M5Unified as of v0.8.0 and will work if you adjust the scale and position. The following source is for M5StickCPlus.

#include <M5Unified.h>
#include <Avatar.h>

using namespace m5avatar;

Avatar avatar;

void setup()
{
  M5.begin();
  M5.Lcd.setRotation(3);
  avatar.setScale(0.6);
  avatar.setPosition(0, 20);
  avatar.init(); // start drawing
}

void loop()
{
  // avatar's face updates in another thread
  // so no need to loop-by-loop rendering
}

mongonta0716 avatar Dec 18 '22 06:12 mongonta0716

Vvvvv!

Thanks I will run it

ltaoist avatar Dec 18 '22 09:12 ltaoist