🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Core.INK display refresh

    PRODUCTS
    3
    3
    5.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • aeroliteA
      aerolite
      last edited by

      Hello,

      I just got my core.ink. I install the NTP-Clock which can refresh the display without any blink. I added a battery sensor the display with code below. the problem I have is some the number is written on top of previous number and make the number not readable. I tried clear the buffer and it make the display even worse that the time number is not readable.

      Could you some point out what is the proper way to write to the display?

      thx

      '
      void drawBattery()
      {

      Serial.println("\ndrawBat");
      char str[50];
      //TimePageSprite.clear(CLEAR_DRAWBUFF | CLEAR_LASTBUFF);
      TimePageSprite.FillRect(10,180,90,16,0);
      //TimePageSprite.pushSprite();
      TimePageSprite.FillRect(10,180,90,16,1);
      //TimePageSprite.pushSprite();
      //delay(1000);
      
      sprintf(str, "Bat: %.2f V",batVol);    
      TimePageSprite.drawString(10,180,str,&AsciiFont8x16);
      //TimePageSprite.pushSprite();
      

      }
      '

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        Are you making sure to leave a 15 second pause between refreshes?

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • T
          Thrasher
          last edited by

          I faced common issue with core grey module, made a couple of titles and was feeding formatted data from light sensor and envII module. Had to spend some time playing with delays to make it work properly but was blaming raped micropython build.

          Long things short, don't try to understand it, try adding delays.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post