Giter Club home page Giter Club logo

Comments (4)

midopple avatar midopple commented on July 17, 2024

Hi Bryang

If X_HOME_DIR is change to 1 (MAX ENDSTOP) you have to change the pins.h to use the right variable / input
this to lines
#define X_MIN_PIN 18
#define X_MAX_PIN -2
to
#define X_MIN_PIN -1
#define X_MAX_PIN 18

from sprinter.

Bryang avatar Bryang commented on July 17, 2024

Hi

Thank you. I actually realised that it was the Y axis that was mirrored but have applied the same principle to get that to work with the + homing.

I am used to working in C and there I would normally include something like:

#if X_HOME_DIR == 1
. #define X_MIN_PIN -1
. #define X_MAX_PIN 18
#else
. #define X_MIN_PIN 18
. #define X_MAX_PIN -2
#endif

Can we do the same thing in Arduino. Knowing that I am an idiot I always try to 'idiot proof' any settings that a user has to mess with.

Thanks

Bryan

from sprinter.

midopple avatar midopple commented on July 17, 2024

Hi

This would be a way but there some printers that use MIN and MAX Endstops.
For this printers this code will not work.

It's not easy to get a firmware for all boards and Printers

Mochael

from sprinter.

Bryang avatar Bryang commented on July 17, 2024

Multi-compatlibility is always a pain.

Thanks for the help, all is working correctly now.

from sprinter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.