gpio 0.2.0 copy "gpio: ^0.2.0" to clipboard
gpio: ^0.2.0 copied to clipboard

Linux GPIO from pure Dart over the /dev/gpiochip v2 ABI — no native library. Kernel debounce, edge-event streams with kernel timestamps, and dropped-edge detection.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add gpio

With Flutter:

 $ flutter pub add gpio

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  gpio: ^0.2.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:gpio/gpio.dart';
0
likes
160
points
162
downloads

Documentation

API reference

Publisher

verified publisheraquiles.dev

Weekly Downloads

Linux GPIO from pure Dart over the /dev/gpiochip v2 ABI — no native library. Kernel debounce, edge-event streams with kernel timestamps, and dropped-edge detection.

Repository (GitHub)
View/report issues

Topics

#gpio #linux #embedded #raspberry-pi #ffi

License

MIT (license)

Dependencies

ffi, meta

More

Packages that depend on gpio