same error.
![alt text]( image url)
Add the In_eSPI_Setup.h file to the aduino IDE project, and #define.. Does this mean that the annotation should be lifted?
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);
}
}
Github Display_Unicode example has an error.
***CUF_24px.h:156463:7: error: 'EncodeRange' does not name a type
const EncodeRange CUF_24pxEncodeRange[] PROGMEM = {***
//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