Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years ago.
ultrasonic sensor with servo motor
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; }