Hi i am really new to arduino. Could you please give me a hand in understanding this code: http://www.kevindarrah.com/download/arduino_code/LED_CUBE_FAST.pde. I need help with the write_pin and the for(). What do these mean? thanks alot.
google will help you with the C for statement ... This loops ten times with i changing each time round, try it...
for (int i = 0 ; i < 10 ; i++)
{
Serial.println (i) ;
}
The write_pin() function is using arrays to map abstract pin numbers to actual pin numbers - if you don't know about arrays that's another C language construct to find out about - arrays give you a whole bunch of related variables a common name and a way of "indexing" (selecting) them with an integer value.
Have a look at:-
http://www.thebox.myzen.co.uk/Tutorial/Arrays.html
for arrays used to write to arbitrary pins.