Skip to content

Commit

Permalink
Add wakeup function to LTC6810
Browse files Browse the repository at this point in the history
  • Loading branch information
AussieSeaweed committed Jan 22, 2025
1 parent 04f1f12 commit 6dc0ffc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions iclib/ltc6810.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,14 @@ def get_address_command_bytes(

return CMD0, CMD1

def wakeup(self) -> None:
"""Wake up the serial interface (Page 54).
:return: ``None``.
"""
self.spi.transfer([0])
_sleep(10e-6)

class CHMode(Enum):
"""The CH ADC Modes, as defined in Page 63 of datasheet."""

Expand Down

0 comments on commit 6dc0ffc

Please sign in to comment.