![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
IO-based I2C functions with PCF8574 to proof my HW is correctly wired. Working on my LPC4088
Diff: my_i2c.h
- Revision:
- 0:b0247e85bf0e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/my_i2c.h Sun Dec 07 13:56:12 2014 +0000 @@ -0,0 +1,15 @@ +#ifndef __MY_I2C_H__ +#define __MY_I2C_H__ + +bool my_i2cStart (unsigned char slaveAddress); +bool my_i2cStop (); +bool my_i2cRepeatedStart (unsigned char slaveAddress); +bool my_i2cWrite (unsigned char data); +unsigned char my_i2cReadByte (); +unsigned char my_i2cReadAck (); +unsigned char my_i2cReadNak (); +unsigned char my_i2cRead (unsigned char ack); +void my_i2cWriteByte (unsigned char byte); +bool my_i2cGetAck (); + +#endif // __MY_I2C_H__