You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since most of the functionality abstracts over the bus by use of the DataBus trait we should be able to provide a mock struct that implements DataBus and can assert that the correct commands are being written.
The text was updated successfully, but these errors were encountered:
An enum could be used, where each variant contains a different bus type.
Than users of the API could pass the HD44780 around without the need to specify on every function that B is a DataBus.
Since most of the functionality abstracts over the bus by use of the
DataBus
trait we should be able to provide a mock struct that implementsDataBus
and can assert that the correct commands are being written.The text was updated successfully, but these errors were encountered: