Open
Description
I'm trying to use a PS Eye with a Raspberry pi, and when I try to run the example script in the docs, the mmap returns an OS Error (EINVAL
). The exact code adapted for acceptable framerates, resolutions, etc. is:
extern crate rscam;
use rscam::{Camera, Config};
fn main() {
let mut camera = Camera::new("/dev/video0").unwrap();
camera.start(&Config {
interval: (1, 30),
resolution: (320, 240),
format: b"RGB3",
..Default::default()
}).unwrap();
for i in 0..10 {
let frame = camera.capture().unwrap();
}
}
Metadata
Metadata
Assignees
Labels
No labels