rpi_gpio 0.5.0

Dart native js
Flutter Android iOS web

rpi_gpio is a Dart library for accessing the Raspberry Pi GPIO pins.

example/example.dart

import 'package:rpi_gpio/rpi_gpio.dart';

import 'exampleApp.dart';

/// Launch the example by injecting an instance of [RpiGpio].
/// This only works on the Raspberry Pi.
///
/// The [exampleApp] resides in a separate library
/// so that it does not reference the [RpiGpio] native libary
/// and thus can be tested with a mock [Gpio] on any platform.
main() async {
  final gpio = new RpiGpio();
  await runExample(gpio);
  gpio.dispose();
}
5
likes
85
pub points
26%
popularity

rpi_gpio is a Dart library for accessing the Raspberry Pi GPIO pins.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploaders

danrubel@google.com
devoncarew@google.com
dan.rubel.usa@gmail.com

License

BSD (LICENSE)

Dependencies

path

More

Packages that depend on rpi_gpio