Skip to content

Commit

Permalink
examples: ad4020_example: Initialize the ADC with device name argument
Browse files Browse the repository at this point in the history
Use the device_name to instantiate the correct ADC object.

Signed-off-by: Marcelo Schmitt <[email protected]>
  • Loading branch information
machschmitt committed May 23, 2024
1 parent 50b73e9 commit 4de88bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ad4020_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
my_uri = sys.argv[1] if len(sys.argv) >= 2 else "ip:analog.local"
print("uri: " + str(my_uri))

my_adc = adi.ad4020(uri=my_uri)
my_adc = adi.ad4020(uri=my_uri, device_name=dev_name)
my_adc.rx_buffer_size = 4096

print("Sample Rate: ", my_adc.sampling_frequency)
Expand Down

0 comments on commit 4de88bd

Please sign in to comment.