RUI: How to set RUI_I2C_ST - I2C_REG_MAGIC

help with rui

When I compile and load code into rak811, the module does not work, nothing happens. I use usb-ttl to download the program. I try to use the program with AT command and it works, but rui do not work