Hi I have an urgent question! I want two knight rider LED patterns (like in the tutorials) working at the same time, both running a different frequency! So I need 2 seperate loops. Can i just use 2 void loop functions?
This is a bit tricky. You can't just add another loop(), as Arduino can only do one thing at a time. So you need some code that can decide when each thing needs to be happen and do them in the right order.
There's an example (http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay) that explains how to blink an LED without using the delay function. You could try adapting it: basically copying the code, so you have two different actions with different timing. So, whenever it's time to update one of the knight rider patterns, you'd advance it by one LED.