rpi_gpio 0.8.1 icon indicating copy to clipboard operation
rpi_gpio: ^0.8.1 copied to clipboard

PlatformLinux

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 = await initialize_RpiGpio();
  await runExample(gpio);
}
17
likes
130
pub points
45%
popularity

Publisher

verified publisher icondanrubel.net

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

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

path

More

Packages that depend on rpi_gpio