upload image to M5stack problem



  • Im using M5stack basic development kit.
    im trying to upload image into it using M5.lcd.drawBitmap() but it looks like images are pixelised.

    anyone can help me?

    this is the code:

    #include <M5Stack.h>

    #define img duke
    #define pic extern unsigned char
    pic img [];

    void setup() {

    M5.begin();
    M5.Lcd.drawBitmap(0,0,320,240, (uint16_t*) img);
    }

    void loop() {
    // put your main code here, to run repeatedly:

    }

    Picture;

    0_1568687327564_lp.JPG