Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Feature Requests
  3. Adding MY_INCLUSION_MODE_INDICATOR_PIN ?

Adding MY_INCLUSION_MODE_INDICATOR_PIN ?

Scheduled Pinned Locked Moved Feature Requests
10 Posts 2 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • TiasT Offline
    TiasT Offline
    Tias
    wrote on last edited by
    #1

    Hi !
    About 10 months ago, I modified MyInclusionMode.cpp in MySensors v2.0 to be able to put a user-selected pin (by defining MY_INCLUSION_MODE_INDICATOR_PIN) to HIGH when the Inclusion button (as defiend by MY_INCLUSION_MODE_BUTTON_PIN) has been pressed and it will go to LOW when Inclusion mode times out.
    It has been working fine for me since then so I'd like to see if it's possible to get this following small modifications included in the main trunk of MyInclusionMode.cpp ?

    In the end of inclusionInit() :

    #if defined (MY_INCLUSION_MODE_INDICATOR_PIN) 
    	// Setup LED pin that indicates inclusion mode
    	pinMode(MY_INCLUSION_MODE_INDICATOR_PIN, OUTPUT);
    	digitalWrite(MY_INCLUSION_MODE_INDICATOR_PIN, LOW);
    #endif
    

    ...and in the end of inclusionModeSet() :

    #if defined (MY_INCLUSION_MODE_INDICATOR_PIN)
        // Show inclusion mode with the LED:
    		digitalWrite(MY_INCLUSION_MODE_INDICATOR_PIN,_inclusionMode);
    #endif```
    mfalkviddM 1 Reply Last reply
    2
    • TiasT Tias

      Hi !
      About 10 months ago, I modified MyInclusionMode.cpp in MySensors v2.0 to be able to put a user-selected pin (by defining MY_INCLUSION_MODE_INDICATOR_PIN) to HIGH when the Inclusion button (as defiend by MY_INCLUSION_MODE_BUTTON_PIN) has been pressed and it will go to LOW when Inclusion mode times out.
      It has been working fine for me since then so I'd like to see if it's possible to get this following small modifications included in the main trunk of MyInclusionMode.cpp ?

      In the end of inclusionInit() :

      #if defined (MY_INCLUSION_MODE_INDICATOR_PIN) 
      	// Setup LED pin that indicates inclusion mode
      	pinMode(MY_INCLUSION_MODE_INDICATOR_PIN, OUTPUT);
      	digitalWrite(MY_INCLUSION_MODE_INDICATOR_PIN, LOW);
      #endif
      

      ...and in the end of inclusionModeSet() :

      #if defined (MY_INCLUSION_MODE_INDICATOR_PIN)
          // Show inclusion mode with the LED:
      		digitalWrite(MY_INCLUSION_MODE_INDICATOR_PIN,_inclusionMode);
      #endif```
      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @tias great idea.

      The very best is if you follow the guide at https://www.mysensors.org/download/contributing

      But if you are unfamiliar with git and pull requests, we can work together to find a way.

      1 Reply Last reply
      0
      • TiasT Offline
        TiasT Offline
        Tias
        wrote on last edited by Tias
        #3

        Hi !

        I'd love to do it but I failed miserably using git in both Windows (unable to install bash) and Linux (bootstrap-dev.sh claims "Found git however, version 2.0 or greater is required..." but when I run git --version it happily shows 2.7.4) makes me going bananas (skogstokig ! :) ) when I need to debug all tools needed. I've been developing software for almost 40 years, but (obviously) never used git...

        Cheers !
        /T

        1 Reply Last reply
        0
        • TiasT Offline
          TiasT Offline
          Tias
          wrote on last edited by
          #4

          Well, it looks like I finally solved my issues with the git verison.
          I hope I made everything right since the Pull Request looked slightly different from what I expected of the examples steps at https://www.mysensors.org/download/contributing

          Cheers !
          /T

          mfalkviddM 1 Reply Last reply
          0
          • TiasT Tias

            Well, it looks like I finally solved my issues with the git verison.
            I hope I made everything right since the Pull Request looked slightly different from what I expected of the examples steps at https://www.mysensors.org/download/contributing

            Cheers !
            /T

            mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #5

            @tias looks like you got a lot of unrelated changes in the pull request. See https://github.com/mysensors/MySensors/pull/1029/files

            My guess is that you applied the changes to an old version of MySensors, instead of to the latest development version. Could that be the case? Maybe the contribution guidelines need to be refined, to not lure you into this situation.

            TiasT 1 Reply Last reply
            0
            • mfalkviddM mfalkvidd

              @tias looks like you got a lot of unrelated changes in the pull request. See https://github.com/mysensors/MySensors/pull/1029/files

              My guess is that you applied the changes to an old version of MySensors, instead of to the latest development version. Could that be the case? Maybe the contribution guidelines need to be refined, to not lure you into this situation.

              TiasT Offline
              TiasT Offline
              Tias
              wrote on last edited by
              #6

              @mfalkvidd Ugh, well that looks messy. I finally managed to follow the guideline step by step but since I have never used github for any project (I normally work in projects hosted in-house) I have obviously messed up in some of the step(s).
              I assume you can make this right and I can continue applying my small patch in my own copy of MySensors, it's not too much work for me anyway :)
              /T

              mfalkviddM 1 Reply Last reply
              0
              • TiasT Tias

                @mfalkvidd Ugh, well that looks messy. I finally managed to follow the guideline step by step but since I have never used github for any project (I normally work in projects hosted in-house) I have obviously messed up in some of the step(s).
                I assume you can make this right and I can continue applying my small patch in my own copy of MySensors, it's not too much work for me anyway :)
                /T

                mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by
                #7

                @tias yep I can fix it. Will post an update here when the pull request is ready.

                1 Reply Last reply
                0
                • mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #8

                  https://github.com/mysensors/MySensors/pull/1030

                  TiasT 1 Reply Last reply
                  0
                  • mfalkviddM mfalkvidd

                    https://github.com/mysensors/MySensors/pull/1030

                    TiasT Offline
                    TiasT Offline
                    Tias
                    wrote on last edited by
                    #9

                    @mfalkvidd Thanks and sorry for the mess I caused.
                    /T

                    mfalkviddM 1 Reply Last reply
                    0
                    • TiasT Tias

                      @mfalkvidd Thanks and sorry for the mess I caused.
                      /T

                      mfalkviddM Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by
                      #10

                      @tias no worries :)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      18

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular