Assuming you have a UNO then look at http://arduino.cc/en/Hacking/PinMapping168 to see how the pins are mapped between the Arduino IDE/ UNO board and the ATMega328 chip. If you look at the UNO from above (see below image) then you can see the defined digital pins 0-13 and the analogue pins A0-A5. Any digital pin number with a ~ character in front of it is capable of PWM (Pulse Width Modulation). See http://arduino.cc/en/Tutorial/PWM for PWM tutorial.
then whereever "gasdigiPin" is used in the sketch it means the physical pin A0 (or 14).
Ok, with what you have explained about A0 being "14" and A1 being "15" (etc) that makse sense.
But I am a "noob" and as much as I accept I have to learn things I can't find where this association between A0 and "14" is..... documented.
I have modified the sketch (multi day alarm clock v5) from using 16 to 17 for the alarm signal.
The only reason I did it was to keep things neat on the PHI-2 shield. The two straps and the signal are now together and the "header" I made is a bit neater.
Well, maybe not. But I like to keep things together.
I was pulling my hair out trying to derive what this "16" was. As the pin beside it was not used I changed it to 17 and hoped.
Complied, and lucky me, it is/was that pin. As I still don't know what the other headers are doing and where they go on the shield, I am at a slight impass to go further because I may be making problems for myself in the future.
I dunno, at some point in the dim and distance past somebody decided that pin A0 would be also called pin 14, its documented here : Arduino Playground - Shield Pin Usage
Thats just the way it is, I accept it because it works.