cprezzi / grbl-LPC

Multiple compiled versions for different boards & machines (under releases)
Other
56 stars 39 forks source link

Creating a new board config questions #16

Closed mladegaa closed 5 years ago

mladegaa commented 5 years ago

Reading the notes in cpu_map.h for the various boards trying to create my own board config I see that it says that all the pins need to be on the same port for step, dir, and enable. Is there a way to work around that?

My board pin layout is the following:

Axis EN Step DIR
X 4.28 0.4 0.5
Y 2.0 2.1 2.2
Z 0.19 0.20 0.21
E0 2.12 0.11 2.13
E1 0.10 0.1 0.0

If I understand it correctly the only two axis I could map would be Z and E1 as they share ports. Am I also correct if I understand that LPC_GPIO0 means port 0, so that p0.11 would map to LPC_GPIO0 and bit 11?

cprezzi commented 5 years ago

The "same port" limitation is how grbl is programmed. No option to easily change that without changing the whole code.

I would suggest to physically rewire the pins on your board or change to a board that is compatible (like Smoothieboard, C3d Boards, Azteeg, MKS SBase...)