vikingsraven:
yeah just spotted that , was on the way out of the door at work. Sorry but , it was to give you an idea, still a newbie myself but have been playing with arrays lately!
That's what I posteed already.
vikingsraven has an error tho:
int LED[1] ={3,4,5,6,7,8,9,10,11,12,13};
will not work - how can 1 element of the array have 10 different values assigned?
for (int i = 0;i<+10){
How is i to change each pass thru the for loop?
if(LedCont[1] == 1){
that will always look at the same element, not what you want if you intend to go thru 10 elements of the array.
im sure my fingers are dyslexic!
should have been 11 , i <= 10,i++ and LedCont square bracket i square bracket. Bugger!
i literally must have posted it the same time as no one had posted.
Hi
sorry, I cant get it to work,
if(Timer >= 300 && Timer <= 400){int LedCont [] = {0,1,0,1,1,1,1,0,0,0,1};}
seems to work, but it doesent change the array
if(Timer >= 300 && Timer <= 400){LedCont [] = {0,1,0,1,1,1,1,0,0,0,1};}
Just gives me errors
In function 'void loop()':
error: expected primary-expression before ']' token
error: expected primary-expression before '{' token
error: expected `;' before '{' token