Accessing Peripherals via a Flutter-Pi app

Inspired by the Seeed article " Build Your Own UI Using Flutter", I’m wondering if and how it’s possible to access a USB peripheral that’s connected to my Pi Zero 2 W.

The Pi has a USB hub with Keyboard/Mouse and a “TEMPerHUM” (temperature/humidity sensor). I think it’s an HID device, but not sure how to get Flutter to read from it. Not sure if I’m using the right packages (ex. gpiod 3.0.1 vs flutter_gpiod 0.5.0)

Or if there’s any Flutter experts out there… before trying on the Pi, I tried testing things via a Flutter Desktop app, but couldn’t get the ‘FFI’ to call the functions in my 32-bit DLLs.

There a open source lib:

or change to an I2C sensor.

dart_periphery | Dart package - see section flutter-pi-sensor-tester
GitHub - pezi/flutter_pi_sensor_tester: Sensor tester based on dart_periphery and flutter-pi

See the

The flutter_gpiod package is primarily used to interface with the GPIO pins of the Raspberry Pi and may not be directly relevant for reading from USB devices like your sensor.