here is the final product created in the lab. I got rid of the switch statement as my TA said it would be to messy and slow for embedded proccessing. The code accesses ports directly with the ANSI C language.