dartusbhid 0.1.0 copy "dartusbhid: ^0.1.0" to clipboard
dartusbhid: ^0.1.0 copied to clipboard

A dart wrapper for libusbhid, to interface with human input devices.

dartusbhid #

A dart wrapper for libusbhid, to interface with human input devices. It runs in its own isolate. Supports

  • Enumerating USB HID devices
  • Reading and writing device reports with or without report ID

Planned:

  • Read and write feature reports

Installation #

flutter pub add dartusbhid

Usage #

import 'package:dartusbhid/usb_device.dart';

final devices = await enumerateDevices(0, 0);
for (final device in devices) {
  print(device);
}

final openDevice = await device[0].open();
final receivedData = await openDevice.readReport();
await openDevice.close();

Development #

To try out the example

git clone https://github.com/TobiasJacob/dartusbhid.git
cd dartusbhid/example
flutter run

from there on you can start to develop the library.

4
likes
0
pub points
65%
popularity

Publisher

unverified uploader

A dart wrapper for libusbhid, to interface with human input devices.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ffi, flutter, plugin_platform_interface

More

Packages that depend on dartusbhid