Low frequency flicker when using multiple PWM outputs and MOSFETs

The code is about as basic as it gets. I have an empty loop() function, and am using analogWrite(pin, value) for each PWM pin in the setup() function. This of course is just for debugging purposes.

As far as a schematic goes, no I don't have one, but I drew one up real quick, but left out several lines of LEDs. In total, there are 8 MOSFET drivers, for 8 strings of LEDs (there are actually more LEDs, but these are not being used currently).

I attached the .sch file. I don't have the Arduino Leonardo in my library, so I just used an ATMEGA32U4 to represent my arduino and connected the pins appropriately. I of course left out all the support/peripheral circuitry on the leonardo itself.

PWMdebug.sch (222 KB)