hi guys,
I´m getting this error:
dron_a_voice:1: error: expected unqualified-id before '<' token
dron_a_voice:1: error: expected unqualified-id before '<' token
dron_a_voice:4: error: expected constructor, destructor, or type conversion before '(' token
dron_a_voice:5: error: expected constructor, destructor, or type conversion before '(' token
dron_a_voice:6: error: expected constructor, destructor, or type conversion before '(' token
dron_a_voice:7: error: expected declaration before '}' token
expected unqualified-id before '<' token
I´m getting started using arduino as well as programing. Could you please help me?
this is the code:
String voice; int motor1 = 3; //Connect motor 1 To Pin #3 left motor int motor2 = 9; //Connect motor 2 To Pin #9 rear motor int motor3 = 11; //Connect motor 3 To Pin #11, right motor
//--------------------------Call A Function-------------------------------//
//the values after each anlogWrite commands are controlling the motor's speed, the max value is 255
//if your drone isn't in balance try to modify the values, example change 130 to 135 if your drone goes backward
void middlespeed() { analogWrite(motor1, 130); analogWrite(motor2, 130); analogWrite(motor3, 130); }