todbot / ServoEaser

Arduino library for servo easing
73 stars 18 forks source link

How to set easing function #1

Open marianoviola opened 11 years ago

marianoviola commented 11 years ago

Hi,

can I use the easing library by Tobias Toft?

I'm trying to use this code in the setup function:

servoEaser.setEasingFunc(Easing::easeInOutCubic);

I'm on the right way?

Thank you -Mariano

FedericoBusero commented 3 years ago

It is not necessary to set the easeInOutCubic function, as this is the standard function which is being set when calling ServoEaser.begin(..).

If you want to use another function, have a look at the example ServoEaser3Callbacks.ino