WORKING AVR MULTI IO CODE, 5 INPUT, 5 OUTPUT