Today I had a little time to work on my recently ordered Atmel AVR XMEGA-A1 Xplained, which I need to evaluate all necessary functions used for my university project which is a humanoid robot made of a lot servos.
So I just started with some research on google because there is no material delivered with a Xplained kit, not even a hardware user’s guide which could tell what port is used for the integrated stuff like LED, switches, USART, etc. but after some time I got all informations and started coding, my goal was to get a nice looking terminal from which I’m able to toggle the LED by just pressing the corresponding numbers e.g. to lit up LED3 so press 3 in terminal window, LED3 turns on and get a response which LED was toggled.
I will just start with the code now and after some lines explain what they do.