Hello Arkadiusz Motyka,
About the I2C code for KL26, I highly recommend you to use our KSDK sample code directly.
You can download KSDK2.2_FRDM-KL26 from this link:
Welcome to MCUXpresso | MCUXpresso Config Tools
Click SDK Builder, then choose the board as FRDM-KL26, generate the code and download it.
You can find the official I2C code in folder: SDK_2.2_FRDM-KL26Z\boards\frdmkl26z\driver_examples\i2c
Please try official code at first.
If you still have question about it, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------