Skip to content

Commit

Permalink
Make init_hardware function public (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucazulian authored Mar 10, 2023
1 parent e47843a commit 05b74ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ where
Ok(chip)
}

fn init_hardware(&mut self) -> Result<(), Error<E>> {
pub fn init_hardware(&mut self) -> Result<(), Error<E>> {
// set all inputs to defaults on port A and B
self.write_register(Register::IODIRA, 0xff)?;
self.write_register(Register::IODIRB, 0xff)?;
Expand Down

0 comments on commit 05b74ba

Please sign in to comment.