-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[FR] Kingroon KP3 (MOTHERBOARD is MKS Robin Mini)- Suggest to consider using PIN PB2 (Reserved Connector pin) instead of PA8 (WiFI IO0 pin) for BLTouch #19392
Comments
There isn't enough information here to know what you need. Kingroon doesn't appear in the Configurations repo or as a board name. What MOTHERBOARD does it use? To avoid breaking backward compatibility with existing users, you could do something like this, which enables overriding the pin from your configuration file:
|
I intended to suggest that you make the change above (or something similar) and contribute it back to Marlin through a Pull Request. |
Thank you for your response. The board is MKS Robin Mini. The change will be as follows: Current: After the suggested change: I can do the pull request. Could you advise the procedure? I have not done it before. |
I would advise to leave the current pin. Changing it is going to break anybody that is already depending on the existing behavior. Another option would be to disable both (since the board has no labeled servo connection) and require the user to specify one.
There are many different workflows that can be used to create a pull request. Here is one which is documented on the Marlin site: |
I like the idea of giving options for the servo pin using PA8 or PB2 without enabling either one by default. Although this might break builds of users already using the PA8 pin, it can be easily fixed by simply re-enabling the PA8 pin in the pins file, or define it in the config files. That is, I think the suggestion given above is the best solution (copied below with updates on the comments text). #ifndef SERVO0_PIN The PB2 pin is a better and easier solution in my opinion as it is not being for anything and the box connector is easier to connect than the WiFi connector. Therefore, it will be good as alternative to PA8. FYI, I did previously try to re-define SERVO0 pin in my config file to use PB2 without disabling the PA8 in pins file, but somehow BLtouch did not work. I had to specifically disable the "define SERVO0_PIN PA8" for "define SERVO0_PIN PB2" to work. |
The |
Ah, I see. Thank you. |
After some further thought, may I suggest making change in the pins file (STM32F1 MKS Robin Mini) as follows. Before change: After change: This might be the best solution as it will not break builds currently using PA8, and at the same time provide flexibility to users who want to use other pins such as PB2 for BLTOUCH without touching the pins file. Users who prefer using PB2 (or other pins) can re-define SERVO0 in one of their config files as follows which will override the definition in pins file. #define SERVO0_PIN PB2 Thank you. In fact, the introduction of the unconditional definition of SERV0_PIN PA8 in 2.0.6.1 caused conflict with my configuration.h file where I defined SERVO0_PIN PB2 which worked fine in 2.0.6. It took me quite a while to figure out the conflict when I found my BLTouch did not work with 2.0.6.1. Therefore, it will better if the SERVO0 pin is not enabled or only conditionally enabled by default in the pins file. |
The released 2.0.7 still have this issue which breaks compilation using self-defined SERVO0_PIN. Before change: After change: |
Thank you very much for your help. Much appreciated. |
This is merged. Given the simplicity of the change I'll go ahead and close this issue. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Suggest to use PIN PB2 (Reserved Connector) instead of PA8 (WiFI IO0) as defined in the pins file for BLTouch. This will have the following benefits:
Feature Workflow
Additional Information
The text was updated successfully, but these errors were encountered: