11 years, 1 month ago.

I2CSlave not working on KL25Z?

Hi, I have recently bought a KL25Z development board, and the first project that i´m doing with it uses it as i2c slave. The master is a MBED LPC1768, I have wrotten a simple code just to test the i2c communication but i´m having an error when compiling

"identifier "I2CSlave" is undefined" in file "/main.cpp", Line: 7, Col: 1

(the kl25z is selected in the compiler) If i change to the LPC and just change the pin names, the compiler does it jobs.

Any idea?

1 Answer

11 years, 1 month ago.

I have checked and you can use I2C but not I2CSlave on the KL25Z. Is there any particular reason?