Is it possible to set "#define UI_RESET_PIN -1"?

Hey!

Easy question: Is it possible to disable the UI_RESET_PIN by setting it to "#define UI_RESET_PIN -1"? Or will I encounter any problems with that?

Background: I am looking into possibilities to add a z-probe to a Melzi board without changing the hardware.

Thank you!

Comments

  • That depends on the display definition where it is used. Check the 2 functions below and comment the lines using reset pin and you are on the safe side.
  • Perfect, thank you! :)

    Display in use is a standard Reprap Discounts Full Graphics one (on a Wanhao DI3). FEATURE_CONTROLLER 11 (ui.h: Line 630)

    The only functions using UI_RESET_PIN are:
        UI_KEYS_INIT_BUTTON_LOW(UI_RESET_PIN); // Kill pin
    on line 843 and
        UI_KEYS_BUTTON_LOW(UI_RESET_PIN,UI_ACTION_RESET);
    on line 847. Which both *should* do nothing with "-1" as argument (at least PINMODE(-1,INPUT); and so on do nothing to my understanding). I'll try with and without commenting the two functions out.

    Thanks again!
  • -1 is a illegal pin number I think and that might make problems.
  • Ok, got it. Will comment it out. Thanks again! :)
Sign In or Register to comment.