DriveMaster
Loading...
Searching...
No Matches
HBridge.h
Go to the documentation of this file.
1
6#pragma once
7#ifndef HBRIDGE_H
8#define HBRIDGE_H
9
10#include "DriveMaster.h"
11
12class HBridge : public DriveMaster{
13 private:
14
15 public:
16 explicit HBridge(int pin, int dir_pin);
17 void begin() override;
18 void write(int16_t value) override;
19};
20
21#endif
Header file for the DriveMaster class.
Base class for motor control.
Definition DriveMaster.h:16
Definition HBridge.h:12
void begin() override
Initialize the motor control.
Definition HBridge.cpp:7
void write(int16_t value) override
Write a command to the motor using an 8-bit signed integer value. The value ranges from -255 to 255,...
Definition HBridge.cpp:13