PRAWIRA

Committer:
alienbernamaihsan
Date:
Mon Sep 16 10:06:48 2019 +0000
Revision:
0:86d90c65f83b
PRAWIRA; ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alienbernamaihsan 0:86d90c65f83b 1 #ifndef MOTOR_H
alienbernamaihsan 0:86d90c65f83b 2 #define MOTOR_H
alienbernamaihsan 0:86d90c65f83b 3
alienbernamaihsan 0:86d90c65f83b 4 #include "mbed.h"
alienbernamaihsan 0:86d90c65f83b 5
alienbernamaihsan 0:86d90c65f83b 6 class Motor {
alienbernamaihsan 0:86d90c65f83b 7
alienbernamaihsan 0:86d90c65f83b 8 public :
alienbernamaihsan 0:86d90c65f83b 9 Motor(PinName dright , PinName dleft, PinName pwmpin);
alienbernamaihsan 0:86d90c65f83b 10 void setpwm(float inputpwm);
alienbernamaihsan 0:86d90c65f83b 11
alienbernamaihsan 0:86d90c65f83b 12 private :
alienbernamaihsan 0:86d90c65f83b 13 PwmOut pwmpin_;
alienbernamaihsan 0:86d90c65f83b 14 DigitalOut dright_;
alienbernamaihsan 0:86d90c65f83b 15 DigitalOut dleft_;
alienbernamaihsan 0:86d90c65f83b 16 };
alienbernamaihsan 0:86d90c65f83b 17
alienbernamaihsan 0:86d90c65f83b 18 #endif