mirror of
https://github.com/mik3y/usb-serial-for-android
synced 2025-06-13 02:46:18 +00:00
Created Compatible Serial Devices (markdown)
parent
40555589be
commit
3cf2a81473
9
Compatible-Serial-Devices.md
Normal file
9
Compatible-Serial-Devices.md
Normal file
@ -0,0 +1,9 @@
|
||||
// Probe for our custom CDC devices, which use VID 0x1234
|
||||
// and PIDS 0x0001 and 0x0002.
|
||||
ProbeTable customTable = new ProbeTable();
|
||||
customTable.addProduct(0x1234, 0x0001, CdcAcmSerialDriver.class);
|
||||
customTable.addProduct(0x1234, 0x0002, CdcAcmSerialDriver.class);
|
||||
|
||||
UsbSerialProber prober = new UsbSerialProber(customTable);
|
||||
List<UsbSerialDriver> drivers = prober.findAllDrivers(usbManager);
|
||||
// ...
|
Loading…
x
Reference in New Issue
Block a user