Create analogue.py

Rescues ADC reading 0 to 1 and 1023 to 1022 to avoid NaN output and div/0 error. This is needed to use a format string in the output routines.