Update cardputer.yaml

improved pwm backlight, fixed temp readout to drop precision past decimal
This commit is contained in:
void 2025-04-02 18:21:36 +00:00
parent c46b388716
commit 462962f459
1 changed files with 13 additions and 14 deletions

View File

@ -133,7 +133,7 @@ light:
output: backlight_output # Link to the correct output component
id: backlight
restore_mode: RESTORE_AND_ON
gamma_correct: 2.8
gamma_correct: 2
default_transition_length: 1s
flash_transition_length: 0s
disabled_by_default: False
@ -212,10 +212,9 @@ display:
// Display current weather condition
it.print(49, 104, id(roboto_20), id(weather_condition).state.c_str());
// 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
font:
- file: "gfonts://Roboto"
id: roboto_20