NeoHWSerial icon indicating copy to clipboard operation
NeoHWSerial copied to clipboard

Unable to use usb serial on arduino micro with NeoSerial

Open amitv87 opened this issue 9 years ago • 4 comments

I have this code

NeoSerial.begin(115200);
NeoSerial1.begin(115200);

The compiler says

'NeoSerial' was not declared in this scope

Is it not possible to use usb serial with this library?

amitv87 avatar Dec 21 '16 20:12 amitv87

Did you copy a version of NeoHWSerial files (e.g., from the 1.6.5r2 directory) to an Arduino/Libraries/NeoHWSerial directory?

Did you #include <NeoHWSerial> at the top of your sketch?

SlashDevin avatar Dec 21 '16 21:12 SlashDevin

Yeah, I did that. I do not get error for NeoSerial1 but for NeoSerial. Also found that Serial from the arduino framework is of type Serial_ and not HardwareSerial (For atmega32u4 boards as it has a usb cdc uart)

amitv87 avatar Dec 21 '16 23:12 amitv87

Oh, it's for a Leonardo or Micro? Issue #1 for the Due is the same kind of problem... it doesn't use HardwareSerial for the different hardware, either. The Due version would require quite a few changes, but maybe the 32U4 platform wouldn't be as bad. I'll take a look...

SlashDevin avatar Dec 22 '16 01:12 SlashDevin

Cool

amitv87 avatar Dec 22 '16 06:12 amitv87