Skip to content

Commit

Permalink
Add public function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucazulian committed Mar 10, 2023
1 parent 05b74ba commit ff87cbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ where
Ok(chip)
}

/// Initiates hardware with basic setup.
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)?;
Expand Down

0 comments on commit ff87cbe

Please sign in to comment.