Hi everybody!
I have a programming problem.
I tried to upload this code to the Arduino uno wifi 2, but it says this error code:
exit status 1 call to 'AF_DCMotor::AF_DCMotor(uint8_t, uint8_t)' uses the default argument for parameter 2, which is not yet defined
exit status 1
call to 'AF_DCMotor::AF_DCMotor(uint8_t, uint8_t)' uses the default argument for parameter 2, which is not yet defined
Code:
#include <AFMotor.h>
AF_DCMotor motor(3);
AF_DCMotor motor2(4);
void setup() {}
void loop() {
motor.setSpeed(200);
motor2.setSpeed(200);
motor.run(FORWARD);
motor2.run(FORWARD);
delay(2000);
motor.run(RELEASE);
motor2.run(RELEASE);
delay(1000);
}
~~~~~~~
What can be the problem?(I used the Arduino uno wifi rev 2 because it was the only one I had at home