pyfastservo adc: print 100 times to check test pattern

This commit is contained in:
linuswck 2024-11-08 12:54:08 +08:00
parent 4940ee52cc
commit 5343b3d45a
1 changed files with 4 additions and 1 deletions

View File

@ -155,7 +155,10 @@ def configure_ltc2195():
# Performing Word Align
perform_bitslip()
find_edge()
print_adc_channels()
# Printing it once is not enough to check whether the alignment is correct.
for i in range(100):
print_adc_channels()
main_adc_test_mode(spi, False)
verify_adc_registers(spi, {0x02: 0x11}) # Verify test mode is off