mirror of
https://github.com/esphome/esphome.git
synced 2025-02-07 21:51:00 +00:00
[CI] Consolidate some tests (F) (#8195)
This commit is contained in:
parent
06f9764f51
commit
6e3527a88b
56
tests/components/fingerprint_grow/common.yaml
Normal file
56
tests/components/fingerprint_grow/common.yaml
Normal file
@ -0,0 +1,56 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- fingerprint_grow.enroll:
|
||||
finger_id: 2
|
||||
num_scans: 2
|
||||
- fingerprint_grow.cancel_enroll:
|
||||
- fingerprint_grow.delete:
|
||||
finger_id: 2
|
||||
- fingerprint_grow.delete_all:
|
||||
|
||||
uart:
|
||||
- id: uart_fingerprint_grow
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 57600
|
||||
|
||||
fingerprint_grow:
|
||||
sensing_pin: ${sensing_pin}
|
||||
password: 0x12FE37DC
|
||||
new_password: 0xA65B9840
|
||||
on_finger_scan_start:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_start
|
||||
on_finger_scan_invalid:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_invalid
|
||||
on_finger_scan_matched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_matched
|
||||
on_finger_scan_unmatched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_unmatched
|
||||
on_finger_scan_misplaced:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_misplaced
|
||||
on_enrollment_scan:
|
||||
- logger.log: test_fingerprint_grow_enrollment_scan
|
||||
on_enrollment_done:
|
||||
- logger.log: test_fingerprint_grow_node_enrollment_done
|
||||
on_enrollment_failed:
|
||||
- logger.log: test_fingerprint_grow_enrollment_failed
|
||||
|
||||
binary_sensor:
|
||||
- platform: fingerprint_grow
|
||||
name: Fingerprint Enrolling
|
||||
|
||||
sensor:
|
||||
- platform: fingerprint_grow
|
||||
fingerprint_count:
|
||||
name: Fingerprint Count
|
||||
status:
|
||||
name: Fingerprint Status
|
||||
capacity:
|
||||
name: Fingerprint Capacity
|
||||
security_level:
|
||||
name: Fingerprint Security Level
|
||||
last_finger_id:
|
||||
name: Fingerprint Last Finger ID
|
||||
last_confidence:
|
||||
name: Fingerprint Last Confidence
|
@ -1,56 +1,6 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- fingerprint_grow.enroll:
|
||||
finger_id: 2
|
||||
num_scans: 2
|
||||
- fingerprint_grow.cancel_enroll:
|
||||
- fingerprint_grow.delete:
|
||||
finger_id: 2
|
||||
- fingerprint_grow.delete_all:
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
sensing_pin: GPIO15
|
||||
|
||||
uart:
|
||||
- id: uart_fingerprint_grow
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 57600
|
||||
|
||||
fingerprint_grow:
|
||||
sensing_pin: 18
|
||||
password: 0x12FE37DC
|
||||
new_password: 0xA65B9840
|
||||
on_finger_scan_start:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_start
|
||||
on_finger_scan_invalid:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_invalid
|
||||
on_finger_scan_matched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_matched
|
||||
on_finger_scan_unmatched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_unmatched
|
||||
on_finger_scan_misplaced:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_misplaced
|
||||
on_enrollment_scan:
|
||||
- logger.log: test_fingerprint_grow_enrollment_scan
|
||||
on_enrollment_done:
|
||||
- logger.log: test_fingerprint_grow_node_enrollment_done
|
||||
on_enrollment_failed:
|
||||
- logger.log: test_fingerprint_grow_enrollment_failed
|
||||
|
||||
binary_sensor:
|
||||
- platform: fingerprint_grow
|
||||
name: Fingerprint Enrolling
|
||||
|
||||
sensor:
|
||||
- platform: fingerprint_grow
|
||||
fingerprint_count:
|
||||
name: Fingerprint Count
|
||||
status:
|
||||
name: Fingerprint Status
|
||||
capacity:
|
||||
name: Fingerprint Capacity
|
||||
security_level:
|
||||
name: Fingerprint Security Level
|
||||
last_finger_id:
|
||||
name: Fingerprint Last Finger ID
|
||||
last_confidence:
|
||||
name: Fingerprint Last Confidence
|
||||
<<: !include common.yaml
|
||||
|
@ -1,56 +1,6 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- fingerprint_grow.enroll:
|
||||
finger_id: 2
|
||||
num_scans: 2
|
||||
- fingerprint_grow.cancel_enroll:
|
||||
- fingerprint_grow.delete:
|
||||
finger_id: 2
|
||||
- fingerprint_grow.delete_all:
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
sensing_pin: GPIO6
|
||||
|
||||
uart:
|
||||
- id: uart_fingerprint_grow
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 57600
|
||||
|
||||
fingerprint_grow:
|
||||
sensing_pin: 6
|
||||
password: 0x12FE37DC
|
||||
new_password: 0xA65B9840
|
||||
on_finger_scan_start:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_start
|
||||
on_finger_scan_invalid:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_invalid
|
||||
on_finger_scan_matched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_matched
|
||||
on_finger_scan_unmatched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_unmatched
|
||||
on_finger_scan_misplaced:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_misplaced
|
||||
on_enrollment_scan:
|
||||
- logger.log: test_fingerprint_grow_enrollment_scan
|
||||
on_enrollment_done:
|
||||
- logger.log: test_fingerprint_grow_node_enrollment_done
|
||||
on_enrollment_failed:
|
||||
- logger.log: test_fingerprint_grow_enrollment_failed
|
||||
|
||||
binary_sensor:
|
||||
- platform: fingerprint_grow
|
||||
name: Fingerprint Enrolling
|
||||
|
||||
sensor:
|
||||
- platform: fingerprint_grow
|
||||
fingerprint_count:
|
||||
name: Fingerprint Count
|
||||
status:
|
||||
name: Fingerprint Status
|
||||
capacity:
|
||||
name: Fingerprint Capacity
|
||||
security_level:
|
||||
name: Fingerprint Security Level
|
||||
last_finger_id:
|
||||
name: Fingerprint Last Finger ID
|
||||
last_confidence:
|
||||
name: Fingerprint Last Confidence
|
||||
<<: !include common.yaml
|
||||
|
@ -1,56 +1,6 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- fingerprint_grow.enroll:
|
||||
finger_id: 2
|
||||
num_scans: 2
|
||||
- fingerprint_grow.cancel_enroll:
|
||||
- fingerprint_grow.delete:
|
||||
finger_id: 2
|
||||
- fingerprint_grow.delete_all:
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
sensing_pin: GPIO6
|
||||
|
||||
uart:
|
||||
- id: uart_fingerprint_grow
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 57600
|
||||
|
||||
fingerprint_grow:
|
||||
sensing_pin: 6
|
||||
password: 0x12FE37DC
|
||||
new_password: 0xA65B9840
|
||||
on_finger_scan_start:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_start
|
||||
on_finger_scan_invalid:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_invalid
|
||||
on_finger_scan_matched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_matched
|
||||
on_finger_scan_unmatched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_unmatched
|
||||
on_finger_scan_misplaced:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_misplaced
|
||||
on_enrollment_scan:
|
||||
- logger.log: test_fingerprint_grow_enrollment_scan
|
||||
on_enrollment_done:
|
||||
- logger.log: test_fingerprint_grow_node_enrollment_done
|
||||
on_enrollment_failed:
|
||||
- logger.log: test_fingerprint_grow_enrollment_failed
|
||||
|
||||
binary_sensor:
|
||||
- platform: fingerprint_grow
|
||||
name: Fingerprint Enrolling
|
||||
|
||||
sensor:
|
||||
- platform: fingerprint_grow
|
||||
fingerprint_count:
|
||||
name: Fingerprint Count
|
||||
status:
|
||||
name: Fingerprint Status
|
||||
capacity:
|
||||
name: Fingerprint Capacity
|
||||
security_level:
|
||||
name: Fingerprint Security Level
|
||||
last_finger_id:
|
||||
name: Fingerprint Last Finger ID
|
||||
last_confidence:
|
||||
name: Fingerprint Last Confidence
|
||||
<<: !include common.yaml
|
||||
|
@ -1,56 +1,6 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- fingerprint_grow.enroll:
|
||||
finger_id: 2
|
||||
num_scans: 2
|
||||
- fingerprint_grow.cancel_enroll:
|
||||
- fingerprint_grow.delete:
|
||||
finger_id: 2
|
||||
- fingerprint_grow.delete_all:
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
sensing_pin: GPIO15
|
||||
|
||||
uart:
|
||||
- id: uart_fingerprint_grow
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 57600
|
||||
|
||||
fingerprint_grow:
|
||||
sensing_pin: 18
|
||||
password: 0x12FE37DC
|
||||
new_password: 0xA65B9840
|
||||
on_finger_scan_start:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_start
|
||||
on_finger_scan_invalid:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_invalid
|
||||
on_finger_scan_matched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_matched
|
||||
on_finger_scan_unmatched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_unmatched
|
||||
on_finger_scan_misplaced:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_misplaced
|
||||
on_enrollment_scan:
|
||||
- logger.log: test_fingerprint_grow_enrollment_scan
|
||||
on_enrollment_done:
|
||||
- logger.log: test_fingerprint_grow_node_enrollment_done
|
||||
on_enrollment_failed:
|
||||
- logger.log: test_fingerprint_grow_enrollment_failed
|
||||
|
||||
binary_sensor:
|
||||
- platform: fingerprint_grow
|
||||
name: Fingerprint Enrolling
|
||||
|
||||
sensor:
|
||||
- platform: fingerprint_grow
|
||||
fingerprint_count:
|
||||
name: Fingerprint Count
|
||||
status:
|
||||
name: Fingerprint Status
|
||||
capacity:
|
||||
name: Fingerprint Capacity
|
||||
security_level:
|
||||
name: Fingerprint Security Level
|
||||
last_finger_id:
|
||||
name: Fingerprint Last Finger ID
|
||||
last_confidence:
|
||||
name: Fingerprint Last Confidence
|
||||
<<: !include common.yaml
|
||||
|
@ -1,56 +1,6 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- fingerprint_grow.enroll:
|
||||
finger_id: 2
|
||||
num_scans: 2
|
||||
- fingerprint_grow.cancel_enroll:
|
||||
- fingerprint_grow.delete:
|
||||
finger_id: 2
|
||||
- fingerprint_grow.delete_all:
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
sensing_pin: GPIO15
|
||||
|
||||
uart:
|
||||
- id: uart_fingerprint_grow
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 57600
|
||||
|
||||
fingerprint_grow:
|
||||
sensing_pin: 16
|
||||
password: 0x12FE37DC
|
||||
new_password: 0xA65B9840
|
||||
on_finger_scan_start:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_start
|
||||
on_finger_scan_invalid:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_invalid
|
||||
on_finger_scan_matched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_matched
|
||||
on_finger_scan_unmatched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_unmatched
|
||||
on_finger_scan_misplaced:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_misplaced
|
||||
on_enrollment_scan:
|
||||
- logger.log: test_fingerprint_grow_enrollment_scan
|
||||
on_enrollment_done:
|
||||
- logger.log: test_fingerprint_grow_node_enrollment_done
|
||||
on_enrollment_failed:
|
||||
- logger.log: test_fingerprint_grow_enrollment_failed
|
||||
|
||||
binary_sensor:
|
||||
- platform: fingerprint_grow
|
||||
name: Fingerprint Enrolling
|
||||
|
||||
sensor:
|
||||
- platform: fingerprint_grow
|
||||
fingerprint_count:
|
||||
name: Fingerprint Count
|
||||
status:
|
||||
name: Fingerprint Status
|
||||
capacity:
|
||||
name: Fingerprint Capacity
|
||||
security_level:
|
||||
name: Fingerprint Security Level
|
||||
last_finger_id:
|
||||
name: Fingerprint Last Finger ID
|
||||
last_confidence:
|
||||
name: Fingerprint Last Confidence
|
||||
<<: !include common.yaml
|
||||
|
@ -1,56 +1,6 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- fingerprint_grow.enroll:
|
||||
finger_id: 2
|
||||
num_scans: 2
|
||||
- fingerprint_grow.cancel_enroll:
|
||||
- fingerprint_grow.delete:
|
||||
finger_id: 2
|
||||
- fingerprint_grow.delete_all:
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
sensing_pin: GPIO6
|
||||
|
||||
uart:
|
||||
- id: uart_fingerprint_grow
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 57600
|
||||
|
||||
fingerprint_grow:
|
||||
sensing_pin: 6
|
||||
password: 0x12FE37DC
|
||||
new_password: 0xA65B9840
|
||||
on_finger_scan_start:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_start
|
||||
on_finger_scan_invalid:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_invalid
|
||||
on_finger_scan_matched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_matched
|
||||
on_finger_scan_unmatched:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_unmatched
|
||||
on_finger_scan_misplaced:
|
||||
- logger.log: test_fingerprint_grow_finger_scan_misplaced
|
||||
on_enrollment_scan:
|
||||
- logger.log: test_fingerprint_grow_enrollment_scan
|
||||
on_enrollment_done:
|
||||
- logger.log: test_fingerprint_grow_node_enrollment_done
|
||||
on_enrollment_failed:
|
||||
- logger.log: test_fingerprint_grow_enrollment_failed
|
||||
|
||||
binary_sensor:
|
||||
- platform: fingerprint_grow
|
||||
name: Fingerprint Enrolling
|
||||
|
||||
sensor:
|
||||
- platform: fingerprint_grow
|
||||
fingerprint_count:
|
||||
name: Fingerprint Count
|
||||
status:
|
||||
name: Fingerprint Status
|
||||
capacity:
|
||||
name: Fingerprint Capacity
|
||||
security_level:
|
||||
name: Fingerprint Security Level
|
||||
last_finger_id:
|
||||
name: Fingerprint Last Finger ID
|
||||
last_confidence:
|
||||
name: Fingerprint Last Confidence
|
||||
<<: !include common.yaml
|
||||
|
10
tests/components/fs3000/common.yaml
Normal file
10
tests/components/fs3000/common.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
i2c:
|
||||
- id: i2c_fs3000
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: fs3000
|
||||
name: Air Velocity
|
||||
model: 1005
|
||||
update_interval: 60s
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_fs3000
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: fs3000
|
||||
name: Air Velocity
|
||||
model: 1005
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_fs3000
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: fs3000
|
||||
name: Air Velocity
|
||||
model: 1005
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_fs3000
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: fs3000
|
||||
name: Air Velocity
|
||||
model: 1005
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_fs3000
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: fs3000
|
||||
name: Air Velocity
|
||||
model: 1005
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_fs3000
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: fs3000
|
||||
name: Air Velocity
|
||||
model: 1005
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_fs3000
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: fs3000
|
||||
name: Air Velocity
|
||||
model: 1005
|
||||
update_interval: 60s
|
||||
<<: !include common.yaml
|
||||
|
21
tests/components/ft5x06/common.yaml
Normal file
21
tests/components/ft5x06/common.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
i2c:
|
||||
- id: i2c_ft5x06
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: ${reset_pin}
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft5x06
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
@ -1,21 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ft5x06
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
reset_pin: GPIO15
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 18
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft5x06
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ft5x06
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
reset_pin: GPIO6
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft5x06
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ft5x06
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
reset_pin: GPIO6
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft5x06
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ft5x06
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
reset_pin: GPIO15
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 18
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft5x06
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ft5x06
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
reset_pin: GPIO15
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft5x06
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,6 @@
|
||||
i2c:
|
||||
- id: i2c_ft5x06
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
reset_pin: GPIO6
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft5x06
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
36
tests/components/ft63x6/common.yaml
Normal file
36
tests/components/ft63x6/common.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
spi:
|
||||
- id: spi_ft63x6
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: ${reset_pin}
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
interrupt_pin: ${interrupt_pin}
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: false
|
||||
mirror_y: true
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: tp touched
|
||||
on_update:
|
||||
- logger.log:
|
||||
format: to updated
|
||||
on_release:
|
||||
- logger.log:
|
||||
format: to released
|
@ -1,39 +1,9 @@
|
||||
spi:
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
substitutions:
|
||||
clk_pin: GPIO0
|
||||
mosi_pin: GPIO2
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
i2c:
|
||||
sda: GPIO18
|
||||
scl: GPIO19
|
||||
|
||||
display:
|
||||
- id: my_display
|
||||
platform: ili9xxx
|
||||
dimensions: 480x320
|
||||
model: ST7796
|
||||
cs_pin: 15
|
||||
dc_pin: 21
|
||||
reset_pin: 22
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: true
|
||||
auto_clear_enabled: false
|
||||
invert_colors: false
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
interrupt_pin: GPIO39
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: false
|
||||
mirror_y: true
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: tp touched
|
||||
on_update:
|
||||
- logger.log:
|
||||
format: to updated
|
||||
on_release:
|
||||
- logger.log:
|
||||
format: to released
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
clk_pin: GPIO0
|
||||
mosi_pin: GPIO2
|
||||
scl_pin: GPIO13
|
||||
sda_pin: GPIO14
|
||||
interrupt_pin: GPIO15
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 18
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO14
|
||||
mosi_pin: GPIO13
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
interrupt_pin: GPIO12
|
||||
reset_pin: GPIO16
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
@ -1,21 +1,9 @@
|
||||
i2c:
|
||||
- id: i2c_ft63x6
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
scl_pin: GPIO0
|
||||
sda_pin: GPIO1
|
||||
interrupt_pin: GPIO2
|
||||
reset_pin: GPIO3
|
||||
|
||||
display:
|
||||
- platform: ssd1306_i2c
|
||||
id: ssd1306_display
|
||||
model: SSD1306_128X64
|
||||
reset_pin: 3
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
|
||||
touchscreen:
|
||||
- platform: ft63x6
|
||||
on_touch:
|
||||
- logger.log:
|
||||
format: Touch at (%d, %d)
|
||||
args: [touch.x, touch.y]
|
||||
<<: !include common.yaml
|
||||
|
7
tests/components/fujitsu_general/common.yaml
Normal file
7
tests/components/fujitsu_general/common.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
remote_transmitter:
|
||||
pin: ${pin}
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
climate:
|
||||
- platform: fujitsu_general
|
||||
name: Fujitsu General Climate
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: fujitsu_general
|
||||
name: Fujitsu General Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: fujitsu_general
|
||||
name: Fujitsu General Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: fujitsu_general
|
||||
name: Fujitsu General Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO2
|
||||
|
||||
climate:
|
||||
- platform: fujitsu_general
|
||||
name: Fujitsu General Climate
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +1,4 @@
|
||||
remote_transmitter:
|
||||
pin: 5
|
||||
carrier_duty_percent: 50%
|
||||
substitutions:
|
||||
pin: GPIO5
|
||||
|
||||
climate:
|
||||
- platform: fujitsu_general
|
||||
name: Fujitsu General Climate
|
||||
<<: !include common.yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user