The demonstration code has an error that has been identified by Arduino (not uploading) doesn't seem to work and I'm not sure what's the problem. Is there another way?
If you're talking about this not working, well 17 minutes isn't really long enough to read and understand the article much less rewrite the code to use the approach.
But that's what you have to do. If it doesn't work then you did it wrong. Post what you did and we will try to help you figure it out.
To add to what @Delta_G has said you are the first person to report a problem with Several Things at a Time and if there really is a problem I would like to know so I can fix it.
nafi04:
The demonstration code has an error that has been identified by Arduino (not uploading) doesn't seem to work and I'm not sure what's the problem. Is there another way?
You need to add a new word to your vocabulary.
Delay is a blocking function. That means the CPU stays inside it and does nothing1 until the delay is over. This is fine if your program is only doing one thing, like moving through a fixed sequence of servo movements, and this is all that you even intend your program to do. The moment you try to do 2 things at irregular intervals (intervals that do not have a common denominator) though, everything falls apart.
delay() is the most abused function in the entire Arduino library. It's so seductive how easy it to use to create a timed sequence of events that people get suckered in and start using it right away, just like this. But it's a trap. delay() is not an easy way to do things. It is a terrible, vile, evil thing and you must train yourself to never use it in loop() or any function that will ever be called by loop ever.2
I exaggerate only slightly. When you try to rewrite this, just pretend delay() doesn't exist, has never existed, and never will exist. I promise that you will be better off doing so.
1 Interrupts excepted, but this doesn't matter to you since at your level of skill they'll just make things worse. 2 Some may dispute this. If you are able to able to make a good case with logic or evidence about how certain uses of delay are beneficial, then you already know the giant, heaping, stinking pile of other uses where it is pure evil and do not need to be told about them.
nafi04:
The demonstration code has an error that has been identified by Arduino (not uploading) doesn't seem to work and I'm not sure what's the problem. Is there another way?
I have successfully tried that example without problem. Sketches not uploading is a known bug that might show after opening a sketch by doubleclicking on .ino-file. Workaround is described here.
nafi04:
How do I change the "several things at once" code to my advantage?
Do your best. If your modified version does not do what you want then post your code and explain what it actually does and what you would like it to do.
It is much easier to help after you have made a start on the problem.