Navigation

    M5Stack Community

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

    Posts made by peter153

    • RE: How to use Unicode.

      same error.

      ![alt text](0_1584752127867_examplUniicode.JPG image url)

      posted in General
      P
      peter153
    • RE: How to use Unicode.

      Add the In_eSPI_Setup.h file to the aduino IDE project, and #define.. Does this mean that the annotation should be lifted?

      posted in General
      P
      peter153
    • Simple Wi-Fi signal strength

      It's like an icon of LTE signal strength, but...
      Of course, I wanted to do it in a way that everyone knows, but...It's too complicated. Does anyone have a simple implementation experience?

      void showWifiSignal()
      {

      int nWifi = getWifidBm();
      M5.Lcd.setCursor(2, 30);
      M5.Lcd.setTextSize(1);
      M5.Lcd.print(String(nWifi)+"dBm");

      if(nWifi < -50 && nWifi == 0 )
      {
      M5.Lcd.drawRoundRect(30, 12, 5, 16, 1, LIGHTGREY);

      }
      else
      {
      M5.Lcd.fillRoundRect(30, 12, 5, 16, 1, BLACK);
      }

      if(nWifi < -70 && nWifi == 0)
      {
      M5.Lcd.drawRoundRect(22, 16, 5, 12, 1, LIGHTGREY);

      }
      else
      {
      M5.Lcd.fillRoundRect(22, 16, 5, 12, 1, BLACK);
      }

      if(nWifi < -80 && nWifi == 0)
      {
      M5.Lcd.drawRoundRect(14, 20, 5, 8, 1, LIGHTGREY);

      }
      else
      {
      M5.Lcd.fillRoundRect(14, 20, 5, 8, 1, BLACK);
      }

      if(nWifi < -90 && nWifi == 0)
      {
      M5.Lcd.drawRoundRect(6, 23, 5, 5, 1, LIGHTGREY);
      }
      else
      {
      M5.Lcd.fillRoundRect(6, 23, 5, 5, 1, BLACK);
      }
      }

      posted in PROJECTS
      P
      peter153
    • How to use Unicode.

      @m5stack

      Github Display_Unicode example has an error.

      ***CUF_24px.h:156463:7: error: 'EncodeRange' does not name a type

      const EncodeRange CUF_24pxEncodeRange[] PROGMEM = {***

      posted in General
      P
      peter153
    • RE: Degrees C Symbol

      //Fake degrees C Symbol

      String strTemp;
      strTemp = String(temp1 + strtof(&adj1[0], NULL));
      strTemp += " C";
      
      M5.Lcd.drawCentreString(strTemp,320/2,50,1);
      //M5.Lcd.print(String(temp1 + strtof(&adj1[0], NULL))+"℃"); //broken --;
      
      int nTempLen=strTemp.length();
      M5.Lcd.setTextSize(1);
      M5.Lcd.setCursor(2, 50);
      M5.Lcd.print("Sensor");
      M5.Lcd.print(" 1");
      if(nTempLen==6)
      {
      M5.Lcd.setCursor(195, 45);
      }
      else if(nTempLen==7)
      {
       M5.Lcd.setCursor(205, 45);
      }
      else if(nTempLen==8)
      {
       M5.Lcd.setCursor(216, 45);
      }
      else
      {
       M5.Lcd.setCursor(200, 45);
      }
      
      M5.Lcd.setTextSize(2);
      M5.Lcd.print("o"); //lowcase o
      posted in General
      P
      peter153