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

How to configure the min and max switch #116

Open
didecibel opened this issue Feb 27, 2025 · 1 comment
Open

How to configure the min and max switch #116

didecibel opened this issue Feb 27, 2025 · 1 comment

Comments

@didecibel
Copy link

Hello, I can't figure out how to configure the min and max limit switches. And what are the pins. I am not fluent in C so...
This is on a rpi pico if someone could help me. It seams that is done via the driver.c file but I don't know how.
Thanks a lot.

@terjeio terjeio transferred this issue from grblHAL/core Feb 28, 2025
terjeio added a commit that referenced this issue Feb 28, 2025
Added detection of SDK version and switch to 200 MHz clock for RP2040 if >= 2.1.1.
Added driver support for max limit switches. Ref. issue #116.
@terjeio
Copy link
Contributor

terjeio commented Mar 1, 2025

It is done in the map file by assigning pins to the function.
E.g. #define X_LIMIT_PIN_MAX 12

Easiest is to copy an existing map file to my_machine_map.h, modify it and enable that in my_machine.h.

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

No branches or pull requests

2 participants