rpi_gpio 0.5.0 copy "rpi_gpio: ^0.5.0" to clipboard
rpi_gpio: ^0.5.0 copied to clipboard

outdated

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();
}
24
likes
0
pub points
61%
popularity

Publisher

verified publisherdanrubel.net

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

path

More

Packages that depend on rpi_gpio