Stray '\303' in program why?

#include <Servo.h>
Servo myservo;
void setup() {
  pinMode(8, OUTPUT );
  myservo.attach(8);//servo pálcika
  myservoalsó.attach(3);//servo alsó forgás
  myservofelső.attach(4);//servo felső le fel mozgás
  myservo.write(78);
  delay(1000 * 0.2);
  myservoalsó.write(0);
  delay(1000 * 0.2);
  myservo.write(0);
  delay(1000 * 0.2);


}

void loop() {
  if (digitalRead (2) == HIGH) {

    myservo.write(93);
    delay(10);



  }
  if (digitalRead (2) == LOW) {

    myservo.write(77);
    delay(10);



  }

}

why?

Why what?

The compiler doesn't like the accented names like this:

myservoalsó

they should all be plain old myservo.

This is a common problem. I am surprised that your search before posting the question did not turn up an answer.

it's true it didn't lead because everywhere else wrote differently...

but is it wrong to write myservo1...myservo2.....?

#include <Servo.h>
Servo myservo;
Servo myservoalsó;
Servo myservofelső;

void setup() {
  pinMode(8, OUTPUT );
  myservo.attach(8);//servo pálcika
  myservoalsó.attach(3);//servo alsó forgás
  myservofelső.attach(4);//servo felső le fel mozgás
  myservo.write(78);
  delay(1000 * 0.2);
  myservoalsó.write(0);
  delay(1000 * 0.2);
  myservo.write(0);
  delay(1000 * 0.2);


}

I still got the \303 error with that.
Cured it with:-
Servo myservo;
Servo myservo1;
Servo myservo2;

Use the copy error button in the IDE and post it in code tags </>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.