Skip to content
Merged
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
10 changes: 9 additions & 1 deletion adafruit_as7341.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,20 @@ class AS7341: # pylint:disable=too-many-instance-attributes, no-member
_all_channels: Struct = Struct(_AS7341_ASTATUS, "<BHHHHHH")
_led_current_bits: RWBits = RWBits(7, _AS7341_LED, 0)
_led_enabled = RWBit(_AS7341_LED, 7)

atime: UnaryStruct = UnaryStruct(_AS7341_ATIME, "<B")
"""The integration time step count.
Total integration time will be ``(ATIME + 1) * (ASTEP + 1) * 2.78µS``

:rtype: int
"""

astep: UnaryStruct = UnaryStruct(_AS7341_ASTEP_L, "<H")
""" The integration time step size in 2.78 microsecond increments"""
"""The integration time step size in 2.78 microsecond increments

:rtype: int
"""

_gain: UnaryStruct = UnaryStruct(_AS7341_CFG1, "<B")
_data_ready_bit: RWBit = RWBit(_AS7341_STATUS2, 6)
"""
Expand Down