mirror of
https://github.com/esphome/esphome.git
synced 2026-05-31 17:06:40 +08:00
[CI] Consolidate some tests (M) (#8202)
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_max31855
|
||||||
|
clk_pin: ${clk_pin}
|
||||||
|
mosi_pin: ${mosi_pin}
|
||||||
|
miso_pin: ${miso_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: max31855
|
||||||
|
name: MAX31855 Temperature
|
||||||
|
cs_pin: ${cs_pin}
|
||||||
|
update_interval: 15s
|
||||||
|
reference_temperature:
|
||||||
|
name: MAX31855 Internal Temperature
|
||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31855
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31855
|
|
||||||
name: MAX31855 Temperature
|
|
||||||
cs_pin: 12
|
|
||||||
update_interval: 15s
|
|
||||||
reference_temperature:
|
|
||||||
name: MAX31855 Internal Temperature
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31855
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31855
|
|
||||||
name: MAX31855 Temperature
|
|
||||||
cs_pin: 8
|
|
||||||
update_interval: 15s
|
|
||||||
reference_temperature:
|
|
||||||
name: MAX31855 Internal Temperature
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31855
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31855
|
|
||||||
name: MAX31855 Temperature
|
|
||||||
cs_pin: 8
|
|
||||||
update_interval: 15s
|
|
||||||
reference_temperature:
|
|
||||||
name: MAX31855 Internal Temperature
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31855
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31855
|
|
||||||
name: MAX31855 Temperature
|
|
||||||
cs_pin: 12
|
|
||||||
update_interval: 15s
|
|
||||||
reference_temperature:
|
|
||||||
name: MAX31855 Internal Temperature
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31855
|
clk_pin: GPIO14
|
||||||
clk_pin: 14
|
mosi_pin: GPIO13
|
||||||
mosi_pin: 13
|
miso_pin: GPIO12
|
||||||
miso_pin: 12
|
cs_pin: GPIO15
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31855
|
|
||||||
name: MAX31855 Temperature
|
|
||||||
cs_pin: 15
|
|
||||||
update_interval: 15s
|
|
||||||
reference_temperature:
|
|
||||||
name: MAX31855 Internal Temperature
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31855
|
clk_pin: GPIO2
|
||||||
clk_pin: 2
|
mosi_pin: GPIO3
|
||||||
mosi_pin: 3
|
miso_pin: GPIO4
|
||||||
miso_pin: 4
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31855
|
|
||||||
name: MAX31855 Temperature
|
|
||||||
cs_pin: 6
|
|
||||||
update_interval: 15s
|
|
||||||
reference_temperature:
|
|
||||||
name: MAX31855 Internal Temperature
|
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_max31856
|
||||||
|
clk_pin: ${clk_pin}
|
||||||
|
mosi_pin: ${mosi_pin}
|
||||||
|
miso_pin: ${miso_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: max31856
|
||||||
|
name: MAX31856 Temperature
|
||||||
|
cs_pin: ${cs_pin}
|
||||||
|
update_interval: 15s
|
||||||
|
mains_filter: 50Hz
|
||||||
|
thermocouple_type: N
|
||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31856
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31856
|
|
||||||
name: MAX31856 Temperature
|
|
||||||
cs_pin: 12
|
|
||||||
update_interval: 15s
|
|
||||||
mains_filter: 50Hz
|
|
||||||
thermocouple_type: N
|
|
||||||
|
|||||||
@@ -1,14 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31856
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: max31856
|
|
||||||
name: MAX31856 Temperature
|
|
||||||
cs_pin: 8
|
|
||||||
update_interval: 15s
|
|
||||||
mains_filter: 50Hz
|
|
||||||
thermocouple_type: N
|
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
|||||||
@@ -1,14 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31856
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: max31856
|
|
||||||
name: MAX31856 Temperature
|
|
||||||
cs_pin: 8
|
|
||||||
update_interval: 15s
|
|
||||||
mains_filter: 50Hz
|
|
||||||
thermocouple_type: N
|
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31856
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31856
|
|
||||||
name: MAX31856 Temperature
|
|
||||||
cs_pin: 12
|
|
||||||
update_interval: 15s
|
|
||||||
mains_filter: 50Hz
|
|
||||||
thermocouple_type: N
|
|
||||||
|
|||||||
@@ -1,14 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31856
|
clk_pin: GPIO14
|
||||||
clk_pin: 14
|
mosi_pin: GPIO13
|
||||||
mosi_pin: 13
|
miso_pin: GPIO12
|
||||||
miso_pin: 12
|
cs_pin: GPIO15
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: max31856
|
|
||||||
name: MAX31856 Temperature
|
|
||||||
cs_pin: 15
|
|
||||||
update_interval: 15s
|
|
||||||
mains_filter: 50Hz
|
|
||||||
thermocouple_type: N
|
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
|||||||
@@ -1,14 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31856
|
clk_pin: GPIO2
|
||||||
clk_pin: 2
|
mosi_pin: GPIO3
|
||||||
mosi_pin: 3
|
miso_pin: GPIO4
|
||||||
miso_pin: 4
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
|
||||||
- platform: max31856
|
|
||||||
name: MAX31856 Temperature
|
|
||||||
cs_pin: 6
|
|
||||||
update_interval: 15s
|
|
||||||
mains_filter: 50Hz
|
|
||||||
thermocouple_type: N
|
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_max31865
|
||||||
|
clk_pin: ${clk_pin}
|
||||||
|
mosi_pin: ${mosi_pin}
|
||||||
|
miso_pin: ${miso_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: max31865
|
||||||
|
name: MAX31865 Temperature
|
||||||
|
cs_pin: ${cs_pin}
|
||||||
|
update_interval: 15s
|
||||||
|
reference_resistance: 430 Ω
|
||||||
|
rtd_nominal_resistance: 100 Ω
|
||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31865
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31865
|
|
||||||
name: MAX31865 Temperature
|
|
||||||
cs_pin: 12
|
|
||||||
update_interval: 15s
|
|
||||||
reference_resistance: 430 Ω
|
|
||||||
rtd_nominal_resistance: 100 Ω
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31865
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31865
|
|
||||||
name: MAX31865 Temperature
|
|
||||||
cs_pin: 8
|
|
||||||
update_interval: 15s
|
|
||||||
reference_resistance: 430 Ω
|
|
||||||
rtd_nominal_resistance: 100 Ω
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31865
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31865
|
|
||||||
name: MAX31865 Temperature
|
|
||||||
cs_pin: 8
|
|
||||||
update_interval: 15s
|
|
||||||
reference_resistance: 430 Ω
|
|
||||||
rtd_nominal_resistance: 100 Ω
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31865
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31865
|
|
||||||
name: MAX31865 Temperature
|
|
||||||
cs_pin: 12
|
|
||||||
update_interval: 15s
|
|
||||||
reference_resistance: 430 Ω
|
|
||||||
rtd_nominal_resistance: 100 Ω
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31865
|
clk_pin: GPIO14
|
||||||
clk_pin: 14
|
mosi_pin: GPIO13
|
||||||
mosi_pin: 13
|
miso_pin: GPIO12
|
||||||
miso_pin: 12
|
cs_pin: GPIO15
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31865
|
|
||||||
name: MAX31865 Temperature
|
|
||||||
cs_pin: 15
|
|
||||||
update_interval: 15s
|
|
||||||
reference_resistance: 430 Ω
|
|
||||||
rtd_nominal_resistance: 100 Ω
|
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max31865
|
clk_pin: GPIO2
|
||||||
clk_pin: 2
|
mosi_pin: GPIO3
|
||||||
mosi_pin: 3
|
miso_pin: GPIO4
|
||||||
miso_pin: 4
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max31865
|
|
||||||
name: MAX31865 Temperature
|
|
||||||
cs_pin: 6
|
|
||||||
update_interval: 15s
|
|
||||||
reference_resistance: 430 Ω
|
|
||||||
rtd_nominal_resistance: 100 Ω
|
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_max44009
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: max44009
|
||||||
|
name: MAX44009 Brightness
|
||||||
|
internal: true
|
||||||
|
mode: low_power
|
||||||
|
address: 0x4A
|
||||||
|
update_interval: 30s
|
||||||
@@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max44009
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max44009
|
|
||||||
name: MAX44009 Brightness
|
|
||||||
internal: true
|
|
||||||
mode: low_power
|
|
||||||
address: 0x4A
|
|
||||||
update_interval: 30s
|
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max44009
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max44009
|
|
||||||
name: MAX44009 Brightness
|
|
||||||
internal: true
|
|
||||||
mode: low_power
|
|
||||||
address: 0x4A
|
|
||||||
update_interval: 30s
|
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max44009
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max44009
|
|
||||||
name: MAX44009 Brightness
|
|
||||||
internal: true
|
|
||||||
mode: low_power
|
|
||||||
address: 0x4A
|
|
||||||
update_interval: 30s
|
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max44009
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max44009
|
|
||||||
name: MAX44009 Brightness
|
|
||||||
internal: true
|
|
||||||
mode: low_power
|
|
||||||
address: 0x4A
|
|
||||||
update_interval: 30s
|
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max44009
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max44009
|
|
||||||
name: MAX44009 Brightness
|
|
||||||
internal: true
|
|
||||||
mode: low_power
|
|
||||||
address: 0x4A
|
|
||||||
update_interval: 30s
|
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max44009
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max44009
|
|
||||||
name: MAX44009 Brightness
|
|
||||||
internal: true
|
|
||||||
mode: low_power
|
|
||||||
address: 0x4A
|
|
||||||
update_interval: 30s
|
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_max6675
|
||||||
|
clk_pin: ${clk_pin}
|
||||||
|
mosi_pin: ${mosi_pin}
|
||||||
|
miso_pin: ${miso_pin}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: max6675
|
||||||
|
name: Temperature
|
||||||
|
cs_pin: ${cs_pin}
|
||||||
|
update_interval: 15s
|
||||||
@@ -1,11 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max6675
|
|
||||||
name: Temperature
|
|
||||||
cs_pin: 12
|
|
||||||
update_interval: 15s
|
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max6675
|
|
||||||
name: Temperature
|
|
||||||
cs_pin: 8
|
|
||||||
update_interval: 15s
|
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max6675
|
|
||||||
name: Temperature
|
|
||||||
cs_pin: 8
|
|
||||||
update_interval: 15s
|
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max6675
|
|
||||||
name: Temperature
|
|
||||||
cs_pin: 12
|
|
||||||
update_interval: 15s
|
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO14
|
||||||
clk_pin: 14
|
mosi_pin: GPIO13
|
||||||
mosi_pin: 13
|
miso_pin: GPIO12
|
||||||
miso_pin: 12
|
cs_pin: GPIO15
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max6675
|
|
||||||
name: Temperature
|
|
||||||
cs_pin: 15
|
|
||||||
update_interval: 15s
|
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO2
|
||||||
clk_pin: 2
|
mosi_pin: GPIO3
|
||||||
mosi_pin: 3
|
miso_pin: GPIO4
|
||||||
miso_pin: 4
|
cs_pin: GPIO5
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: max6675
|
|
||||||
name: Temperature
|
|
||||||
cs_pin: 6
|
|
||||||
update_interval: 15s
|
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_max6956
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
max6956:
|
||||||
|
- id: max6956_1
|
||||||
|
address: 0x40
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
name: Max Input Pin
|
||||||
|
pin:
|
||||||
|
max6956: max6956_1
|
||||||
|
number: 4
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
pullup: true
|
||||||
|
inverted: false
|
||||||
@@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max6956
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
max6956:
|
<<: !include common.yaml
|
||||||
- id: max6956_1
|
|
||||||
address: 0x40
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: Max Input Pin 4
|
|
||||||
pin:
|
|
||||||
max6956: max6956_1
|
|
||||||
number: 4
|
|
||||||
mode:
|
|
||||||
input: true
|
|
||||||
pullup: true
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max6956
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
max6956:
|
<<: !include common.yaml
|
||||||
- id: max6956_1
|
|
||||||
address: 0x40
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: Max Input Pin 4
|
|
||||||
pin:
|
|
||||||
max6956: max6956_1
|
|
||||||
number: 4
|
|
||||||
mode:
|
|
||||||
input: true
|
|
||||||
pullup: true
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max6956
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
max6956:
|
<<: !include common.yaml
|
||||||
- id: max6956_1
|
|
||||||
address: 0x40
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: Max Input Pin 4
|
|
||||||
pin:
|
|
||||||
max6956: max6956_1
|
|
||||||
number: 4
|
|
||||||
mode:
|
|
||||||
input: true
|
|
||||||
pullup: true
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max6956
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
max6956:
|
<<: !include common.yaml
|
||||||
- id: max6956_1
|
|
||||||
address: 0x40
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: Max Input Pin 4
|
|
||||||
pin:
|
|
||||||
max6956: max6956_1
|
|
||||||
number: 4
|
|
||||||
mode:
|
|
||||||
input: true
|
|
||||||
pullup: true
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max6956
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
max6956:
|
<<: !include common.yaml
|
||||||
- id: max6956_1
|
|
||||||
address: 0x40
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: Max Input Pin 4
|
|
||||||
pin:
|
|
||||||
max6956: max6956_1
|
|
||||||
number: 4
|
|
||||||
mode:
|
|
||||||
input: true
|
|
||||||
pullup: true
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,19 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_max6956
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
max6956:
|
<<: !include common.yaml
|
||||||
- id: max6956_1
|
|
||||||
address: 0x40
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: Max Input Pin 4
|
|
||||||
pin:
|
|
||||||
max6956: max6956_1
|
|
||||||
number: 4
|
|
||||||
mode:
|
|
||||||
input: true
|
|
||||||
pullup: true
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_max6675
|
||||||
|
clk_pin: ${clk_pin}
|
||||||
|
mosi_pin: ${mosi_pin}
|
||||||
|
miso_pin: ${miso_pin}
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: max7219
|
||||||
|
cs_pin: ${cs_pin}
|
||||||
|
num_chips: 1
|
||||||
|
lambda: |-
|
||||||
|
it.print("01234567");
|
||||||
@@ -1,12 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: max7219
|
|
||||||
cs_pin: 12
|
|
||||||
num_chips: 1
|
|
||||||
lambda: |-
|
|
||||||
it.print("01234567");
|
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max7219
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: max7219
|
|
||||||
cs_pin: 8
|
|
||||||
num_chips: 1
|
|
||||||
lambda: |-
|
|
||||||
it.print("01234567");
|
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max7219
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: max7219
|
|
||||||
cs_pin: 8
|
|
||||||
num_chips: 1
|
|
||||||
lambda: |-
|
|
||||||
it.print("01234567");
|
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO15
|
||||||
miso_pin: 15
|
cs_pin: GPIO5
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: max7219
|
|
||||||
cs_pin: 12
|
|
||||||
num_chips: 1
|
|
||||||
lambda: |-
|
|
||||||
it.print("01234567");
|
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO14
|
||||||
clk_pin: 14
|
mosi_pin: GPIO13
|
||||||
mosi_pin: 13
|
miso_pin: GPIO12
|
||||||
miso_pin: 12
|
cs_pin: GPIO15
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: max7219
|
|
||||||
cs_pin: 15
|
|
||||||
num_chips: 1
|
|
||||||
lambda: |-
|
|
||||||
it.print("01234567");
|
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_max6675
|
clk_pin: GPIO2
|
||||||
clk_pin: 2
|
mosi_pin: GPIO3
|
||||||
mosi_pin: 3
|
miso_pin: GPIO4
|
||||||
miso_pin: 4
|
cs_pin: GPIO5
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: max7219
|
|
||||||
cs_pin: 6
|
|
||||||
num_chips: 1
|
|
||||||
lambda: |-
|
|
||||||
it.print("01234567");
|
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_max7219digit
|
||||||
|
clk_pin: ${clk_pin}
|
||||||
|
mosi_pin: ${mosi_pin}
|
||||||
|
miso_pin: ${miso_pin}
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: max7219digit
|
||||||
|
cs_pin: ${cs_pin}
|
||||||
|
num_chips: 4
|
||||||
|
rotate_chip: 0
|
||||||
|
intensity: 10
|
||||||
|
scroll_mode: STOP
|
||||||
|
id: my_matrix
|
||||||
|
lambda: |-
|
||||||
|
it.printdigit("hello");
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user