Can analog pins be used as digital?

On Arduino platform, a definite yes.... Just refer to the pins as A0, A1... etc in the digitalRead()/digitalWrite() function n instead of 1,2... that you would use for digital pins. Whether Freeduino supports this is something you can find out either experimentally or through its documentation