Author Topic: == I2C Source Code for Keypad functions ==  (Read 4908 times)

modtro2

  • Administrator
  • Hero Member
  • *****
  • Posts: 564
    • View Profile
== I2C Source Code for Keypad functions ==
« on: November 27, 2006, 08:17:06 PM »
For example projects (written in C using free MPLAB C18 compiler) on using the LCD2S in I2C mode, see these topics:
- Example projects in C for PIC18F452
- Example projects in C for PIC18F2520
The "lcd2s_i2c_kpad" project in the source code available in these topics contains example code for using a keypad with the LCD2S board.

Additionally have a look at the SPI documentation at:
http://forum.modtronix.com/index.php?topic=400.0
All commands are the same as for the SPI mode of communication, with the following differences:
  • There is no Sync character (0xf5), it is replaced by the I2C start condition
  • All messages are ended with the I2C stop condition
« Last Edit: July 02, 2009, 12:19:49 AM by modtro2 »