Skip to content

The-Robotics-Forum/ModularLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

Modular Libraries for Cytron and L298n

Cytron.h Example

Cytron motor1(directionPin,pwmPin); //initializing object for a motor where "motor1" is user defined object, you must pass the direction pin and pwm pin

motor1.direction(direction); //specify the direction in which you want to rotate the motor (pass 1 or 0)

motor1.drive(pwm); //specify the pwm value it will accelerate or decelerate accordingly

motor1.step=5; //specify the step width for acceleration and decelaration

motor1.interval=10; //specify delay between two steps

Note: You must include the io.h developed for m16/m328/m2560

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages