rpi_spi 0.1.0 copy "rpi_spi: ^0.1.0" to clipboard
rpi_spi: ^0.1.0 copied to clipboard

outdated

rpi_spi is a Dart library for using SPI on the Raspberry Pi.

rpi_spi.dart #

pub package Build Status

rpi_spi is a Dart package for using SPI on the Raspberry Pi.

Overview #

  • The Spi library provides the API for accessing devices using the SPI protocol

  • The RpiSpi library provides implementation of the SPI protocol on the Raspberry Pi derived from the WiringPi library.

Setup #

Be sure to enable SPI on the Raspberry Pi using

    sudo raspi-config

RpiSpi uses a native library written in C. For security reasons, authors cannot publish binary content to pub.dartlang.org, so there are some extra steps necessary to compile the native library on the RPi before this package can be used. These two steps must be performed when you install and each time you upgrade the rpi_spi package.

  1. Activate the rpi_spi package using the pub global command.
    pub global activate rpi_spi
  1. From your application directory (the application that references the rpi_spi package) run the following command to build the native library
    pub global run rpi_spi:build_lib

pub global activate makes the Dart scripts in the rpi_spi/bin directory runnable from the command line. pub global run rpi_spi:build_lib runs the rpi_spi/bin/build_lib.dart program which in turn calls the build_lib script to compile the native librpi_spi_ext.so library for the rpi_spi package.

Example #

TBD

2
likes
0
pub points
11%
popularity

Publisher

verified publisherdanrubel.net

rpi_spi is a Dart library for using SPI on the Raspberry Pi.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

path

More

Packages that depend on rpi_spi