Home Ask Login Register

Developers Planet

Your answer is one click away!

Harry George Wells February 2016

Arduino LED Matrix algorithm

I need a method that will be able to output the following sequence

1, 1,2, 1,2,3, 1,2,3,4, 1,2,3,4,5 etc up to 9

The purpose of this is to create a sweeping horizontal effect on a 9x9 Led matrix using 2 arduinos, 1 controlling rows, 1 columns (I didn't have enough ports to be able to control from one Arduino uno, if you guys can offer suggestions on this other than an Arduino Mega then feel free to comment that too)

The arduinos communicate using parallel transmission e.g 0100 from Ard1 to Ard2 to signify column 4.


Sorin February 2016

for (int i= 1; i <10; ++i) {
    for (int j= 1; j <= i; ++j) {
    // This is the break between sequences.

Post Status

Asked in February 2016
Viewed 3,716 times
Voted 7
Answered 1 times


Leave an answer

Quote of the day: live life