arduino:basic_interaction
This is an old revision of the document!
Table of Contents
Basic Interaction
Polling versus interrupts
There are two primary ways that a microcontroller (like the Arduino) can respond to changes in its inputs. One is by polling, the other is by interrupts.
With a polling setup, the mircocontoller constantly and repeatedly looks explicitly at all its input sources to see what state they are in and then it responds accordingly. In an interrupt scheme, the microcontroller does essentially nothing most of the time but comes to life and does something when an input source jostles it into action.
Of the two, polling is probably easier to get started with. Following is a simple example of using polling.
Switch controlled LED
TODO
arduino/basic_interaction.1347512326.txt.gz · Last modified: 2012/09/13 04:58 by mithat