maxmacstn/HA-ePaper-Display

Temp

crackers81 opened this issue · 1 comments

How to make temperature and pollution change place?? Please help :)

If you want to change the location of the text, please try to change the first and second arguments in it.printf() function.
In this example, 357 and 75 is the X, Y coordinates of the temperature text on the screen.

if(outdoor_temp > -100 && outdoor_temp < 100){
it.printf(357, 75, id(sub_sensor_font), TextAlign::BASELINE_RIGHT , "%2.1fºc",outdoor_temp);
}else{
it.print(357, 75, id(sub_sensor_font), TextAlign::BASELINE_RIGHT , " - ºc");
}