M5Paper Canvas not working in Arduino IDE



  • Yesterday I received the M5Paper.
    Nice device, with a handy size.
    The tests on the M5Paper thought it right. But some examples in the Arduino IDE turn out not to work. After execution and loading, the screen remains blank.
    I hope these Arduino written programs have been tested before they are published!

    Even a simple program turns out not to work, which I have included.

    #include <M5EPD.h>
    #include "binaryttf.h"
    
    M5EPD_Canvas canvas(&M5.EPD);
    
    void setup()
    {
        M5.begin();
        M5.EPD.SetRotation(0);
        M5.TP.SetRotation(0);
        M5.EPD.Clear(true);
        
        canvas.loadFont(binaryttf, sizeof(binaryttf));
        canvas.createCanvas(540, 960);
        canvas.setTextSize(48);
        canvas.drawString("4567", 0 , 0);
        canvas.pushCanvas(0, 0, UPDATE_MODE_GC16);   
    }
    
    void loop() {
      // put your main code here, to run repeatedly:
    }
    

    I hope someone can help me with this so that it won't be a bit of a mess.

    With best regards,

    Jan
    Hellevoetsluis-NL


  • Global Moderator

    @powersoft have you tried any of the built in examples in the M5Paper library?