MakeBlock Drive Updated Updated library for MakeBlock Ranger

Loading...
Searching...
No Matches
MeMbotDCMotor.h
Go to the documentation of this file.
1
38#ifndef MeMbotDCMotor_H
39#define MeMbotDCMotor_H
40
41#include <stdint.h>
42#include <stdbool.h>
43#include <Arduino.h>
44#include "MeConfig.h"
45
46#ifdef ME_PORT_DEFINED
47#include "MePort.h"
48#endif
49
50#ifdef ME_PORT_DEFINED
51#include "MeDCMotor.h"
52
58 class MBotDCMotor : public MeDCMotor
59{
60 public:
67 MBotDCMotor(uint8_t port);
68
85 void move(int direction, int speed);
86};
87#endif //ME_PORT_DEFINED
88#endif //MeMbotDCMotor_H
89
MeConfig.h
Configuration file of library.
MeDCMotor.h
Header for MeDCMotor.cpp module.
MePort.h
Header for MePort.cpp module.
MBotDCMotor
Definition MeMbotDCMotor.h:59
MBotDCMotor::move
void move(int direction, int speed)
Definition MeMbotDCMotor.cpp:68
MeDCMotor
Driver for Me DC motor device.
Definition MeDCMotor.h:64