I'm a c# programmer so sort of spoilt by the easy availability of setting up multiple threads. I'm teaching myself Lua and am stuck on syntax and program structure using tmers.
Basically if someone can point me to some code that shows for example how to switch a led on for X seconds, then off for Y seconds and continues to do so forever. That would be a good start. The next step might be being able to accept an input from another pin so that it jumps out , runs a function - then goes back into the timing loop -
It would be fantastic if there was a site where code snippets like these were freely available but I've been unable to find anything so far.
Any help appreciated.