linux_spidev 0.2.1+3 linux_spidev: ^0.2.1+3 copied to clipboard
Dart package for accessing SPI on Linux using the spidev interface and dart:ffi.
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();
}