gpio 0.2.0
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 gpioWith Flutter:
$ flutter pub add gpioThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
gpio: ^0.2.0Alternatively, 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';