TR-mbed 1.0
Loading...
Searching...
No Matches
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
10class PWMMotor : PwmOut{
11
12private:
13 static float intToPulse(int val);
14
15public:
16 PWMMotor(PinName pin, int defaultVal = 0);
17 void set(int motorVal);
18};
19
20
21#endif //TR_EMBEDDED_PWMMOTOR_H
Definition PWMMotor.h:10
void set(int motorVal)
Set PWM Output.
Definition PWMMotor.cpp:24