mirror of
https://github.com/esphome/esphome.git
synced 2026-10-21 13:34:12 +00:00
Simplify hdmi_cec tests common*yaml files, run 'no_uart' only on idf
This commit is contained in:
@@ -1,21 +1,3 @@
|
||||
esphome:
|
||||
name: "hdmi-cec-test"
|
||||
on_boot:
|
||||
priority: -100
|
||||
then:
|
||||
- delay: 50ms
|
||||
- lambda: !lambda |-
|
||||
// send 'Give Physical Address' message to myself: that shall give a reply message
|
||||
id(cec).send(0x1, id(cec).address(), {0x83});
|
||||
// generated the reply message is a broadcast, created by the component built-in handler
|
||||
// such broadcast does not expect an active 'acknowledge' bit
|
||||
id(cec).send(0x1, id(cec).address(), {0x8F}); // send 'Give Device Power Status' to myself
|
||||
// the generated reply message is probably not acknowledged, so will be repeated 5 times
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
level: DEBUG
|
||||
|
||||
hdmi_cec:
|
||||
id: cec
|
||||
pin: # to HDMI pin 13 (CEC), with HDMI pin 17 (DDC/CEC ground)
|
||||
|
||||
@@ -1,23 +1,3 @@
|
||||
esphome:
|
||||
name: "hdmi-cec-test"
|
||||
on_boot:
|
||||
priority: -100
|
||||
then:
|
||||
- delay: 50ms
|
||||
- lambda: !lambda |-
|
||||
// bool is_hw_uart = id(cec_uart)->get_hw_serial() != nullptr; // not avail on esp8266
|
||||
// ESP_LOGD("UART", "UART is HW_SERIAL=%d", is_hw_uart);
|
||||
// send 'Give Physical Address' message to myself: that shall give a reply message
|
||||
id(cec).send(0x1, id(cec).address(), {0x83});
|
||||
// generated the reply message is a broadcast, created by the component built-in handler
|
||||
// such broadcast does not expect an active 'acknowledge' bit
|
||||
id(cec).send(0x1, id(cec).address(), {0x8F}); // send 'Give Device Power Status' to myself
|
||||
// the generated reply message is probably not acknowledged, so will be repeated 5 times
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
level: DEBUG
|
||||
|
||||
wifi:
|
||||
ssid: MyHomeNetwork
|
||||
password: VerySafePassword
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
# tested with Seeed Studio XIAO ESP32S3
|
||||
substitutions:
|
||||
cec_pin: GPIO12
|
||||
|
||||
<<: !include common_no_uart.yaml
|
||||
Reference in New Issue
Block a user