UIFlow Guide
Sets the communication address and retrieves the X and Y axis raw potentiometer values along with the initial button status.
from m5stack import *
from m5ui import *
from uiflow import *
import hat
setScreenColor(0x111111)
hat_mini_joyc_0 = hat.get(hat.MINI_JOYC)
hat_mini_joyc_0.init_i2c_address(0x54)
while True:
print(hat_mini_joyc_0.get_adc12_raw(0))
print(hat_mini_joyc_0.get_adc12_raw(1))
print(hat_mini_joyc_0.get_button_status())
wait_ms(2)
hat_mini_joyc_0.init_i2c_address(0x54)
0x54
.hat_mini_joyc_0.get_10bit_value()
hat_mini_joyc_0.get_8bit_value()
hat_mini_joyc_0.get_button_status()
hat_mini_joyc_0.get_device_status()
hat_mini_joyc_0.get_offset_value()
hat_mini_joyc_0.get_raw_value()
hat_mini_joyc_0.set_i2c_address(new_address)
new_address
.hat_mini_joyc_0.set_led_rgb(red, green, blue)
hat_mini_joyc_0.set_offset_value(offset)