Hello.
I've been working on an LED Cube.
I'm driving my led matrix with i2c io expander boards MCP23017's.
I'm using a nano at the moment and will be switching to a teensy but I think the problems I'm running into will be the same....
I was hoping to run my code for generating cube state in the loop() and just have an ISR display the cube at specified intervals by writing to i2c io expander chips, however this does not work. I believe there are limitations to what can be done inside interrupt service routines.
I can successfully use ISR to set a bool 'updateCube' flag, and catch this in my loop(), however now I must insure checks on this flag are done inside my cube code.
If anyone has any suggestions how to proceed feel free to comment.
Thanks.
I've been working on an LED Cube.
I'm driving my led matrix with i2c io expander boards MCP23017's.
I'm using a nano at the moment and will be switching to a teensy but I think the problems I'm running into will be the same....
I was hoping to run my code for generating cube state in the loop() and just have an ISR display the cube at specified intervals by writing to i2c io expander chips, however this does not work. I believe there are limitations to what can be done inside interrupt service routines.
I can successfully use ISR to set a bool 'updateCube' flag, and catch this in my loop(), however now I must insure checks on this flag are done inside my cube code.
If anyone has any suggestions how to proceed feel free to comment.
Thanks.