changing USBasp leds functions

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
slotkevitch
Posts: 3
Joined: Fri Jan 30, 2009 6:41 pm

changing USBasp leds functions

Post by slotkevitch » Sun Mar 22, 2009 1:02 pm

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? :)

Post Reply