Refactor master bedroom remote configuration: Change framework type to Arduino and optimize display memory usage with palette mode
This commit is contained in:
@@ -21,7 +21,7 @@ esphome:
|
|||||||
esp32:
|
esp32:
|
||||||
board: esp32dev
|
board: esp32dev
|
||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: arduino
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
|
|
||||||
@@ -60,6 +60,8 @@ display:
|
|||||||
spi_id: tft_spi
|
spi_id: tft_spi
|
||||||
cs_pin: GPIO15
|
cs_pin: GPIO15
|
||||||
dc_pin: GPIO2
|
dc_pin: GPIO2
|
||||||
|
# Use palette mode to lower display buffer memory usage.
|
||||||
|
color_palette: 8BIT
|
||||||
data_rate: 40MHz
|
data_rate: 40MHz
|
||||||
rotation: 0
|
rotation: 0
|
||||||
invert_colors: false
|
invert_colors: false
|
||||||
@@ -253,4 +255,4 @@ text_sensor:
|
|||||||
on_value:
|
on_value:
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(fan_state) = (x == "on");'
|
- lambda: 'id(fan_state) = (x == "on");'
|
||||||
- lambda: 'id(all_state) = id(light1_state) && id(light2_state) && id(fan_state);'
|
- lambda: 'id(all_state) = id(light1_state) && id(light2_state) && id(fan_state);'
|
||||||
|
|||||||
Reference in New Issue
Block a user