If the analog() function is applied to a port that is implemented digitally in hardware, then the value 0 is returned if the digital reading is 0, and the value 255 is returned if the digital reading is 1.
Ports are numbered as marked on the Handy Board.