Skip to content

Commit 5d685f6

Browse files
committed
Ran pre-commit and black, licenses still needed
1 parent 7cbde08 commit 5d685f6

File tree

2 files changed

+23
-25
lines changed

2 files changed

+23
-25
lines changed

CODE_OF_CONDUCT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Examples of unacceptable behavior by participants include:
4343

4444
The goal of the standards and moderation guidelines outlined here is to build
4545
and maintain a respectful community. We ask that you don’t just aim to be
46-
"technically unimpeachable", but rather try to be your best self.
46+
"technically unimpeachable", but rather try to be your best self.
4747

4848
We value many things beyond technical expertise, including collaboration and
4949
supporting others within our community. Providing a positive experience for
@@ -74,9 +74,9 @@ You may report in the following ways:
7474
In any situation, you may send an email to <[email protected]>.
7575

7676
On the Adafruit Discord, you may send an open message from any channel
77-
to all Community Moderators by tagging @community moderators. You may
78-
also send an open message from any channel, or a direct message to
79-
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
77+
to all Community Moderators by tagging @community moderators. You may
78+
also send an open message from any channel, or a direct message to
79+
@kattni#1507, @tannewt#4653, @Dan Halbert#1614, @cater#2442,
8080
@sommersoft#0222, @Mr. Certainly#0472 or @Andon#8175.
8181

8282
Email and direct message reports will be kept confidential.

adafruit_as726x.py

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@
117117

118118

119119
class AS726x:
120-
"""AS726x spectral sensor base class.
121-
122-
"""
120+
"""AS726x spectral sensor base class."""
123121

124122
MODE_0 = 0b00
125123
"""Continuously gather samples of violet, blue, green and yellow. Orange and red are skipped
@@ -204,10 +202,10 @@ def indicator_led(self, val):
204202
def driver_led_current(self):
205203
"""The current limit for the driver LED in milliamps. One of:
206204
207-
- 12.5 mA
208-
- 25 mA
209-
- 50 mA
210-
- 100 mA"""
205+
- 12.5 mA
206+
- 25 mA
207+
- 50 mA
208+
- 100 mA"""
211209
return self._driver_led_current
212210

213211
@driver_led_current.setter
@@ -226,10 +224,10 @@ def driver_led_current(self, val):
226224
def indicator_led_current(self):
227225
"""The current limit for the indicator LED in milliamps. One of:
228226
229-
- 1 mA
230-
- 2 mA
231-
- 4 mA
232-
- 8 mA"""
227+
- 1 mA
228+
- 2 mA
229+
- 4 mA
230+
- 8 mA"""
233231
return self._indicator_led_current
234232

235233
@indicator_led_current.setter
@@ -248,10 +246,10 @@ def indicator_led_current(self, val):
248246
def conversion_mode(self):
249247
"""The conversion mode. One of:
250248
251-
- `MODE_0`
252-
- `MODE_1`
253-
- `MODE_2`
254-
- `ONE_SHOT`"""
249+
- `MODE_0`
250+
- `MODE_1`
251+
- `MODE_2`
252+
- `ONE_SHOT`"""
255253
return self._conversion_mode
256254

257255
@conversion_mode.setter
@@ -300,8 +298,8 @@ def integration_time(self, val):
300298
def start_measurement(self):
301299
"""Begin a measurement.
302300
303-
This will set the device to One Shot mode and values will not change after `data_ready`
304-
until `start_measurement` is called again or the `conversion_mode` is changed."""
301+
This will set the device to One Shot mode and values will not change after `data_ready`
302+
until `start_measurement` is called again or the `conversion_mode` is changed."""
305303
state = self._virtual_read(_AS726X_CONTROL_SETUP)
306304
state &= ~(0x02)
307305
self._virtual_write(_AS726X_CONTROL_SETUP, state)
@@ -401,8 +399,8 @@ def _virtual_write(self, addr, value):
401399
class AS726x_I2C(AS726x):
402400
"""AS726x spectral sensor via I2C.
403401
404-
:param ~busio.I2C i2c_bus: The I2C bus connected to the sensor
405-
"""
402+
:param ~busio.I2C i2c_bus: The I2C bus connected to the sensor
403+
"""
406404

407405
def __init__(self, i2c_bus, address=_AS726X_ADDRESS):
408406
self.i2c_device = I2CDevice(i2c_bus, address)
@@ -467,8 +465,8 @@ def _virtual_write(self, addr, value):
467465
class AS726x_UART(AS726x):
468466
"""AS726x spectral sensor via UART.
469467
470-
:param ~busio.UART uart: The UART connected to the sensor
471-
"""
468+
:param ~busio.UART uart: The UART connected to the sensor
469+
"""
472470

473471
def __init__(self, uart):
474472
self._uart = uart

0 commit comments

Comments
 (0)