Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Motor.h
- Committer:
- racedom
- Date:
- 2021-12-06
- Revision:
- 0:b5d1c04a1e24
File content as of revision 0:b5d1c04a1e24:
#ifndef MOTOR // Provjera lib "MOTOR"
#define MOTOR // Definiranje lib "MOTOR"
#include "mbed.h"
class Motor // Stvaranje klase Motor
{
public:
Motor(PinName pin1, PinName pin2); // Konstruktor klase Motor
int Control(); // Prototip funkcije "Control" za upravljanje motorom
private:
AnalogIn A_pin; // Varijabla za prosljeđivanje Analog ulaza
PwmOut P_pin; // Varijabla za prosljeđivanje PWM ulaza
};
#endif // završava definiranje lib "MOTOR"