Palatis / arduino-softpwm

Software PWM library for Arduino
78 stars 27 forks source link

Timer User Conflicts with AltSoftSerial #11

Open davidbitton opened 6 years ago

davidbitton commented 6 years ago

It appears as if AltSoftSerial is trying to use the same timer as SoftPWM. PlatformIO is spitting out the following on compilation:

AltSoftSerial.cpp.o (symbol from plugin): In function `AltSoftSerial::read()':
(.text+0x0): multiple definition of `__vector_11'
.pioenvs/pro16MHzatmega328/src/main.cpp.o (symbol from plugin):(.text+0x0): first defined here

When I comment out any reference to SoftPWM, this error goes away. AltSoftSerial sets up which time it uses in AltSoftSerial_Boards based on the type of board chip. I'm using a Pro Mini. Is there another timer we can use? Thanks!

davidbitton commented 6 years ago

I think I solved the problem. I'm switching to a Pro Micro with a 32u4 proc. AltSoftSerial runs on Timer3 for that MCU. Thanks.