Update cardputer.yaml
improved pwm backlight, fixed temp readout to drop precision past decimal
This commit is contained in:
parent
c46b388716
commit
462962f459
|
|
@ -133,7 +133,7 @@ light:
|
||||||
output: backlight_output # Link to the correct output component
|
output: backlight_output # Link to the correct output component
|
||||||
id: backlight
|
id: backlight
|
||||||
restore_mode: RESTORE_AND_ON
|
restore_mode: RESTORE_AND_ON
|
||||||
gamma_correct: 2.8
|
gamma_correct: 2
|
||||||
default_transition_length: 1s
|
default_transition_length: 1s
|
||||||
flash_transition_length: 0s
|
flash_transition_length: 0s
|
||||||
disabled_by_default: False
|
disabled_by_default: False
|
||||||
|
|
@ -212,10 +212,9 @@ display:
|
||||||
// Display current weather condition
|
// Display current weather condition
|
||||||
it.print(49, 104, id(roboto_20), id(weather_condition).state.c_str());
|
it.print(49, 104, id(roboto_20), id(weather_condition).state.c_str());
|
||||||
// Display current temperature under the weather condition
|
// Display current temperature under the weather condition
|
||||||
String temp_str = "Temp: " + String(id(temperature).state) + " °F"; // Create the temperature string
|
String temp_str = "Temp: " + String(static_cast<int>(id(temperature).state)) + " °F"; // Truncate decimal
|
||||||
it.print(49, 120, id(roboto_20), temp_str.c_str()); // Convert the String to a const char* and display it
|
it.print(49, 120, id(roboto_20), temp_str.c_str()); // Convert the String to a const char* and display it
|
||||||
|
|
||||||
|
|
||||||
font:
|
font:
|
||||||
- file: "gfonts://Roboto"
|
- file: "gfonts://Roboto"
|
||||||
id: roboto_20
|
id: roboto_20
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue