meganetaaan / m5stack-avatar

An M5Stack library for rendering avatar faces
MIT License
171 stars 29 forks source link

Work with M5StickC #59

Open meganetaaan opened 5 years ago

ltaoist commented 1 year ago

Any news?

mongonta0716 commented 1 year ago

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
}
ltaoist commented 1 year ago

Vvvvv!

Thanks I will run it