You are reading a single comment by @user80458 and its replies. Click here to read the full conversation.
  • g.drawString() still has issue, I removed setFontVector(), the text still can not display on the right side of display. but the g.drawCircle() function works well.
    When I changed the g.setRotation() from 1 to 0, the whole display is working, but text is 90 degree rotated.

     function(err){
            // (optional) fill the internal buffer for all pixels with color white,
            // without this the default color will be black
            display.g.clear(0xFF);
            // not optional - rotate the display x and y coordinates 90 degrees to the right
            display.g.setRotation(0);
            // from here it shows the normal usage
            // set color black for subsequent uses
            display.g.setColor(0x00);
            // set fontsize, see Graphics and Fonts modules for further options
            display.g.setFontVector(12);
            display.g.drawString('Hello World!', 0, 10);
            display.g.drawString('Hello World!', 0, 50);
             display.g.drawString('Hello World!', 0, 100);
             display.g.drawString('Hello World!', 0, 140);
            display.g.drawCircle(40,40,30);
             display.g.drawCircle(40,100,30);
            display.g.drawCircle(40,140,30);
    

    1 Attachment

    • resruino3.png
About

Avatar for user80458 @user80458 started