More Dual Motor Board Software Questions

jgavlik

  • Full Member
  • ***
    • Posts: 30
    • View Profile
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


lennevia

  • Administrator
  • Hero Member
  • *****
    • Posts: 133
    • View Profile
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



 

SMF spam blocked by CleanTalk