rust-powered-lego 0.2.0

This crate aims to control a regular Powered Up motor using a Technic Hub.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate rust_powered_lego;

#[cfg(test)]
mod tests {
    use rust_powered_lego::lego::check_for_lego_error;

    #[test]
    fn parse_lego_error_test() {
        let arr = vec![0x03, 0x04];
        let res = check_for_lego_error(&arr);

        assert_eq!(res.is_ok(), false);
    }
}