Crates.io | cylus |
lib.rs | cylus |
version | 0.1.0 |
source | src |
created_at | 2016-01-31 22:33:45.948045 |
updated_at | 2016-01-31 22:33:45.948045 |
description | Inspired by WiringPi, a library for RaspberryPi GPIO |
homepage | https://github.com/Vikaton/cylus.git |
repository | https://github.com/Vikaton/cylus.git |
max_upload_size | |
id | 4040 |
size | 6,655 |
######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
#Converting into a library