Exemple #1
0
void initBoard()
{
	Serial.begin(115200);

	//Uses the analog input 0, that may have the same value in some designs, but it's not so prabably:
	randomSeed(analogRead(0));

	//setPin() does not attach the servo (so the pin can be used by other library if the servo is not used).
	servo0.setPin(9);
	servo1.setPin(10);
}
Exemple #2
0
void initBoard()
{
	Serial.begin(115200);
	Serial1.begin(115200);

	randomSeed(analogRead(0));

	//This is for the Multiplo robots:
	//motor1.setClockwise(false);
	//setPin() does not attach the servo (so the pin can be used by other library if the servo is not used).
	servo0.setPin(16);
	servo1.setPin(17);
}