mirror of
https://github.com/esphome/esphome.git
synced 2025-02-12 16:08:19 +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:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO12
|
||||||
then:
|
rx_pin: GPIO14
|
||||||
- fingerprint_grow.enroll:
|
sensing_pin: GPIO15
|
||||||
finger_id: 2
|
|
||||||
num_scans: 2
|
|
||||||
- fingerprint_grow.cancel_enroll:
|
|
||||||
- fingerprint_grow.delete:
|
|
||||||
finger_id: 2
|
|
||||||
- fingerprint_grow.delete_all:
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,56 +1,6 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO4
|
||||||
then:
|
rx_pin: GPIO5
|
||||||
- fingerprint_grow.enroll:
|
sensing_pin: GPIO6
|
||||||
finger_id: 2
|
|
||||||
num_scans: 2
|
|
||||||
- fingerprint_grow.cancel_enroll:
|
|
||||||
- fingerprint_grow.delete:
|
|
||||||
finger_id: 2
|
|
||||||
- fingerprint_grow.delete_all:
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,56 +1,6 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO4
|
||||||
then:
|
rx_pin: GPIO5
|
||||||
- fingerprint_grow.enroll:
|
sensing_pin: GPIO6
|
||||||
finger_id: 2
|
|
||||||
num_scans: 2
|
|
||||||
- fingerprint_grow.cancel_enroll:
|
|
||||||
- fingerprint_grow.delete:
|
|
||||||
finger_id: 2
|
|
||||||
- fingerprint_grow.delete_all:
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,56 +1,6 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO12
|
||||||
then:
|
rx_pin: GPIO14
|
||||||
- fingerprint_grow.enroll:
|
sensing_pin: GPIO15
|
||||||
finger_id: 2
|
|
||||||
num_scans: 2
|
|
||||||
- fingerprint_grow.cancel_enroll:
|
|
||||||
- fingerprint_grow.delete:
|
|
||||||
finger_id: 2
|
|
||||||
- fingerprint_grow.delete_all:
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,56 +1,6 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO4
|
||||||
then:
|
rx_pin: GPIO5
|
||||||
- fingerprint_grow.enroll:
|
sensing_pin: GPIO15
|
||||||
finger_id: 2
|
|
||||||
num_scans: 2
|
|
||||||
- fingerprint_grow.cancel_enroll:
|
|
||||||
- fingerprint_grow.delete:
|
|
||||||
finger_id: 2
|
|
||||||
- fingerprint_grow.delete_all:
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
@ -1,56 +1,6 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
tx_pin: GPIO4
|
||||||
then:
|
rx_pin: GPIO5
|
||||||
- fingerprint_grow.enroll:
|
sensing_pin: GPIO6
|
||||||
finger_id: 2
|
|
||||||
num_scans: 2
|
|
||||||
- fingerprint_grow.cancel_enroll:
|
|
||||||
- fingerprint_grow.delete:
|
|
||||||
finger_id: 2
|
|
||||||
- fingerprint_grow.delete_all:
|
|
||||||
|
|
||||||
uart:
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_fs3000
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: fs3000
|
|
||||||
name: Air Velocity
|
|
||||||
model: 1005
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_fs3000
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: fs3000
|
|
||||||
name: Air Velocity
|
|
||||||
model: 1005
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_fs3000
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: fs3000
|
|
||||||
name: Air Velocity
|
|
||||||
model: 1005
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_fs3000
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: fs3000
|
|
||||||
name: Air Velocity
|
|
||||||
model: 1005
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_fs3000
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: fs3000
|
|
||||||
name: Air Velocity
|
|
||||||
model: 1005
|
|
||||||
update_interval: 60s
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_fs3000
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
sensor:
|
<<: !include common.yaml
|
||||||
- platform: fs3000
|
|
||||||
name: Air Velocity
|
|
||||||
model: 1005
|
|
||||||
update_interval: 60s
|
|
||||||
|
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:
|
substitutions:
|
||||||
- id: i2c_ft5x06
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
reset_pin: GPIO15
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft5x06
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
reset_pin: GPIO6
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft5x06
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
reset_pin: GPIO6
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft5x06
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
reset_pin: GPIO15
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft5x06
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
reset_pin: GPIO15
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft5x06
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
reset_pin: GPIO6
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
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:
|
substitutions:
|
||||||
clk_pin: 14
|
clk_pin: GPIO0
|
||||||
mosi_pin: 13
|
mosi_pin: GPIO2
|
||||||
|
scl_pin: GPIO13
|
||||||
|
sda_pin: GPIO14
|
||||||
|
interrupt_pin: GPIO15
|
||||||
|
reset_pin: GPIO16
|
||||||
|
|
||||||
i2c:
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
@ -1,21 +1,9 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft63x6
|
clk_pin: GPIO6
|
||||||
scl: 5
|
mosi_pin: GPIO7
|
||||||
sda: 4
|
scl_pin: GPIO0
|
||||||
|
sda_pin: GPIO1
|
||||||
|
interrupt_pin: GPIO2
|
||||||
|
reset_pin: GPIO3
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
@ -1,21 +1,9 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft63x6
|
clk_pin: GPIO6
|
||||||
scl: 5
|
mosi_pin: GPIO7
|
||||||
sda: 4
|
scl_pin: GPIO0
|
||||||
|
sda_pin: GPIO1
|
||||||
|
interrupt_pin: GPIO2
|
||||||
|
reset_pin: GPIO3
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
@ -1,21 +1,9 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft63x6
|
clk_pin: GPIO0
|
||||||
scl: 16
|
mosi_pin: GPIO2
|
||||||
sda: 17
|
scl_pin: GPIO13
|
||||||
|
sda_pin: GPIO14
|
||||||
|
interrupt_pin: GPIO15
|
||||||
|
reset_pin: GPIO16
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
@ -1,21 +1,9 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft63x6
|
clk_pin: GPIO14
|
||||||
scl: 5
|
mosi_pin: GPIO13
|
||||||
sda: 4
|
scl_pin: GPIO5
|
||||||
|
sda_pin: GPIO4
|
||||||
|
interrupt_pin: GPIO12
|
||||||
|
reset_pin: GPIO16
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
@ -1,21 +1,9 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_ft63x6
|
clk_pin: GPIO6
|
||||||
scl: 5
|
mosi_pin: GPIO7
|
||||||
sda: 4
|
scl_pin: GPIO0
|
||||||
|
sda_pin: GPIO1
|
||||||
|
interrupt_pin: GPIO2
|
||||||
|
reset_pin: GPIO3
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- 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]
|
|
||||||
|
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:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: fujitsu_general
|
|
||||||
name: Fujitsu General Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: fujitsu_general
|
|
||||||
name: Fujitsu General Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: fujitsu_general
|
|
||||||
name: Fujitsu General Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 2
|
pin: GPIO2
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: fujitsu_general
|
|
||||||
name: Fujitsu General Climate
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
remote_transmitter:
|
substitutions:
|
||||||
pin: 5
|
pin: GPIO5
|
||||||
carrier_duty_percent: 50%
|
|
||||||
|
|
||||||
climate:
|
<<: !include common.yaml
|
||||||
- platform: fujitsu_general
|
|
||||||
name: Fujitsu General Climate
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user