Skip to content
Platform agnostic bit banging serial communication implementation built using the embedded-hal
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Support for writing an array of bytes Jul 29, 2018
.gitignore Initial commit Jul 24, 2018
Cargo.toml Initial commit Jul 24, 2018
LICENSE-APACHE.txt Initial commit Jul 24, 2018
LICENSE-MIT.txt Initial commit Jul 24, 2018
README.md Support for writing an array of bytes Jul 29, 2018

README.md

bit-bang-serial

Bit banging implementation of serial communication using embedded-hal OutputPin

Limitations

Example

An example for the BETAFPV-F3 is listed below. Be sure to compile in release mode.

    let Board {motor_1: mut out, mut delay, ..} = Board::new();

    let baud = 9600u32;
    let time_adjustment = -6i32;
    let mut tx = bit_bang_serial::Tx::new(out, baud, time_adjustment);

    loop {
        tx.write(&mut delay, "Testing..".as_bytes());
        delay.delay_ms(5u32);
    }

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

You can’t perform that action at this time.