Fixes gh-282. Query on analog pins gets state from digital pins

- Use analogPins index to determine correct analog pin address

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>