UIFlow Guide
from m5stack import *
from m5ui import *
from uiflow import *
import module
setScreenColor(0x222222)
ain420 = module.get(module.AIN_420MA)
while True:
print((str('ADC1 Value:') + str((ain420.get_adc_raw16_value(1)))))
print((str('ADC2 Value:') + str((ain420.get_adc_raw16_value(2)))))
print((str('ADC3 Value:') + str((ain420.get_adc_raw16_value(3)))))
print((str('ADC4 Value:') + str((ain420.get_adc_raw16_value(4)))))
print((str('Current') + str((ain420.get_ain_current_value(1)))))
print((str('Firmware Version:') + str((ain420.get_firmware_status()))))
wait_ms(2)
ain420.get_adc_raw16_value(1)
ain420.get_ain_current_value(1)
ain420.get_firmware_status()
ain420.init_i2c_address(0x55)
ain420.set_i2c_address(0x55)