torsdag den 10. november 2011

Interrupt Driven Touch Demo

After some struggle I managed to make the touch controller related code fully interrupt driven. This is one of those days where I make every mistake in the book and then some. I already figured that I would take baby steps, so I started by making read and write functions interrupt driven. This worked fine, the read and write functions waited for the interrupt-driven state machine to finish and then returned.

I was using local variables a great deal, and when I switched to fully interrupt-driven I forgot about silly things like using static and volatile keywords and what not. I also realized that I needed to insert a delay before attempting to initialize the controller. I still need to clean up the code a bit. Anyway, here is a short clip with a demo using the interrupt-driven code:


Ingen kommentarer:

Send en kommentar