Giter VIP home page Giter VIP logo

raspi_crate_sample's Introduction

raspi_crate_sample

Overview

Sample correction for crate(Rust library) to control Raspberry Pi

Enable SPI

SPI is disabled when Raspberry pi is in default configration.
For enabling SPI, you need run raspi-config or add dtparam=spi=on to /boot/config.txt in root permission, and reboot.

Circuit for samples

The Following figure indicate circuit for crate samples.

Circuit

Crate samples

Each crate sample is in "Sample" directory. These sample worked in Rust 1.27.0. Supported functions in each crate listed following table.

rppal rustpi_io sysfs_gpio wiring_pi
GPIO
SPI - -

〇: Supported and the function don't need root permission.
△: Supported but the function need root permission.
-: Not supported.

Crate repository url, crates.io url, license, listed below.

rppal

rppal is Raspberry Pi Periphral Access Library.

crate.io

https://crates.io/crates/rppal

repository

https://github.com/golemparts/rppal

Licence

MIT

rustpi_io

rustpi_io is library to access GPIO and SPI.

crate.io

https://crates.io/crates/rustpi_io

repository

https://github.com/Skasselbard/rustpiIO

Licence

GPL-3.0

sysfs_gpio

sysfs_gpio is library to access Linux sysfs GPIO interface.

crate.io

https://crates.io/crates/sysfs-gpio

repository

https://github.com/rust-embedded/rust-sysfs-gpio

Licence

MIT/Apache 2.0

wiringpi

wiringpi is wrapper library for WiringPi, GPIO access library written in C.

crate.io

https://crates.io/crates/wiringpi

repository

https://github.com/Ogeon/rust-wiringpi

Licence

MIT

Licence of samples

Each sample conform to each crate lincence(See "Crate samples" section).

raspi_crate_sample's People

Contributors

hukatama024e avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.