So i keep getting a error that is puzzling me. Its "control.c:16: warning: implicit declaration of function 'a2dConvert8bit' " the code is #define PORT_ON( port_letter, number )
#define PORT_OFF( port_letter, number )
#define PORT_ON( port_letter, number ) port_letter |= (1<<number)
#define PORT_OFF( port_letter, number ) port_letter &= ~(1<<number)
int control(void)
{
while(1)
{
int se5=0;
se5=a2dConvert8bit(0);
if(se5>100)//depends on values you expect
PORT_ON(PORTE,7);
else
PORT_OFF(PORTE,7);
}
}
I have a2d.c and a2d.h added to the source and header files. I have been debugging and cant figure this out. I am trying to take a input from a IR sensor ( on F 5 ) and every time it pulses it will send signal to port E 7 to switch a mosfet. Am i on the right track besides the error that im getting?
Thanks
Jesse