Pixoo
A Rust crate for interacting with Divoom Pixoo devices.
The crate is pretty basic in its functionality and does not support all features by far, but I think the most important ones are covered.
Tested only on Linux. I have no idea whether this works on Windows or Mac, and if it doesn't and you need it to, go fix it yourself.
Examples
Before running any code, make sure you have the Pixoo device paired in your Bluetooth settings.
More extensive examples can be found in the
examples directory.
Run them with:
Displaying an Image
# use FromStr;
# use BtAddr;
# use Pixoo;
// you can either connect to a specific MAC address or try to find the device automatically
//let mut pixoo = Pixoo::find(Duration::from_millis(100)).unwrap();
let mut pixoo = connect.unwrap;
let img = open.unwrap;
pixoo.set_image.unwrap;
Adjusting the Brightness
# use FromStr;
# use BtAddr;
# use ;
let mut pixoo = connect.unwrap;
pixoo.set_brightness.unwrap;
Display the Time
# use FromStr;
# use BtAddr;
# use ;
let mut pixoo = connect.unwrap;
pixoo.set_brightness.unwrap;
pixoo.set_mode.unwrap;