Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. aerolite
    3. Posts
    • Continue chat with aerolite
    • Start new chat with aerolite
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by aerolite

    • Core.INK display refresh

      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();
      

      }
      '

      posted in PRODUCTS
      aerolite
    • CoreINK screen update

      Hello,

      I just got my core.ink and put the ntp-clock to it and works fine. I added battery voltage information to the screen with code below. Then sometime the battery voltage is written on top of previous number. And it's even worse if I use clear() function. Could any one explain the proper way to draw on the screen without blink and without overwrite.

      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();
      }
      '

      posted in Cores
      aerolite
    • why stepper motor driver module suitable for Atom Lite only

      the schematic of atom lite is the same as atom matrix. why it is suitable for atom lite only?

      thx

      posted in PRODUCTS
      aerolite