PaulStoffregen / AltSoftSerial

Software emulated serial using hardware timers for improved compatibility
http://www.pjrc.com/teensy/td_libs_AltSoftSerial.html
338 stars 132 forks source link

Possibility to use ATMEGA2560 digital pins 10 and 11 #30

Closed brunoaduarte closed 8 years ago

brunoaduarte commented 8 years ago

Hi @PaulStoffregen , is it possible to use pins 10 (RX) and 11(TX) instead of 48, 46 in ATMEGA2560 by modifying "AltSoftSerial_Boards.h" ?

I tried it but it seems not to work. Why ?

PaulStoffregen commented 8 years ago

Only timer pins can be used. The pin numbers correspond to actual hardware resources of the timers.

You can't just put different pin numbers you want into that file. Well, you can edit the file, but that amounts to nothing more than wishful thinking. The hardware doesn't change only because you edit a file.