Dimmer Switch modification AN-1189 - how to incorporate i2c device

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dimmer Switch modification AN-1189 - how to incorporate i2c device

555 Views
preveenp
Contributor I

Hi,

I would like to modify the dimmer switch in this application note  to incorporate a i2c Device. 

The I2c device will interrupt on a DIO line when it has some data.

We need to read the i2c lines on receiving the interrupt. 

Kindly give me guidance as to how to modify the dimmer switch sub project to do this functionality.

Kindly mention the files to modify. 

Also I could not find any user guide for manipulating the Configuration in the graphical way.

Can somebody please advise on this?

Thanks.

--

0 Kudos
1 Reply

422 Views
finstonian
Contributor II

there is a a good I2C example contained within the following application note:

http://cache.nxp.com/documents/application_note/JN-AN-1221.zip 

see the files I2C_Driver.c and I2C_Driver.h in the Common\Source folder. You'll see an example of how these are used in the ntag.c and ntag.h files.

0 Kudos