diff --git a/esphome/components/sx127x/sx127x.h b/esphome/components/sx127x/sx127x.h index 8140b842fa..aaa4b41eab 100644 --- a/esphome/components/sx127x/sx127x.h +++ b/esphome/components/sx127x/sx127x.h @@ -155,4 +155,4 @@ class SX127x : public Component, }; } // namespace sx127x -} // namespace esphome \ No newline at end of file +} // namespace esphome diff --git a/tests/components/sx127x/test.esp32-ard.yaml b/tests/components/sx127x/test.esp32-ard.yaml new file mode 100644 index 0000000000..9d885b7a36 --- /dev/null +++ b/tests/components/sx127x/test.esp32-ard.yaml @@ -0,0 +1,16 @@ +spi: + clk_pin: GPIO5 + mosi_pin: GPIO27 + miso_pin: GPIO19 + +sx127x: + id: sx127x_id + nss_pin: GPIO18 + rst_pin: GPIO23 + pa_pin: BOOST + pa_power: 17 + frequency: 433920000 + rx_bandwidth: 50_0kHz + rx_floor: -90 + rx_start: true + modulation: OOK diff --git a/tests/components/sx127x/test.esp32-c3-ard.yaml b/tests/components/sx127x/test.esp32-c3-ard.yaml new file mode 100644 index 0000000000..9d885b7a36 --- /dev/null +++ b/tests/components/sx127x/test.esp32-c3-ard.yaml @@ -0,0 +1,16 @@ +spi: + clk_pin: GPIO5 + mosi_pin: GPIO27 + miso_pin: GPIO19 + +sx127x: + id: sx127x_id + nss_pin: GPIO18 + rst_pin: GPIO23 + pa_pin: BOOST + pa_power: 17 + frequency: 433920000 + rx_bandwidth: 50_0kHz + rx_floor: -90 + rx_start: true + modulation: OOK diff --git a/tests/components/sx127x/test.esp32-c3-idf.yaml b/tests/components/sx127x/test.esp32-c3-idf.yaml new file mode 100644 index 0000000000..9d885b7a36 --- /dev/null +++ b/tests/components/sx127x/test.esp32-c3-idf.yaml @@ -0,0 +1,16 @@ +spi: + clk_pin: GPIO5 + mosi_pin: GPIO27 + miso_pin: GPIO19 + +sx127x: + id: sx127x_id + nss_pin: GPIO18 + rst_pin: GPIO23 + pa_pin: BOOST + pa_power: 17 + frequency: 433920000 + rx_bandwidth: 50_0kHz + rx_floor: -90 + rx_start: true + modulation: OOK diff --git a/tests/components/sx127x/test.esp32-idf.yaml b/tests/components/sx127x/test.esp32-idf.yaml new file mode 100644 index 0000000000..9d885b7a36 --- /dev/null +++ b/tests/components/sx127x/test.esp32-idf.yaml @@ -0,0 +1,16 @@ +spi: + clk_pin: GPIO5 + mosi_pin: GPIO27 + miso_pin: GPIO19 + +sx127x: + id: sx127x_id + nss_pin: GPIO18 + rst_pin: GPIO23 + pa_pin: BOOST + pa_power: 17 + frequency: 433920000 + rx_bandwidth: 50_0kHz + rx_floor: -90 + rx_start: true + modulation: OOK diff --git a/tests/components/sx127x/test.esp8266-ard.yaml b/tests/components/sx127x/test.esp8266-ard.yaml new file mode 100644 index 0000000000..9d885b7a36 --- /dev/null +++ b/tests/components/sx127x/test.esp8266-ard.yaml @@ -0,0 +1,16 @@ +spi: + clk_pin: GPIO5 + mosi_pin: GPIO27 + miso_pin: GPIO19 + +sx127x: + id: sx127x_id + nss_pin: GPIO18 + rst_pin: GPIO23 + pa_pin: BOOST + pa_power: 17 + frequency: 433920000 + rx_bandwidth: 50_0kHz + rx_floor: -90 + rx_start: true + modulation: OOK diff --git a/tests/components/sx127x/test.rp2040-ard.yaml b/tests/components/sx127x/test.rp2040-ard.yaml new file mode 100644 index 0000000000..9d885b7a36 --- /dev/null +++ b/tests/components/sx127x/test.rp2040-ard.yaml @@ -0,0 +1,16 @@ +spi: + clk_pin: GPIO5 + mosi_pin: GPIO27 + miso_pin: GPIO19 + +sx127x: + id: sx127x_id + nss_pin: GPIO18 + rst_pin: GPIO23 + pa_pin: BOOST + pa_power: 17 + frequency: 433920000 + rx_bandwidth: 50_0kHz + rx_floor: -90 + rx_start: true + modulation: OOK