Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
{int main(void) { //declare variables here //int i=250;//a 'whatever' variable int sensor_left=0;//left photoresistor int threshold=8; //port D4 low while(1) { //store sensor data sensor_left=a2dConvert8bit(5); //detects more light on left side of robot if(sensor_left > threshold) {//go left servo_left(44); return 0: }}
return 0;
return 0:
int main(void) { //declare variables here //int i=250;//a 'whatever' variable int sensor_left=0;//left photoresistor int threshold=8; //port D4 low while(1) { //store sensor data sensor_left=a2dConvert8bit(5); } //detects more light on left side if(sensor_left > threshold) //go left servo_left(44); return 0;}
int main(){ //declare variables here //int i=250;//a 'whatever' variable int sensor_left=0;//left photoresistor int threshold=8; //port D4 low while(1) { //store sensor data sensor_left=a2dConvert8bit(5); //detects more light on left side of robot if(sensor_left > threshold) { //go left servo_left(44); } } return 0;}
well, now only one error comes up.errorC:\MYROBOTS\LDRrecognition\default/../LDRrecognition.c:17: undefined reference to `a2dConvert8bit'make: *** [LDRrecognition.elf] Error 1i am not sure what to do about itthanks again