Added analogPinToChannel macro

Fixes #4