pub struct EzoBoard<I2C> { /* private fields */ }
Expand description

Newtype that encapsulates the I2C device and it’s address.

Implementations

I2C must implement the embedded-hal traits for I2C. Specifically Read and Write are required.

https://docs.rs/embedded-hal/0.2.4/embedded_hal/blocking/i2c/index.html

Sends a command to the Ezo device and then sleep the specified delay. Does not sleep on delay if delay is Duration:new(0,0)

Reads from ezo device, checks response code and returns the result as a string for convenience.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.