SparkFun_ESP8266_AT_Arduino_Library icon indicating copy to clipboard operation
SparkFun_ESP8266_AT_Arduino_Library copied to clipboard

Arbitrary HardwareSerials (Serial1, Serial2, ..) for Arduino Mega 2560

Open mararn1618 opened this issue 7 years ago • 0 comments

Hi Guys,

The original library allows only "Serial" as a Hardware Serial. As I am working with an ATMega 2560, I rather want to use Serial1 or Serial2.

Notes:

  • extended begin() with an optional parameter for HardwareSerial (defaulted to "Serial").
  • begin() signature still compatible with previous library versions
  • will compile for boards without Serial1,-2,-3

Thanks for the great library!

Regards Markus

mararn1618 avatar Aug 24 '16 19:08 mararn1618