I am working through the Arduino project book and I am on project 8, digital hourglass. I am really trying to make the jump from copying code to writing code. So I took the program that counted every 10 minutes and turned on an LED until you reset it with a turn of the wrist, and changed it to a 5 minute delay and with 12 LED's. What I then tried to do was to get the LED's to blink once they were all lit, what I really want to do but I'm just not there yet is make all the LED's blink randomly when the hour is up. So for now I just need to figure out how to get the LED's to blink. I set a range, included all the pins that had an LED attached then tried to turn them off then on then off. I tried to keep it simple but it did not compile. What am I forgetting and how am I messing it up? Do I need to have another line of code that defines what the range is? The program is attached below.
Here are the error codes:
Arduino: 1.7.10 (Mac OS X), Board: "Arduino Uno"
sketch_oct11a.ino: In function 'void loop()':
sketch_oct11a.ino:52:27: error: invalid conversion from 'int*' to 'uint8_t {aka unsigned char}' [-fpermissive]
In file included from sketch_oct11a.ino:2:0:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:126:6: error: initializing argument 1 of 'void digitalWrite(uint8_t, uint8_t)' [-fpermissive]
void digitalWrite(uint8_t, uint8_t);
^
sketch_oct11a.ino:54:28: error: invalid conversion from 'int*' to 'uint8_t {aka unsigned char}' [-fpermissive]
In file included from sketch_oct11a.ino:2:0:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:126:6: error: initializing argument 1 of 'void digitalWrite(uint8_t, uint8_t)' [-fpermissive]
void digitalWrite(uint8_t, uint8_t);
^
sketch_oct11a.ino:56:27: error: invalid conversion from 'int*' to 'uint8_t {aka unsigned char}' [-fpermissive]
In file included from sketch_oct11a.ino:2:0:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:126:6: error: initializing argument 1 of 'void digitalWrite(uint8_t, uint8_t)' [-fpermissive]
void digitalWrite(uint8_t, uint8_t);
^
Error compiling.
sketch_oct11a.ino (865 Bytes)