Hi,
Please check the attached code, there is the IIC driver and its test code, it's used on another V1 core device as JM128, you may need to modify the code to make it run on JM128, such as IIC port configure, it might be on a different pin.
The code can work both as master and slave and also you can choose output debugging information on UART.