You explain it fine.
You need to use the technique in the tutorial I proposed BlinkNotDelay (and not the delay() method, which prevents the loop running at all while it's asleep)
I can provide you with a sample piece of code later, no time to do it now since I am still in work.
But to work on the Galileo/Arduino without being able to write some simple C code is going to be ... challenging ...
Take a look at that tutorial while you're waiting for me to send you the answer :-) You'll probably have it done before I get around to it.