Skip to content

Additional requirements for support for up to 4 BrickPi3 - #572

Merged
WasabiFan merged 5 commits into
ev3dev:ev3dev-stretchfrom
omartin2010:patch-1
Dec 14, 2018
Merged

WasabiFan merged 5 commits into
ev3dev:ev3dev-stretchfrom
omartin2010:patch-1

Conversation

@omartin2010

Copy link
Copy Markdown
Contributor

Additional requirements for support for up to 4 BrickPi3

Added the imports for the other motors.
Added the inputs for up to 4 brickpi3 boards
Comment thread ev3dev2/motor.py Outdated
elif platform == 'brickpi3':
from ev3dev2._platform.brickpi3 import OUTPUT_A, OUTPUT_B, OUTPUT_C, OUTPUT_D
from ev3dev2._platform.brickpi3 import OUTPUT_A, OUTPUT_B, OUTPUT_C, OUTPUT_D,
OUTPUT_E, OUTPUT_F, OUTPUT_G, OUTPUT_H,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you need to escape the newline

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't in my python code I'll do it here.

@WasabiFan
WasabiFan requested a review from dwalton76 December 5, 2018 04:05

@omartin2010 omartin2010 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Modified the suggested patch.

@WasabiFan WasabiFan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Imports work on my machine. I don't even have one BrickPi to actually test the ports, but as long as I can import it I'm happy.

@WasabiFan
WasabiFan merged commit f8f4b86 into ev3dev:ev3dev-stretch Dec 14, 2018
@WasabiFan

Copy link
Copy Markdown
Member

Thanks!

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