l298n 0.1.1

A rust driver for the L298N (Dual H-Bridge Motor Controller module)
Documentation

l298n

no_std driver for L298N (Dual H-Bridge Motor Controller module)

Build Status

Basic usage

Include this library as a dependency in your Cargo.toml:

[dependencies.l298n]
version = "<version>"

Use embedded-hal implementation to get PINA, PINB and PWM and then create l298n single motor:

extern crate l298n;

let motor = l298n::Motor::new(PINA, PINB, PWM);

motoa.set_duty(12); 

motor.brake();

Documentation

API Docs available on docs.rs

License

MIT license