Rename library functions from "main"

This commit is contained in:
George Kaklamanos 2023-06-30 18:02:40 +03:00
parent 6e6d4b227d
commit 983456997b
5 changed files with 8 additions and 8 deletions

View file

@ -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)