Skip to content

Commit

Permalink
Add readme and some basic documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Apr 29, 2020
1 parent 4004aef commit f5463f8
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# `embedded-hal` traits implementation by bit banging

[![crates.io](https://img.shields.io/crates/v/bitbang-hal.svg)](https://crates.io/crates/bitbang-hal)
[![Docs](https://docs.rs/bitbang-hal/badge.svg)](https://docs.rs/bitbang-hal)

This is a [bit banging] implementation of the [`embedded-hal`] traits.

[bit banging]: https://en.wikipedia.org/wiki/Bit_banging
[`embedded-hal`]: https://github.com/rust-embedded/embedded-hal

## Usage

See example programs in the `examples` folder.

## Support

For questions, issues, feature requests, and other changes, please file an
issue in the github project.

## License

Licensed under MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

### Contributing

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

11 changes: 10 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
//! This is a [bit banging] implementation of the [`embedded-hal`] traits.
//!
//! [bit banging]: https://en.wikipedia.org/wiki/Bit_banging
//! [`embedded-hal`]: https://github.com/rust-embedded/embedded-hal
//!
//! ## Usage examples
//!
//! See usage examples in the examples folder in the crate sources
#![no_std]

pub mod i2c;
pub mod spi;
pub mod serial;
pub mod spi;
2 changes: 2 additions & 0 deletions src/serial.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Serial communication (USART)
use embedded_hal::digital::v2::{OutputPin, InputPin};
use embedded_hal::timer::{CountDown, Periodic};
use embedded_hal::serial;
Expand Down
2 changes: 2 additions & 0 deletions src/spi.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Serial Peripheral Interface
pub use embedded_hal::spi::{MODE_0, MODE_1, MODE_2, MODE_3};

use embedded_hal::digital::v2::{InputPin, OutputPin};
Expand Down

0 comments on commit f5463f8

Please sign in to comment.