linux_spidev 0.1.0-nullsafety copy "linux_spidev: ^0.1.0-nullsafety" to clipboard
linux_spidev: ^0.1.0-nullsafety copied to clipboard

outdated

Dart package for accessing SPI on Linux using the spidev interface.

spidev #

A dart package for SPI using the linux spidev interface. Uses FFI internally. Has no dependencies on flutter whatsoever.

Example #

/// Create a [Spidev] instance from the spidev's bus and device number.
/// That spidev may not exist. ([Spidev] is actually just a data class)
final spidev = Spidev.fromBusDevNrs(0, 0);

/// Open the spidev, so you can use it.
final handle = spidev.open();

print("mode: ${handle.mode}");
print("bitsPerWord: ${handle.bitsPerWord}");
print("maxSpeed: ${handle.maxSpeed}");

final typedData = Uint8List(4)

spidev.transferSingleTypedData()

handle.close();
0
likes
0
points
8
downloads

Publisher

verified publisherardera.dev

Weekly Downloads

Dart package for accessing SPI on Linux using the spidev interface.

Homepage

License

unknown (license)

Dependencies

ffi, meta, path, tuple

More

Packages that depend on linux_spidev