Page 1 of 1

changing USBasp leds functions

Posted: Sun Mar 22, 2009 1:02 pm
by slotkevitch
Hi,
I have tried to change USBasp leds functions that the green led would light on when reading (flash, eeprom, fuses) and the red led when writting. I have modified main.c file:

Code: Select all

uchar usbFunctionRead(uchar *data, uchar len) {
   ledGreenOn();
   ..........
   ledGreenOff();
   return len;
}

Unfortunately it only works when working with flash memory. Any suggestions? :)