OnChangePin0

Name
OnChangePin0

Description
Added: Since Beta X

Use to fire interrupts upon change in PIN0 of pinguino. Can be configured to trigger on rising edge or falling edge

Syntax
interrupt.c OnChangePin0(callback func, u8 config);

Parameters inter:		interrupt number config:		INT_RISING_EDGE or INT_FALLING_EDGE func:		function called when interrupt comes

The function should be specified without braces, ex:- foo{} must be specified as OnChangePin0(foo, INT_RISING_EDGE);

Example
OnChange.pde