Код: Выделить всё
uchar usbFunctionWrite(uchar *data, uchar len)
{
uchar on_off;
on_off = data[0];
DDRB |= 0x80;
if (on_off==0) {
PORTB &= ~ ( 0x80 );
}
return 1; /* return 1 if this was the last chunk */
}
Контроллер рабочий. PB0 тоже. Залил бегущие огни - всё работает.




