linux_spidev 0.2.1+6 copy "linux_spidev: ^0.2.1+6" to clipboard
linux_spidev: ^0.2.1+6 copied to clipboard

Dart package for accessing SPI on Linux using the spidev interface and dart:ffi.

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
150
points
8
downloads

Publisher

verified publisherardera.dev

Weekly Downloads

Dart package for accessing SPI on Linux using the spidev interface and dart:ffi.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

_ardera_common_libc_bindings, ffi, meta, path, tuple

More

Packages that depend on linux_spidev