todbot/ServoEaser

How to set easing function

marianoviola opened this issue · 1 comments

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

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