mcules / strobist-project-opensource-trigger

Automatically exported from code.google.com/p/strobist-project-opensource-trigger
0 stars 0 forks source link

ISRs call display update -> decouple! #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Potential problem with reentrance or timing, ISRs too long

What is the expected output? What do you see instead?
Improved code readability, short ISRs, reentrant code 

What version of the product are you using? On what operating system?
Firmware 1.0

Please provide any additional information below.
-

Original issue reported on code.google.com by tillseyf...@gmail.com on 9 Apr 2009 at 8:16

GoogleCodeExporter commented 8 years ago
Solution idea
* Introduce displayUpdate flag
* Remove display update from interrupt service routine 
* Add timer (50ms cyclic) for checking the displayUpdate flag and calling 
paintSymbols() / refresh()? in case an update is indicated

Original comment by tillseyf...@gmail.com on 9 Apr 2009 at 8:27

GoogleCodeExporter commented 8 years ago

Original comment by tillseyf...@gmail.com on 9 Apr 2009 at 12:27