1
0
Fork 0

switch dac output sequence

This commit is contained in:
Florian Agbuya 2024-08-20 13:54:07 +08:00
parent 3629c9c831
commit 1b673a1adb
1 changed files with 3 additions and 3 deletions

View File

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