Skip to content

5nyper/cylus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Inspired by WiringPi, a library for RaspberryPi GPIO -

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages