noch ein versuch:
#include <AFMotor.h>
AF_DCMotor* dosing[4];
AF_DCMotor motor1((1), MOTOR12_64KHZ);
AF_DCMotor motor2((2), MOTOR12_64KHZ);
AF_DCMotor motor3((3), MOTOR12_64KHZ);
AF_DCMotor motor4((4), MOTOR12_64KHZ);
void setup()
{
dosing[0] = &motor1;
dosing[1] = &motor2;
dosing[2] = &motor3;
dosing[3] = &motor4;
for (int j=0;j<4;j++) {
dosing[j].setSpeed(255);
dosing[j].run(RELEASE);
}