Simple library and program for the SparkFun Ardumoto Shield https://www.sparkfun.com/products/9815 with the ST Nucleo F401RE The SparkFun Ardumoto shield can control two DC motors (up to 2 amps per motor). It is based on the L298 H-bridge. Developped by : Didier Donsez & Jérome Maisonnasse License: CC-SA 3.0, feel free to use this code however you'd like. Please improve upon it! Let me know how you've made it better. This is really simple example code to get you some basic functionality with the Ardumoto Shield.

ArduMotoShield.h

Committer:
donsez
Date:
2014-11-08
Revision:
0:72e45c332025

File content as of revision 0:72e45c332025:

/* 
 Simple library for the SparkFun Ardumoto Shield https://www.sparkfun.com/products/9815
 with the ST Nucleo F401RE
 
The SparkFun Ardumoto shield can control two DC motors (up to 2 amps per motor). It is based on the L298 H-bridge. 

Developped by : Didier Donsez & Jérome Maisonnasse
 
 License: CC-SA 3.0, feel free to use this code however you'd like.
 Please improve upon it! Let me know how you've made it better.
 
 This is really simple example code to get you some basic functionality with the Ardumoto Shield.
 
 */


#ifndef MBED_ARDUMOTOSHIELD_H
#define MBED_ARDUMOTOSHIELD_H

#include "mbed.h"

class ArduMotoShield {
public:
    static void setVoltages(float vin, float vmaxmotor);

    static void stop();
    static void forward();
    static void backward();
    static void left();
    static void right();
private:
    static void setup();
};

#endif