lucky_final_robot:21:1: error: 'Servo' does not name a type; did you mean 'Serial'?
Servo.servo1;
^~~~~
Serial
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino: In function 'void setup()':
lucky_final_robot:150:1: error: 'servo1' was not declared in this scope
servo1.attach(23);
^~~~~~
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino:150:1: note: suggested alternative: 'perror'
servo1.attach(23);
^~~~~~
perror
lucky_final_robot:151:1: error: 'serial' was not declared in this scope
serial.begin(9600);
^~~~~~
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino:151:1: note: suggested alternative: 'Serial'
serial.begin(9600);
^~~~~~
Serial
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino: In function 'void loop()':
lucky_final_robot:162:1: error: 'counterclocwise' was not declared in this scope
counterclocwise();
^~~~~~~~~~~~~~~
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino:162:1: note: suggested alternative: 'counterclockwise'
counterclocwise();
^~~~~~~~~~~~~~~
counterclockwise
lucky_final_robot:179:1: error: 'ultra' was not declared in this scope
ultra();
^~~~~
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino:179:1: note: suggested alternative: 'ultoa'
ultra();
^~~~~
ultoa
lucky_final_robot:180:1: error: 'servo1' was not declared in this scope
servo1.write(0);
^~~~~~
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino:180:1: note: suggested alternative: 'perror'
servo1.write(0);
^~~~~~
perror
lucky_final_robot:183:1: error: 'sevo1' was not declared in this scope
sevo1.write(180);
^~~~~
lucky_final_robot:195:1: error: a function-definition is not allowed here before '{' token
{
^
lucky_final_robot:205:5: error: 'pos' was not declared in this scope
for(pos=0;pos<=180;pos+=1)
^~~
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino:205:5: note: suggested alternative: 'pow'
for(pos=0;pos<=180;pos+=1)
^~~
pow
lucky_final_robot:207:1: error: 'servo1' was not declared in this scope
servo1.write(pos);
^~~~~~
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino:207:1: note: suggested alternative: 'perror'
servo1.write(pos);
^~~~~~
perror
lucky_final_robot:209:1: error: expected ';' before '}' token
}
^
lucky_final_robot:210:5: error: 'pos' was not declared in this scope
for(pos=180;pos>=0;pos-=1)
^~~
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino:210:5: note: suggested alternative: 'pow'
for(pos=180;pos>=0;pos-=1)
^~~
pow
lucky_final_robot:212:1: error: 'servo1' was not declared in this scope
servo1.write(pos);
^~~~~~
C:\Users\user\Documents\Arduino\lucky_final_robot\lucky_final_robot.ino:212:1: note: suggested alternative: 'perror'
servo1.write(pos);
^~~~~~
perror
exit status 1
'Servo' does not name a type; did you mean 'Serial'?
Can anyone help me out , please!
thanking any kind hearted person in advance
2 posts were merged into an existing topic: Requesting for help in my program ,pleas help me out