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.

example/lib/main.dart

import 'package:linux_spidev/linux_spidev.dart';

void main() {
  final spidev = Spidev.fromBusDevNrs(0, 0);

  final handle = spidev.open();

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

  handle.close();
}
0
likes
0
points
6
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