1
0
Fork 0

dac: fix initialization order

This commit is contained in:
Florian Agbuya 2024-08-20 16:35:49 +08:00
parent 2d75b4112e
commit 15a66c01fa
1 changed files with 3 additions and 3 deletions

View File

@ -127,13 +127,13 @@ def configure_ad9117():
configure_dac(spi) configure_dac(spi)
dac_self_calibration(spi) dac_self_calibration(spi)
# Enable DAC outputs
spi_write(spi, 0x01, spi_read(spi, 0x01) & ~((1 << 4) | (1 << 3)))
power_down(0, False) power_down(0, False)
power_down(1, False) power_down(1, False)
manual_override(True) manual_override(True)
# Enable DAC outputs
spi_write(spi, 0x01, spi_read(spi, 0x01) & ~((1 << 4) | (1 << 3)))
print("AD9117 configuration completed successfully") print("AD9117 configuration completed successfully")
return True return True