cprezzi / grbl-LPC

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

How to use P2.13 (E1 Port) as 3.3V PWM output #57

Closed dreiduke closed 3 years ago

dreiduke commented 3 years ago

As the Title says, how can I choose the Pin 2.13, of a MKS Sbase 1.3 Board as PWM Output in grbl-LPC? On all other PWM -able Ports there is a small modification of the Board necessary (removing Port LED circuit)

cprezzi commented 3 years ago

There is an older precompiled version with PWM on pin 1.23, which is usefull if you need non inverted TTL PWM (i.e. for a diode laser). https://github.com/cprezzi/grbl-LPC/releases/tag/beta08_4axes

If you want to use the latest version or another port, you need to compile it yourself, but pin 2.13 is not usable. You can change the port mapping for MKS SBase in the file https://github.com/cprezzi/grbl-LPC/blob/master/grbl/cpu_map.h#L496 and select this board by the prepared define switch in https://github.com/cprezzi/grbl-LPC/blob/master/grbl/config.h#L34.