I just got a Mayhew Mux board and wired up 48 LEDs. digitalWrite works just as I expected. But if I try to use analogWrite to control the PWM sent to the LEDs, I don't get far. At best, analogWrite works just like digitalWrite, with values 128 and above turning LEDs on full blast and values 127 and below turning the LEDs completely off.
There must be solutions better than looping through digitalWrite(x, HIGH) and digitalWrite(x, LOW) to run LEDs at less than full brightness?
Any suggestions most welcome! Thanks!