forked from M-Labs/nix-servo
switch dac output sequence
This commit is contained in:
parent
3629c9c831
commit
1b673a1adb
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue