Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Serial2' was not declared in this scope #27

Open
Spoja opened this issue May 8, 2016 · 2 comments
Open

'Serial2' was not declared in this scope #27

Spoja opened this issue May 8, 2016 · 2 comments

Comments

@Spoja
Copy link

Spoja commented May 8, 2016

Even when i try to run simple program like this:
`void setup() {
// put your setup code here, to run once:
Serial2.begin(9600);
}

void loop() {
// put your main code here, to run repeatedly:

}`
I keep getting error: 'Serial2' was not declared in this scope.

@mariovaldez
Copy link

The ATMega1284p only has two hardware serial interfaces (Serial and Serial1), there is no Serial2. (Unless you set it using NewSoftwareSerial or similar library).

@Spoja
Copy link
Author

Spoja commented May 14, 2016

I misread the library, thought that Serial = Serial1...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants