Easing function to write pins too.