Make 15x15 LEDMatrix Blink at 40hz

I have an AC powered LED matrix and wondering how I can tackle this to make it blink at a certain frequency...

Help! What's the simplest way?
I got an Uno blinking a single LED (not on matrix) at the frequency.

AC powered led matrix?

Is the AC part that thing you stick in the wall to power the matrix?