Charlieplexing Help

Hi all!

I have a LED matrix connected to my Arduino board (8MHz) with the Charlieplexing method to use less pins on my Arduino. My problem is, that I have to change the state of the pins very fast to make all LEDs appear to be turned on. It seems like the rest of my code makes it too slow to do that. Is there any way to solve this problem? Maybe a way to run the switching of the pin states in a loop in the background so it can be executed faster?

Thank you for your help!


You can run the refresh function for just one change by triggering it off a regular interrupt generated by one of the timers.

That sounds good! I'll try that, thanks!