![](/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
my_i2c.h
- Committer:
- karelv
- Date:
- 2014-12-07
- Revision:
- 0:b0247e85bf0e
File content as of revision 0:b0247e85bf0e:
#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__