Simple dice

Sorry if my code was a bit overkill. If you want to familiarize with arrays, play around with http://arduino.cc/en/Tutorial/Loop understand how it works and modify it :slight_smile:

If you do this:

int a=10;
int b=11;
int c=12;

// b + c = 23

And all variables describe the same thing, as for instance a series of out pins, using arrays will simplify thing a whole lot.

This is what happens:

int all = { 10 , 11 , 12 } ;

// all[1] + all[2] = 23

Any specific questions, just ask.