Update main.c

Testing needed. Digital potentiometer not included in code.