madsci1016 / Arduino-EasyTransfer

An Easy way to Transfer data between Arduinos
http://www.billporter.info/easytransfer-arduino-library/
319 stars 114 forks source link

Examples of EasyTransfer wouldn't work for Arduino Leonardo #3

Open X-Y opened 11 years ago

X-Y commented 11 years ago

As Serial1 is the hardware serial in Leonardo, while in examples Serial is used, it generates an error:

error: no matching function for call to 'EasyTransfer::begin(byte_, unsigned int, Serial__)' candidates are: void EasyTransfer::begin(uint8t, uint8t, HardwareSerial)

There can be a line of comment instructing people to switch to Serial1 if they're using Leonardo

cb88 commented 9 years ago

It would be better if the library were extended to support the USB serial port on the Leonardo... it is in fact a hardware serial port after all it just so happens that it is directly connected to the USB port rather than being connected to a serial to usb chip etc...