1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Tools for communicating with Luminator signs over serial.
//!
//! For the basic task of sign communication, you likely want to use the high-level API
//! in the [`flipdot`] crate instead.
//!
//! However, you can use the [`configure_port`] function to configure serial port appropriately
//! if you're doing custom lower-level communication.
//!
//! Intended only for hobbyist and educational purposes. Not affiliated with Luminator in any way.
//!
//! # Examples
//!
//! ```no_run
//! use std::time::Duration;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! #
//! let mut port = serial::open("COM3")?;
//! flipdot_serial::configure_port(&mut port, Duration::from_secs(5))?;
//! // Now ready for communication with a sign (8N1 19200 baud).
//! #
//! # Ok(()) }
//! ```
//!
//! [`flipdot`]: https://docs.rs/flipdot
pub use configure_port;
pub use SerialSignBus;