Different AIN pin labeling in Ubuntu 12.04

Hi
I just went to that exercise. For some reason labeling of AIN pin in Ubuntu 12.04 is different.

AIN0 (P9_39) is AIN1 in Ubuntu
AIN1 (P9_40) is AIN2 in Ubunru
AIN2 (P9_37) is AIN3 in Ubuntu etc.

I hope that help to save some time to debug your applications. It took me some time to figure that simple change out.

Robert