Slow Button/Switch Reaction

On my last project– which still isn’t done yet- the buttons for changing the temp display are very unresponsive.

The reason of course is because the Arduino has to loop through all the main code before getting around to checking the button status.

I found the cure! Interrupts!

EngBlaze has a great write up on how to use this. Whew! One less I have to write! Read it here. I’ll be modifying the Tri-Temp code to use interrupts soon. Sweet!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s