mtbf0 wrote:everything happens in an interrupt service that occurs at 15625Hz. divide that by 128, (7 bits), and you get a pwm frequency of ~122Hz which i hope is too fast to screw up the entrainment.
That ought to be fast enough. If it isn't, you could try smoothing the actual power delivered to the LEDs with capacitors (using open drain outputs if driving the LEDs directly from port pins) just as one would do with a DC supply to reduce ripple. Not so much as to affect response anywhere near 17Hz, of course.
Is that a different rate than the one used by the original brain machine?
mtbf0 wrote:i'm using 3.3v boost power supply, so the green and blue are nice and bright and, yes, are visible through my eyelids.
If you end up getting good effects with the additional colors, you might want to bump up the power on the green and blue (or reduce it on red).
http://cat.inist.fr/?aModele=afficheN&cpsidt=2987732 It's up to you, of course.
I've had this idea before, but aborted it due to the reduced response to colors other than red.
mtbf0 wrote:my motivation for using rgb leds was just to see if i could do it.
That's often a legitimate reason for doing things like this.
mtbf0 wrote: first i have to figure out how i broke my code.
Ah, yes. That would tend to get in the way. I hate when I do that.