Modifications

Sauter à la navigation Sauter à la recherche
Ligne 84 : Ligne 84 :  
# Make sure you include <AFMotor.h>
 
# Make sure you include <AFMotor.h>
 
# Create the AF_DCMotor object with '''AF_DCMotor(motor#, frequency)''', to setup the motor H-bridge and latches. The constructor takes two arguments.<br />
 
# Create the AF_DCMotor object with '''AF_DCMotor(motor#, frequency)''', to setup the motor H-bridge and latches. The constructor takes two arguments.<br />
The first is which port the motor is connected to, '''1, 2, 3''' or '''4'''.
+
The first is which port the motor is connected to, '''1, 2, 3''' or '''4'''.<br />
 
''' ''frequency''' '' is how fast the speed controlling signal is.<br />
 
''' ''frequency''' '' is how fast the speed controlling signal is.<br />
 
For motors 1 and 2 you can choose '''MOTOR12_64KHZ, MOTOR12_8KHZ, MOTOR12_2KHZ''', or '''MOTOR12_1KHZ'''. A high speed like 64KHz wont be audible but a low speed like 1KHz will use less power. Motors 3 & 4 are only possible to run at 1KHz and will ignore any setting given
 
For motors 1 and 2 you can choose '''MOTOR12_64KHZ, MOTOR12_8KHZ, MOTOR12_2KHZ''', or '''MOTOR12_1KHZ'''. A high speed like 64KHz wont be audible but a low speed like 1KHz will use less power. Motors 3 & 4 are only possible to run at 1KHz and will ignore any setting given
29 917

modifications

Menu de navigation