UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import time
import unit
setScreenColor(0x222222)
dac2_0 = unit.get(unit.DAC2, unit.PORTA)
i = None
while True:
for i in range(4):
dac2_0.setVoltage(i, channel=dac2_0.CHANNEL_0)
print((str(str(i)) + str('V')))
wait(1)
wait_ms(2)
dac2_0.setDACOutputVoltageRange(dac2_0.RANGE_5V)
dac2_0.setVoltage(5, channel=dac2_0.CHANNEL_0)
dac2_0.setVoltageBoth(5, 5)