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
12
class
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
DriveMaster.h
Header file for the DriveMaster class.
DriveMaster
Base class for motor control.
Definition
DriveMaster.h:16
HBridge
Definition
HBridge.h:12
HBridge::begin
void begin() override
Initialize the motor control.
Definition
HBridge.cpp:7
HBridge::write
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
src
HBridge.h
Generated by
1.12.0