@oneshot,
did you look at the posts 59 and 60 on the previous code?
What you have been given before worked and the typos you introduced into earlier code have been highlighted for you to easily remove and get it working.
Why do you think it needs to be re-written to work on the 08M2?
Why not run the code, and if it does not work, then look at how you might modify it yourself rather than vague comments about it moves too fast - I had given a comment in the code how to slow it down previously.
Folks here are quite happy to help you but,
YOU must do some of the work yourself - not just ask someone to do your project for you.
as
nick12ab has indicated, if use on the 08M2 requires a change, then state clearly what needs changing (ie pin IO allocations) and indicate (post code) to show what you have tried to achieve this goal.