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

D6 was not declared in this scope #28

Open
Cornhol10 opened this issue Aug 28, 2022 · 1 comment
Open

D6 was not declared in this scope #28

Cornhol10 opened this issue Aug 28, 2022 · 1 comment

Comments

@Cornhol10
Copy link

I'm getting the above error when I click upload. What have I done wrong?

@tobydavies11
Copy link

Hello

Had similar issues, change the following to allow a successful compile.

simply replace ;

D5 with 14
D6 with 12
D7 with 13

#include <SoftwareSerial.h>
//#define SERIAL_COMMUNICATION_CONTROL_PIN D5 // Transmission set pin
#define SERIAL_COMMUNICATION_CONTROL_PIN 14 // Transmission set pin
#define RS485_TX HIGH
#define RS485_RX LOW
//#define RXPin D6 // Serial Receive pin
//#define TXPin D7 // Serial Transmit pin
#define RXPin 12 // Serial Receive pin
#define TXPin 13 // Serial Transmit pin
SoftwareSerial RS485Serial(RXPin, TXPin);

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