c++ - Arduino LED Matrix algorithm -


i need method able output following sequence

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

the purpose of create sweeping horizontal effect on 9x9 led matrix using 2 arduinos, 1 controlling rows, 1 columns (i didn't have enough ports able control 1 arduino uno, if guys can offer suggestions on other arduino mega feel free comment too)

the arduinos communicate using parallel transmission e.g 0100 ard1 ard2 signify column 4.

for (int i= 1; <10; ++i) {     (int j= 1; j <= i; ++j) {         output(j);     }     // break between sequences.     sequence_clear(); } 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -