rpi_gpio 0.9.1 copy "rpi_gpio: ^0.9.1" to clipboard
rpi_gpio: ^0.9.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 'example_app.dart';

/// Launch the example by injecting an instance of [RpiGpio].
/// This only works on the Raspberry Pi.
///
/// The [example_app] 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.
void main() async {
  final gpio = await initialize_RpiGpio();
  await runExample(gpio);
}
27
likes
160
pub points
67%
popularity

Publisher

verified publisherdanrubel.net

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

path

More

Packages that depend on rpi_gpio