USB pins: INPUT or OUTPUT?
Posted: Tue Nov 15, 2011 12:11 am
				
				Hi all,
form the PowerSwitch example project
so USB is input
from HIDKeys example project
so USB is output
what now, input or output?
  
 
thx
			Code: Select all
DDRD = ~(1 << 2);   /* all outputs except PD2 = INT0 */
DDRB = ~USBMASK;    /* set all pins as outputs except USB */
form the PowerSwitch example project
so USB is input
Code: Select all
DDRD = 7;    /* 0000 0111 bin: all pins input except USB (-> USB reset) */
from HIDKeys example project
so USB is output
what now, input or output?
 
 thx