Hi,
The I2C Master Write simulink block from the Simulink Coder Support Package for NXP FRDM-KL25Z Board/FRDM-KL25Z is available and would work for both R2018a and R2018b versions.
Please go through the below documentation for reference
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!