Mercurial > code > home > repos > homeauto
diff espNode/theater_lcd.yaml @ 1716:2bed2f68243c
older work
author | drewp@bigasterisk.com |
---|---|
date | Sun, 07 Aug 2022 02:25:40 -0700 |
parents | d88085f35745 |
children |
line wrap: on
line diff
--- a/espNode/theater_lcd.yaml Thu May 05 00:05:27 2022 -0700 +++ b/espNode/theater_lcd.yaml Sun Aug 07 02:25:40 2022 -0700 @@ -1,25 +1,26 @@ - esphome: name: theater_lcd platform: ESP32 board: esp32cam - build_path: build + includes: + - component/keypad.h wifi: ssid: !secret wifi_ssid password: !secret wifi_password - domain: '' + domain: "" + use_address: "10.2.0.39" mqtt: - broker: '10.2.0.1' + broker: "10.2.0.1" port: 1883 - username: '' - password: '' - + username: "" + password: "" + logger: baud_rate: 115200 level: DEBUG - + ota: # image: @@ -37,23 +38,44 @@ size: 60 glyphs: "+-_.:0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ " +custom_component: + - lambda: |- + auto my_custom = new KeypadComponent(); + return {my_custom}; + +# set these to input for KeypadComponent +# binary_sensor: +# - { platform: gpio, pin: GPIO36, name: "input36" } +# - { platform: gpio, pin: GPIO39, name: "input39" } +# - { platform: gpio, pin: GPIO34, name: "input34" } +# - { platform: gpio, pin: GPIO35, name: "input35" } + + +# for keyboard: +# GPIO23 col1 orn +# GPIO36 rowA yel (input only gpio) +# GPIO39 rowB grn (input only gpio) +# GPIO34 rowC blu (input only gpio) +# GPIO35 rowD brn (input only gpio) +# GPIO22 col0 gry + display: - platform: ili9486_8bit - model: 'TFT_3.5' + model: "TFT_3.5" id: lcd - cs_pin: GPIO16 # wh - dc_pin: GPIO17 # gy - wr_pin: GPIO5 # pu - rd_pin: GPIO18 # bk + cs_pin: GPIO16 # wh + dc_pin: GPIO17 # gy + wr_pin: GPIO5 # pu + rd_pin: GPIO18 # bk data_pins: - - GPIO33 # gy - - GPIO32 # bk - - GPIO13 # pu - - GPIO12 # bl - - GPIO14 # gn - - GPIO27 # ye - - GPIO26 # or - - GPIO25 # re + - GPIO33 # gy + - GPIO32 # bk + - GPIO13 # pu + - GPIO12 # bl + - GPIO14 # gn + - GPIO27 # ye + - GPIO26 # or + - GPIO25 # re rotation: 90 lambda: |- it.clear(); // may be cheaper to get text extent and fill that box only @@ -92,7 +114,6 @@ } - text_sensor: - platform: mqtt_subscribe name: "line1" @@ -108,7 +129,6 @@ on_value: then: - component.update: lcd - # ili9486 setup # http://www.lcdwiki.com/3.5inch_Arduino_Display-UNO # (https://www.aliexpress.com/item/4000055026873.html $12)