AnsweredAssumed Answered

Functions for I2C with KL43 SDK and PE?

Question asked by Christopher Demos on Mar 10, 2016
Latest reply on Mar 17, 2016 by Christopher Demos



I am trying to use processor expert with the KL43z SDK I2C component, and I don't know quite where to begin. I am trying to simply write data to my LCD display. Using processor expert I simply initialized the I2C and set the Baud rate to 100 kbit/s, address: 0, unchecked read only. I only have master configurations, not sure if I need slave configurations also.


I've tried using the function I2C_DRV_MasterSendData, but I'm not sure what all the parameters should be.


The LCD datasheet says in order to clear the screen:

So, I'm guessing this means I send 0x06 across the I2C, so I tried using the following code:


I2C_DRV_MasterSendData (i2cCom1_IDX,&i2cCom1_MasterConfig0, NULL, 0, 0x06, 5);


Some guidance would be much appreciated.