Ajout de l'algo
This commit is contained in:
@ -56,4 +56,8 @@ void ServoMotorComponent::refresh() {
|
||||
}
|
||||
this->lastUpTime = millis();
|
||||
this->myservo.write(this->PIN, this->currentPosition);
|
||||
}
|
||||
|
||||
bool ServoMotorComponent::isConnected() {
|
||||
return true;
|
||||
}
|
@ -12,8 +12,9 @@ enum Position {
|
||||
class ServoMotorComponent
|
||||
{
|
||||
public:
|
||||
ServoMotorComponent(int PIN, unsigned long updatePeriod, float step = 1);
|
||||
ServoMotorComponent(int PIN, unsigned long updatePeriod = 100, float step = 0.1);
|
||||
void setDesiredPosition(Position desiredPosition);
|
||||
bool isConnected();
|
||||
void refresh();
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user