Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions SolixBLE/devices/c1000.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,25 @@ def power_out(self) -> int:
"""
return self._parse_int("b0", begin=1)

@property
def dc_output(self) -> PortStatus:
"""DC Port Status.

PortStatus.NOT_CONNECTED signifies off.
PortStatus.OUTPUT signifies on.

:returns: Status of the DC output port.
"""
return PortStatus(self._parse_int("b2", begin=1, end=2))

@property
def dc_power_out(self) -> int:
"""DC Power Out.

:returns: DC power out or default int value.
"""
return self._parse_int("b2", begin=2)

@property
def software_version(self) -> str:
"""Main software version.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ AC on/off state ✅ N/A ✅ ✅ ✅
AC Timer ✅ N/A ✅ ✅ ❌ ❌ ❌
DC on/off control ✅ ❌ ✅ ✅ ✅ ❌ ❌
DC Power in ✅ ✅ ✅ ✅ ✅ ✅ ✅
DC Power out ✅ ✅ ❌ ✅ ✅ ✅
DC Power out ✅ ✅ ❌ ✅ ✅ ✅
DC Power in status ✅ ✅ ❌ ❌ ✅ ❌ ❌
DC Power out status ✅ ❌ ❌ ✅ ❌ ✅
DC Power out status ✅ ❌ ❌ ✅ ❌ ✅
DC Timer ✅ ✅ ❌ ❌ ❌ ❌ ❌
USB Power out ✅ ✅ ✅ ✅ ✅ ✅ ✅
USB Port status ✅ ✅ ❌ ❌ ✅ ❌ ✅
Expand Down
Loading