TR-mbed
1.0
Loading...
Searching...
No Matches
core
util
motor
PWMMotor.h
Go to the documentation of this file.
1
//
2
// Created by ankit on 1/31/23.
3
//
4
5
#ifndef TR_EMBEDDED_PWMMOTOR_H
6
#define TR_EMBEDDED_PWMMOTOR_H
7
8
#include "mbed.h"
9
10
class
PWMMotor
: PwmOut{
11
12
private
:
13
static
float
intToPulse(
int
val);
14
15
public
:
16
PWMMotor
(PinName pin,
int
defaultVal = 0);
17
void
set
(
int
motorVal);
18
};
19
20
21
#endif
//TR_EMBEDDED_PWMMOTOR_H
PWMMotor
Definition
PWMMotor.h:10
PWMMotor::set
void set(int motorVal)
Set PWM Output.
Definition
PWMMotor.cpp:24
Generated by
1.9.8