Skip to content

Commit 5fbbf10

Browse files
author
caternuson
committed
a little white space for you, linty?
1 parent 98221f6 commit 5fbbf10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/ads1115_differential.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
while True:
1717
# Get raw reading for differential input between channel 0 and 1
18-
raw = adc[(0,1)].value
18+
raw = adc[(0, 1)].value
1919

2020
# Get voltage reading for differential input between channel 0 and 1
21-
volts = adc[(0,1)].volts
21+
volts = adc[(0, 1)].volts
2222

2323
# Print results
2424
print("{:>5}\t{:>5.3f}".format(raw, volts))

examples/ads1115_single_ended.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Print header
1313
print(" CHAN 0 CHAN 1 CHAN 2 CHAN 3")
1414
print("{:>5}\t{:>5}\t{:>5}\t{:>5}\t{:>5}\t{:>5}\t{:>5}\t{:>5}"
15-
.format('raw','v','raw','v','raw','v','raw','v'))
15+
.format('raw', 'v', 'raw', 'v', 'raw', 'v', 'raw', 'v'))
1616

1717
while True:
1818
# Get raw readings for each channel
@@ -29,7 +29,7 @@
2929

3030
# Print results
3131
print("{:>5}\t{:>5.3f}\t{:>5}\t{:>5.3f}\t{:>5}\t{:>5.3f}\t{:>5}\t{:>5.3f}"
32-
.format(r0,v0,r1,v1,r2,v2,r3,v3))
32+
.format(r0, v0, r1, v1, r2, v2, r3, v3))
3333

3434
# Sleep for a bit
3535
time.sleep(0.5)

0 commit comments

Comments
 (0)