Working code. LCD out, A/D input and scheduling working.