Just a quick word to share my success! I finally managed to finish my
build, and program my board (using the usbTinyISP, I don't know why the
serial adapter didn't worked...).
Anyway, it's workiiiiiing!
I'll just add the sketch below, so you can test yours when it's built!
This is gonna be a programming weeeeeek!
Cheers everyone!
Romain Bazile
Code:
int rows[]={8,9,14,15,16,17};
int cols[]={3,4,5,6,7};
void allOff() {
for(int i=0; i<5; i++) {
digitalWrite(cols[i], HIGH);
}
for(int i=0; i<6; i++) {
digitalWrite(rows[i], LOW);
}
}
void setup() {
// initialize the digital pin as an output:
for(int i=1; i<18; i++)
{
pinMode(i, OUTPUT);
}
allOff();
}
// the loop() method runs over and over again,
// as long as the Arduino has power
void loop() {
for (int column = 0; column < 5; column++) {
for (int row = 0; row < 6; row++) {
allOff();
digitalWrite(rows[row],HIGH);
digitalWrite(cols[column],LOW);
delay(1000);
}
}
}
Did you load an Arduino boot loader onto your watch (with your
USBTinyISP) first?
> Anyway, it's workiiiiiing!
Congrats!
I hope to assemble mine this coming weekend.
-ethan
And it works! :D :D
>> Anyway, it's workiiiiiing!
> Congrats!
Thanks!