Skip to content

Commit 7a217f6

Browse files
committed
Run pre-commit
1 parent 15db211 commit 7a217f6

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

adafruit_pcf8591/analog_in.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def value(self) -> int:
7373
@property
7474
def reference_voltage(self) -> float:
7575
"""The maximum voltage measurable (also known as the reference voltage) as a float in
76-
Volts. Assumed to be 3.3V but can be overridden using the `PCF8591` constructor"""
76+
Volts. Assumed to be 3.3V but can be overridden using the `PCF8591` constructor
77+
"""
7778
if not self._pcf:
7879
raise RuntimeError(
7980
"Underlying ADC does not exist, likely due to calling `deinit`"

adafruit_pcf8591/pcf8591.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def dac_enabled(self) -> bool:
119119

120120
@dac_enabled.setter
121121
def dac_enabled(self, enable_dac: bool) -> None:
122-
123122
self._dac_enabled = enable_dac
124123
self.write(self._dacval)
125124

examples/pcf8591_adc_example.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
channel_b = 1
2323

2424
while True:
25-
2625
read_value = pcf.read(channel_a)
2726
scaled_value = (read_value / 255) * pcf.reference_voltage
2827

examples/pcf8591_simpletest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
pcf_out = AnalogOut(pcf, PCF.OUT)
2727

2828
while True:
29-
3029
print("Setting out to ", 65535)
3130
pcf_out.value = 65535
3231
raw_value = pcf_in_0.value

0 commit comments

Comments
 (0)