Set up system timer and adc

also refactored LED stuff a bit