Skip to content

Commit ac39852

Browse files
committed
"Reformatted per new black version"
1 parent d61f58c commit ac39852

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adafruit_vl6180x.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def range_from_history(self) -> Optional[int]:
141141

142142
@property
143143
def ranges_from_history(self) -> Optional[List[int]]:
144-
""" Read the last 16 range measurements from history """
144+
"""Read the last 16 range measurements from history"""
145145

146146
if not self.range_history_enabled:
147147
return None
@@ -153,7 +153,7 @@ def ranges_from_history(self) -> Optional[List[int]]:
153153

154154
@property
155155
def range_history_enabled(self) -> bool:
156-
""" Checks if history buffer stores range data """
156+
"""Checks if history buffer stores range data"""
157157

158158
history_ctrl: int = self._read_8(_VL6180X_REG_SYSTEM_HISTORY_CTRL)
159159

@@ -192,7 +192,7 @@ def stop_range_continuous(self) -> None:
192192

193193
@property
194194
def continuous_mode_enabled(self) -> bool:
195-
""" Checks if continuous mode is enabled """
195+
"""Checks if continuous mode is enabled"""
196196
return self._read_8(_VL6180X_REG_SYSRANGE_START) > 1 & 0x1
197197

198198
@property
@@ -208,14 +208,14 @@ def offset(self, offset: int) -> None:
208208
self._offset = offset
209209

210210
def _read_range_single(self) -> int:
211-
""" Read the range when in single-shot mode"""
211+
"""Read the range when in single-shot mode"""
212212
while not self._read_8(_VL6180X_REG_RESULT_RANGE_STATUS) & 0x01:
213213
pass
214214
self._write_8(_VL6180X_REG_SYSRANGE_START, 0x01)
215215
return self._read_range_continuous()
216216

217217
def _read_range_continuous(self) -> int:
218-
""" Read the range when in continuous mode"""
218+
"""Read the range when in continuous mode"""
219219

220220
# Poll until bit 2 is set
221221
while not self._read_8(_VL6180X_REG_RESULT_INTERRUPT_STATUS_GPIO) & 0x04:

0 commit comments

Comments
 (0)