Author Topic: not working dimmer  (Read 3174 times)

Um-ka

  • Newbie
  • *
  • Posts: 1
not working dimmer
« on: May 23, 2016, 11:40:09 pm »
Hey.
It is impossible to start the dimmer from this topic http://forum.arduino.cc/index.php?topic=314773.0
Gives an error message:

Code: [Select]
core\core.a(wiring.c.o): In function `__vector_4':

C:\Users\Roma\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\cores\tiny/wiring.c:93: multiple definition of `__vector_4'

sketch\sketch_may24b.ino.cpp.o:C:\Users\Roma\Documents\Arduino\sketch_may24b/sketch_may24b.ino:62: first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1

board digispark, IDE - 1.6.5 and 1.6.8

harrierark424

  • Newbie
  • *
  • Posts: 1
Re: not working dimmer
« Reply #1 on: October 16, 2016, 03:38:31 am »
Also getting the same message. Anyone?

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: not working dimmer
« Reply #2 on: October 22, 2016, 03:13:16 am »
This change may muck up USB processing if you intend to use the USB comms in your sketch, but the quick fix is comment out lines 92 - 124 of C:\Users\Roma\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\cores\tiny\wiring.c. The error message is basically telling you that  something on line 61 of your sketch is defined on line 93 of wiring.c, and multiple definitions of the same thing aren't valid.

However, whether this will do what you want is a different matter. Commenting out those lines will remove the error, and the sketch will successfully compile, but I don't know how well it functions.