7 years ago.

ultrasonic sensor with servo motor

/media/uploads/MUHAMMADNAQIB/troubleshoot.png anyone can help me with this problem? thanks.

1 Answer

6 years, 11 months ago.

It is better to translate your question as text - but what it appears here is that you are trying to create a function inside another function.

Your code pattern, simplified

void somefunc(void) {
    int i = 3;

    myled = 1;
    int cantputfunchere() {
        something = 1;
    }
}

Maybe all you need is

int cantputfunchere() {
    something = 1;
}
void somefunc(void) {
    int i = 3;

    myled = 1;
}