These pin ints don't match up to the pin name in the comment; for A4, A5 and A7: 

```c
// A4
if (pin == 14) return 4;
// A5
if (pin == 15) return 5;
// A7
if (pin == 17) return 6;
```