Skip to content

Commit 901b475

Browse files
committed
Update mcp3421_simpletest.py
1 parent 2eecf6a commit 901b475

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/mcp3421_simpletest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@
2626
# adc.continuous_mode = True
2727

2828
while True:
29-
print(adc_channel.value)
29+
print(f"ADC value: {adc_channel.value}")
30+
print(f"Current gain: {adc.gain}X")
31+
print()
3032
time.sleep(0.01)

0 commit comments

Comments
 (0)