Go Down

Topic: SoftwareSerial example not working as expected? (Read 836 times) previous topic - next topic

Nick Gammon

Code: [Select]
SoftwareSerial mySerial(2, 3); // RX, TX

The Leonardo does not seem to support pin change interrupts on those pins, hence software serial won't work on them.

http://arduino.cc/en/Hacking/PinMapping32u4

Nick Gammon

In addition to that, I'm not certain that SoftwareSerial has been rewritten to take into account the mappings for the Leonardo. It may have been, it may not.

dieselboris


In addition to that, I'm not certain that SoftwareSerial has been rewritten to take into account the mappings for the Leonardo. It may have been, it may not.


Forgot to mention, but i'm on a arduino Uno SMD.

dxw00d

Is your modem configured to repeat whatever it gets sent? If not, what would you expect it to reply when you send it '1 2 3 4 5 6 7 8 9'?

Go Up