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

Support for Sanguino/Melzi, e.g. Creality Ender-3 #409

Merged
merged 1 commit into from
Nov 1, 2018

Conversation

brandstaetter
Copy link

Ran into this issue when compiling Marlin v2 for the Creality Ender-3

See also #281

Boards.h Outdated
#define IS_PIN_SERVO(p) ((p) >= 0 && (p) < MAX_SERVOS)
#define IS_PIN_I2C(p) ((p) == 16 || (p) == 17)
#define IS_PIN_SPI(p) ((p) == SS || (p) == MOSI || (p) == MISO || (p) == SCK)
#define IS_PIN_SERIAL(p) ((p) == 8 || (p) == 9 || (p) == 10 || (p) == 11)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should only include pins 8 & 9 for now unless PIN_SERIAL2_RX and PIN_SERIAL2_TX are defined in the variants file for the Sanguino/Melzi.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, overlooked. thanks for catching it

Boards.h Outdated
@@ -603,7 +603,7 @@ writePort(port, value, bitmask): Write an 8 bit port.
#define IS_PIN_SERVO(p) ((p) >= 0 && (p) < MAX_SERVOS)
#define IS_PIN_I2C(p) ((p) == 16 || (p) == 17)
#define IS_PIN_SPI(p) ((p) == SS || (p) == MOSI || (p) == MISO || (p) == SCK)
#define IS_PIN_SERIAL(p) ((p) == 8 || (p) == 9 || (p) == 10 || (p) == 11)
#define IS_PIN_SERIAL(p) ((p) == 8 || (p) == 9
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a closing paren. Please squash the commits after adding the paren if you're comfortable doing that.

@soundanalogous soundanalogous merged commit 533c89c into firmata:master Nov 1, 2018
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

Successfully merging this pull request may close these issues.

2 participants