The maximum 10 bit value is 1023, not 1024
Merge pull request #6 from tessel/km-adc

The maximum 10 bit value is 1023, not 1024