#ifndef _I2C_ #define _I2C_ void I2CInit(void); void I2CStart(void); void I2CRestart(void); void I2CStop(void); void I2CAck(void); void I2CNak(void); void I2CSend(unsigned char); char I2CRead(unsigned char); void I2CSendAddr(unsigned char, unsigned char); #endif
Im getting a "not in formal parameter list" error on first line. Any ideas?
what do you mean?
Don't add the .H to the project
Check where you are #including the file from, and what code is in front of that. Imagine that the compiler processes the file lines in a linear fashion, and work backward from the point of failure.
@Westonsupermare Pier thanks, replaced the header files and it worked