Still trying to figure this out. I tried using this piece of code:
I am using PCINT0 = D-: is it the right way?
- PCMSK0 |= (1 << PCINT0);
PCICR |= (1 << PCIE0);
ISR(PCINT0_vect)
{
usbConnected = 1;
}
I am using PCINT0 = D-: is it the right way?