TinyCircuits Forum

General Category => General Discussion => Topic started by: jgavlik on October 20, 2020, 06:35:41 PM

Title: More Dual Motor Board Software Questions
Post by: jgavlik on October 20, 2020, 06:35:41 PM
Are there a (complete) set of motor commands as hinted in the "TinyCircuits Dual Motor Driver Basic Example"

for example...
  motor.setFailsafe(1000);
    motor.setMotor(1,i);
    motor.setMotor(2,i);

Are there any more like this??

Thanks,
John
Title: Re: More Dual Motor Board Software Questions
Post by: lennevia on October 20, 2020, 08:02:55 PM
John,

There is also an alternative setMotor() function with a third useBrakes input of true or false for stopping the motors.

There is also a sleep() function that will power down the motors.

You can look in the library for the functions: https://github.com/TinyCircuits/TinyCircuits-ATtiny841-Library/blob/master/MotorDriver.cpp

Réna
Title: Re: More Dual Motor Board Software Questions
Post by: jgavlik on October 21, 2020, 01:01:28 PM
Réna....thanks...john