UIFlow Guide
Outputs the read voltage value.
from m5stack import *
from m5ui import *
from uiflow import *
import hat
setScreenColor(0x111111)
hat_dac2_0 = hat.get(hat.DAC2)
hat_dac2_0.setDACOutputVoltageRange(hat_dac2_0.RANGE_5V)
hat_dac2_0.setDACOutputVoltageRange(hat_dac2_0.RANGE_5V)
RANGE_5V
.hat_dac2_0.setVoltage(5, channel=hat_dac2_0.CHANNEL_0)
hat_dac2_0.setVoltageBoth(5, 5)