forked from esphome/esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'uart' and 'improv_serial' need to understand non-UART logger configu…
…rations (esphome#6998)
- Loading branch information
Showing
24 changed files
with
256 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
esphome: | ||
on_boot: | ||
then: | ||
- logger.log: Hello world | ||
|
||
logger: | ||
level: DEBUG | ||
hardware_uart: USB_CDC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
esphome: | ||
on_boot: | ||
then: | ||
- logger.log: Hello world | ||
|
||
logger: | ||
level: DEBUG | ||
hardware_uart: USB_SERIAL_JTAG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<: !include common-usb_cdc.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<: !include common-usb_cdc.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<: !include common-usb_cdc.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<: !include common-usb_cdc.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<: !include common-usb_serial_jtag.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<<: !include common-usb_serial_jtag.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<<: !include common.yaml | ||
<<: !include common-default_uart.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<<: !include common.yaml | ||
<<: !include common-default_uart.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<<: !include common.yaml | ||
<<: !include common-default_uart.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<<: !include common.yaml | ||
<<: !include common-default_uart.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<<: !include common.yaml | ||
<<: !include common-default_uart.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<<: !include common.yaml | ||
<<: !include common-default_uart.yaml |
30 changes: 30 additions & 0 deletions
30
tests/components/uart/test-uart_max_with_usb_cdc.esp32-c3-ard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<<: !include ../logger/common-usb_cdc.yaml | ||
|
||
esphome: | ||
on_boot: | ||
then: | ||
- uart.write: | ||
id: uart_1 | ||
data: 'Hello World' | ||
- uart.write: | ||
id: uart_1 | ||
data: [0x00, 0x20, 0x42] | ||
|
||
uart: | ||
- id: uart_1 | ||
tx_pin: 4 | ||
rx_pin: 5 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 | ||
|
||
- id: uart_2 | ||
tx_pin: 6 | ||
rx_pin: 7 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 |
30 changes: 30 additions & 0 deletions
30
tests/components/uart/test-uart_max_with_usb_cdc.esp32-s2-ard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<<: !include ../logger/common-usb_cdc.yaml | ||
|
||
esphome: | ||
on_boot: | ||
then: | ||
- uart.write: | ||
id: uart_1 | ||
data: 'Hello World' | ||
- uart.write: | ||
id: uart_1 | ||
data: [0x00, 0x20, 0x42] | ||
|
||
uart: | ||
- id: uart_1 | ||
tx_pin: 4 | ||
rx_pin: 5 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 | ||
|
||
- id: uart_2 | ||
tx_pin: 6 | ||
rx_pin: 7 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 |
30 changes: 30 additions & 0 deletions
30
tests/components/uart/test-uart_max_with_usb_cdc.esp32-s2-idf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<<: !include ../logger/common-usb_cdc.yaml | ||
|
||
esphome: | ||
on_boot: | ||
then: | ||
- uart.write: | ||
id: uart_1 | ||
data: 'Hello World' | ||
- uart.write: | ||
id: uart_1 | ||
data: [0x00, 0x20, 0x42] | ||
|
||
uart: | ||
- id: uart_1 | ||
tx_pin: 4 | ||
rx_pin: 5 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 | ||
|
||
- id: uart_2 | ||
tx_pin: 6 | ||
rx_pin: 7 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 |
30 changes: 30 additions & 0 deletions
30
tests/components/uart/test-uart_max_with_usb_cdc.esp32-s3-ard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<<: !include ../logger/common-usb_cdc.yaml | ||
|
||
esphome: | ||
on_boot: | ||
then: | ||
- uart.write: | ||
id: uart_1 | ||
data: 'Hello World' | ||
- uart.write: | ||
id: uart_1 | ||
data: [0x00, 0x20, 0x42] | ||
|
||
uart: | ||
- id: uart_1 | ||
tx_pin: 4 | ||
rx_pin: 5 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 | ||
|
||
- id: uart_2 | ||
tx_pin: 6 | ||
rx_pin: 7 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 |
30 changes: 30 additions & 0 deletions
30
tests/components/uart/test-uart_max_with_usb_serial_jtag.esp32-c3-idf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<<: !include ../logger/common-usb_serial_jtag.yaml | ||
|
||
esphome: | ||
on_boot: | ||
then: | ||
- uart.write: | ||
id: uart_1 | ||
data: 'Hello World' | ||
- uart.write: | ||
id: uart_1 | ||
data: [0x00, 0x20, 0x42] | ||
|
||
uart: | ||
- id: uart_1 | ||
tx_pin: 4 | ||
rx_pin: 5 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 | ||
|
||
- id: uart_2 | ||
tx_pin: 6 | ||
rx_pin: 7 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 |
30 changes: 30 additions & 0 deletions
30
tests/components/uart/test-uart_max_with_usb_serial_jtag.esp32-s3-idf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<<: !include ../logger/common-usb_serial_jtag.yaml | ||
|
||
esphome: | ||
on_boot: | ||
then: | ||
- uart.write: | ||
id: uart_1 | ||
data: 'Hello World' | ||
- uart.write: | ||
id: uart_1 | ||
data: [0x00, 0x20, 0x42] | ||
|
||
uart: | ||
- id: uart_1 | ||
tx_pin: 4 | ||
rx_pin: 5 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 | ||
|
||
- id: uart_2 | ||
tx_pin: 6 | ||
rx_pin: 7 | ||
baud_rate: 9600 | ||
data_bits: 8 | ||
rx_buffer_size: 512 | ||
parity: EVEN | ||
stop_bits: 2 |