We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
#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?
wot r u #incing the header wiv? chek it.
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.
WHAT ARE YOU #INCLUDING THE HEADER WITH? CHECK IT.
man u from the 20th century???
@Westonsupermare Pier thanks, replaced the header files and it worked
If you didn't purposely write like a retard people might understand you from the outset.
HEY MAN. YOU MISSED A COMMA AFTER RETARD.