|
@ -97,7 +97,7 @@ display: |
|
|
it.filled_rectangle(130-10, 21, 20, 10, COLOR_OFF); |
|
|
it.filled_rectangle(130-10, 21, 20, 10, COLOR_OFF); |
|
|
it.print(130, 26, id(font1), TextAlign::CENTER, "WZ"); |
|
|
it.print(130, 26, id(font1), TextAlign::CENTER, "WZ"); |
|
|
if (id(iaq_accuracy_wz).state >= 2) { |
|
|
if (id(iaq_accuracy_wz).state >= 2) { |
|
|
it.printf(130, 41, id(font1), "%.0f ", id(iaq_wz).state); |
|
|
it.printf(130, 41, id(font1), TextAlign::BASELINE_CENTER, "%.0f", id(iaq_wz).state); |
|
|
if (id(iaq_wz).state < 50) { |
|
|
if (id(iaq_wz).state < 50) { |
|
|
it.printf(130, 43, id(font1), TextAlign::TOP_CENTER, "excellent"); |
|
|
it.printf(130, 43, id(font1), TextAlign::TOP_CENTER, "excellent"); |
|
|
} else if (id(iaq_wz).state < 100) { |
|
|
} else if (id(iaq_wz).state < 100) { |
|
@ -121,7 +121,7 @@ display: |
|
|
it.filled_rectangle(175-10, 21, 20, 10, COLOR_OFF); |
|
|
it.filled_rectangle(175-10, 21, 20, 10, COLOR_OFF); |
|
|
it.print(175, 26, id(font1), TextAlign::CENTER, "SZ"); |
|
|
it.print(175, 26, id(font1), TextAlign::CENTER, "SZ"); |
|
|
if (id(iaq_accuracy_sz).state >= 2) { |
|
|
if (id(iaq_accuracy_sz).state >= 2) { |
|
|
it.printf(175, 41, id(font1), "%.0f ", id(iaq_sz).state); |
|
|
it.printf(175, 41, id(font1), TextAlign::BASELINE_CENTER, "%.0f", id(iaq_sz).state); |
|
|
if (id(iaq_sz).state < 50) { |
|
|
if (id(iaq_sz).state < 50) { |
|
|
it.printf(175, 43, id(font1), TextAlign::TOP_CENTER, "excellent"); |
|
|
it.printf(175, 43, id(font1), TextAlign::TOP_CENTER, "excellent"); |
|
|
} else if (id(iaq_sz).state < 100) { |
|
|
} else if (id(iaq_sz).state < 100) { |
|
|