mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 10:38:38 +00:00
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
23 lines
578 B
YAML
23 lines
578 B
YAML
tinyusb:
|
|
id: tinyusb_test
|
|
usb_lang_id: 0x0123
|
|
usb_manufacturer_str: ESPHomeTestManufacturer
|
|
usb_product_id: 0x1234
|
|
usb_product_str: ESPHomeTestProduct
|
|
usb_serial_str: ESPHomeTestSerialNumber
|
|
usb_vendor_id: 0x2345
|
|
on_mount:
|
|
- logger.log: USB host mounted
|
|
- if:
|
|
condition:
|
|
tinyusb.is_mounted:
|
|
then:
|
|
- logger.log: USB host is mounted
|
|
on_unmount:
|
|
- logger.log: USB host unmounted
|
|
|
|
# tinyusb requires at least one USB class companion; usb_cdc_acm satisfies that.
|
|
usb_cdc_acm:
|
|
interfaces:
|
|
- id: tinyusb_test_cdc
|