Update main.ino

Used an enum instead of #defines, extra function for mode changing, some other small things
.
Merge pull request #2 from azov3902/patch-1

Update main.ino