cylus

Crates.iocylus
lib.rscylus
version0.1.0
sourcesrc
created_at2016-01-31 22:33:45.948045
updated_at2016-01-31 22:33:45.948045
descriptionInspired by WiringPi, a library for RaspberryPi GPIO
homepagehttps://github.com/Vikaton/cylus.git
repositoryhttps://github.com/Vikaton/cylus.git
max_upload_size
id4040
size6,655
Sinatra (Vikaton)

documentation

http://stackin.money/doc/cylus/index.html

README

Cylus Build status

######Library for RaspberryPi GPIO - Documentation

To cross-compile on RaspberryPi, follow these instructions: https://github.com/Ogeon/rust-on-raspberry-pi

#Example

#![allow(deprecated)]
extern crate cylus;

use cylus::Cylus;

fn main() {
    println!("Starting..");
    let gpio = Cylus::new(24);
    for _ in 1..10 {
        println!("{}", gpio.read());
        gpio.high();
        
        std::thread::sleep_ms(1000);
        println!("{}", gpio.read());
        
        gpio.low();
        std::thread::sleep_ms(1000);
    }
}

#TODO

  • get Rust working on raspberrypi
  • Read BCM2835 ARM Peripherals manual
  • make it work

#Converting into a library

  • simple digital GPIO input/output
  • add Pwm functionality
  • publish to crates.io
Commit count: 65

cargo fmt