pyfastservo dac: Change debug MSG
This commit is contained in:
parent
6705b182d5
commit
9f2e609b6e
|
@ -86,9 +86,9 @@ def dac_self_calibration(spi):
|
|||
|
||||
def manual_override(enable=True):
|
||||
reg_contents = read_from_memory(CTRL_ADDR, 1)[0]
|
||||
print(f"REG contents: 0b{reg_contents:03b}")
|
||||
to_write = reg_contents | 0b1 if enable else reg_contents & 0b110
|
||||
write_to_memory(CTRL_ADDR, to_write)
|
||||
print(f"Set DAC Output Manual Override: {enable}")
|
||||
|
||||
def power_down_afe(channel, power_down=True):
|
||||
assert channel in (0, 1)
|
||||
|
@ -101,7 +101,7 @@ def power_down_afe(channel, power_down=True):
|
|||
to_write = reg_contents | value
|
||||
write_to_memory(CTRL_ADDR, to_write)
|
||||
reg_contents = read_from_memory(CTRL_ADDR, 1)[0]
|
||||
print(f"REG contents: 0b{reg_contents:03b}")
|
||||
print(f"Power Down DAC AFE Ch{channel}: {power_down}")
|
||||
|
||||
def set_dac_output(value):
|
||||
value = min(value, 0x3FFF)
|
||||
|
|
Loading…
Reference in New Issue