cansat_B 2019 / Mbed 2 deprecated GPSXBeeCompleted

Dependencies:   mbed

Committer:
KINU
Date:
Sun Dec 08 13:28:08 2019 +0000
Revision:
5:9ff2f6cd54d2
GPSXBeecompleted

Who changed what in which revision?

UserRevisionLine numberNew contents of line
KINU 5:9ff2f6cd54d2 1 /**
KINU 5:9ff2f6cd54d2 2 * Motor Driver TB6612 Control Library
KINU 5:9ff2f6cd54d2 3 *
KINU 5:9ff2f6cd54d2 4 * -- TB6612 is a device of the rohm.
KINU 5:9ff2f6cd54d2 5 *
KINU 5:9ff2f6cd54d2 6 * Copyright (C) 2012 Junichi Katsu (JKSOFT)
KINU 5:9ff2f6cd54d2 7 */
KINU 5:9ff2f6cd54d2 8
KINU 5:9ff2f6cd54d2 9 #ifndef MBED_TB6612_H
KINU 5:9ff2f6cd54d2 10 #define MBED_TB6612_H
KINU 5:9ff2f6cd54d2 11
KINU 5:9ff2f6cd54d2 12 #include "mbed.h"
KINU 5:9ff2f6cd54d2 13
KINU 5:9ff2f6cd54d2 14 class TB6612 {
KINU 5:9ff2f6cd54d2 15 public:
KINU 5:9ff2f6cd54d2 16 TB6612(PinName pwm, PinName fwd, PinName rev);
KINU 5:9ff2f6cd54d2 17 void speed(int speed);
KINU 5:9ff2f6cd54d2 18 void move(int speed , int time);
KINU 5:9ff2f6cd54d2 19 void operator= ( int value )
KINU 5:9ff2f6cd54d2 20 {
KINU 5:9ff2f6cd54d2 21 speed(value);
KINU 5:9ff2f6cd54d2 22 }
KINU 5:9ff2f6cd54d2 23
KINU 5:9ff2f6cd54d2 24 protected:
KINU 5:9ff2f6cd54d2 25 PwmOut _pwm;
KINU 5:9ff2f6cd54d2 26 DigitalOut _fwd;
KINU 5:9ff2f6cd54d2 27 DigitalOut _rev;
KINU 5:9ff2f6cd54d2 28 };
KINU 5:9ff2f6cd54d2 29
KINU 5:9ff2f6cd54d2 30 #endif