As u can see, i put my piezo piece inside the LED matrix, due to the lack of more digital/analog pins. The way i have it set up right now, works. but.. whenever a led from the top row is set to high.. the piezo (which is on the same 0V as the top row leds), will make a tick sound.
DVDdoug:
If you're out of I/O pins, the only thing I can think of is to get rid of the LED matrix and use [u]shift registers[/u].
I think what was meant was.
Keep the matrix, BUT drive it with a shift register.
OR
MAX7219 IC.
Google Arduino 8x8 MAX7219
It will give you examples, modifying to 5 x 6 should not be hard.
Tom...