arduino-softpwm
arduino-softpwm copied to clipboard
Timer User Conflicts with AltSoftSerial
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!
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.