mirror of
https://github.com/zzzzDev4/IAS-Better-Tea.git
synced 2025-04-21 07:31:20 +02:00
small servo speed tweaks
This commit is contained in:
parent
093f812dd5
commit
30bba45a58
2 changed files with 4 additions and 4 deletions
|
@ -12,18 +12,18 @@ void SmartServo::moveServoTo(int pos, int stepSize)
|
|||
for (int p = currentPos; p < pos; p += stepSize)
|
||||
{
|
||||
myservo.write(p);
|
||||
delay(10);
|
||||
delay(5);
|
||||
}
|
||||
for (int p = currentPos; p > pos; p -= stepSize)
|
||||
{
|
||||
myservo.write(p);
|
||||
delay(10);
|
||||
delay(5);
|
||||
}
|
||||
}
|
||||
|
||||
void SmartServo::moveServoToZero()
|
||||
{
|
||||
moveServoTo(0, 5);
|
||||
moveServoTo(0, 4);
|
||||
}
|
||||
|
||||
void SmartServo::moveServoTo180()
|
||||
|
|
|
@ -10,7 +10,7 @@ void TeaTimer::beginSteeping(unsigned long t_steepingDuration)
|
|||
{
|
||||
if (m_isSteeping)
|
||||
return;
|
||||
m_servo->moveServoTo(125, 2);
|
||||
m_servo->moveServoTo(125, 4);
|
||||
m_endSteepingTime = millis() + t_steepingDuration;
|
||||
m_isSteeping = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue