m5stack / M5Unified

Unified library for M5Stack series
MIT License
301 stars 54 forks source link

M5Unified - sprite doesn't work #47

Closed ftensi closed 9 months ago

ftensi commented 1 year ago

Hi, if I use the sprite class, I get this error: C:\Users\ftens\Sviluppo SW\Arduino\M5Stack-core2_display\Sprite_drawPixel\Sprite_drawPixel.ino:39:1: error: 'TFT_eSprite' does not name a type TFT_eSprite spr = TFT_eSprite(&M5.Lcd);

If I use the M5Core.h library it works..

lovyan03 commented 1 year ago

hello @ftensi Please use M5Canvas instead of TFT_eSprite.

M5Unifide does not use TFT_eSPI and uses M5GFX for drawing. For this reason, some functions and names are not compatible.