Rename library functions from "main"
This commit is contained in:
parent
6e6d4b227d
commit
983456997b
5 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
use gpio_cdev::{Chip, LineRequestFlags};
|
||||
|
||||
pub fn main() {
|
||||
pub fn gpio() {
|
||||
let mut chip = Chip::new("/dev/gpiochip0").unwrap();
|
||||
let handle = chip
|
||||
.get_line(6)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue