Librería para clientes de AlMarSimulator 1
Librería para E/S de simuladores genéricos (C/C++/Matlab/Python)
Loading...
Searching...
No Matches
AlMarDuino::Servo Class Reference

Clase que imita a la clase equivalente de Arduino More...

#include <AlMarDuino_Servo.h>

Public Member Functions

bool attach (int iPin)
 
bool write (double valueDeg)
 
bool attach (int iPin)
 
bool write (double valueDeg)
 

Detailed Description

Member Function Documentation

◆ attach() [1/2]

bool AlMarDuino::Servo::attach ( int iPin)

Attaches the pin desired to a servo output

Parameters
iPinnumber of the servo input (0 to 3, it is not a physical pin)
Returns
bool: correctly attached

◆ attach() [2/2]

bool AlMarDuino::Servo::attach ( int iPin)

Attaches the pin desired to a servo output

Parameters
iPinnumber of the servo input (0 to 3, it is not a physical pin)
Returns
bool: correctly attached

Definition at line 6 of file AlMarDuino_Servo.cpp.

◆ write() [1/2]

bool AlMarDuino::Servo::write ( double valueDeg)

Moves the servo to the desired angle value

Parameters
valueDegangle desired in degrees (0 to 180)
Returns
bool: correctly written

◆ write() [2/2]

bool AlMarDuino::Servo::write ( double valueDeg)

Moves the servo to the desired angle value

Parameters
valueDegangle desired in degrees (0 to 180)
Returns
bool: correctly written

Definition at line 14 of file AlMarDuino_Servo.cpp.