Update watchwip

fixed temp display
This commit is contained in:
void 2025-04-02 18:25:19 +00:00
parent 462962f459
commit 79baa484c7
1 changed files with 17 additions and 1 deletions

View File

@ -117,7 +117,7 @@ display:
it.print(0, 10, id(font1), 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(0, 20, id(font1), temp_str.c_str()); // Convert the String to a const char* and display it
# Define pull-up buttons for GPIOs
@ -125,7 +125,23 @@ binary_sensor:
- platform: gpio
pin:
number: GPIO12
mode: INPUT_PULLUPesphome:
name: esphome-web-ad0671
friendly_name: WATCH
min_version: 2024.11.0
name_add_mac_suffix: false
esp8266:
board: esp01_1m
# Enable logging with debug level
… name: "Button GPIO14"
- platform: gpio
pin:
number: GPIO0 # Boot button on most ESP32 boards
mode: INPUT_PULLUP
inverted: true # Inverted because it's typically pulled low when pressed
name: "Boot Button"
name: "Button GPIO12"
- platform: gpio
pin: